Tandem Public API

The public API from Tandem, for public.

GitHub OpenAPI

Operations 14

POST /launch-signups Launch Signups #
OPTIONS /launch-signups Launch Signups Preflight #
POST /signup/check Signup Check #
POST /signup/claim Signup Claim #
POST /signup/open-check Signup Open Check #
POST /signup/open Signup Open #
POST /v1/handles/check Check Handle #
POST /v1/handles/reserve Reserve Handle #
POST /login/magic/request Magic Request #
GET /login/magic Magic Consume #
POST /login/code/request Code Request #
POST /login/code/verify Code Verify #
GET /login/google Google Start #
GET /login/google/callback Google Callback #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/tandem-cc-com:tandem-cc-com-public-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

tandem-cc-com-public-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Tandem Public API
  description: Communication fabric for human+Claude pairs
  version: 0.0.1
tags:
- name: Public
paths:
  /launch-signups:
    post:
      tags:
      - Public
      summary: Launch Signups
      operationId: launch_signups_launch_signups_post
      requestBody:
        content:
          application/json:
            schema:
              additionalProperties: true
              type: object
              title: Payload
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    options:
      tags:
      - Public
      summary: Launch Signups Preflight
      description: CORS preflight for the public signup form.
      operationId: launch_signups_preflight_launch_signups_options
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
  /signup/check:
    post:
      tags:
      - Public
      summary: Signup Check
      description: 'Pre-flight: is ``handle`` valid and available?


        The signup page calls this as the user types. Same shape as

        ``/v1/handles/check`` but gated on the page password instead of a

        magic-link token. Does NOT claim the handle.


        Body:

        {"password": "...", "handle": "leslie"}


        Returns:

        {"available": true, "handle": "leslie", "full": "leslie@tandem-cc.com"}

        — or —

        {"available": false, "handle": "leslie", "suggestions": ["leslie2"]}'
      operationId: signup_check_signup_check_post
      requestBody:
        content:
          application/json:
            schema:
              additionalProperties: true
              type: object
              title: Payload
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
                title: Response Signup Check Signup Check Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /signup/claim:
    post:
      tags:
      - Public
      summary: Signup Claim
      description: 'Claim a handle and mint the user''s first bearer token.


        Past the password gate, this endpoint is the moral equivalent of:


        POST /v1/admin/handles (create the handle)

        POST /v1/admin/tokens (mint a bearer token)

        + welcome-thread seed (so first inbox isn''t empty)


        Mirrors the result of ``/v1/handles/reserve`` — same handle row,

        same token row, same welcome-thread seeding — just gated on the

        page password instead of a magic-link reservation.


        Returns the raw bearer token in the body. The token is shown

        ONCE; if the user loses it an admin must revoke and reissue.


        Body:

        {

        "password": "...",

        "handle": "leslie",

        "display_name": "Leslie" # optional, defaults to handle

        }


        Returns:

        {

        "ok": true,

        "handle": "leslie@tandem-cc.com",

        "token": "tandem_...",

        "snippets": {

        "desktop": { "mcpServers": { ... } },

        "code": { "mcpServers": { ... } }

        },

        "warning": "This token is shown ONCE — copy it now ..."

        }'
      operationId: signup_claim_signup_claim_post
      requestBody:
        content:
          application/json:
            schema:
              additionalProperties: true
              type: object
              title: Payload
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
                title: Response Signup Claim Signup Claim Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /signup/open-check:
    post:
      tags:
      - Public
      summary: Signup Open Check
      description: Live handle-availability for the open (no-password) signup page.
      operationId: signup_open_check_signup_open_check_post
      requestBody:
        content:
          application/json:
            schema:
              additionalProperties: true
              type: object
              title: Payload
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
                title: Response Signup Open Check Signup Open Check Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /signup/open:
    post:
      tags:
      - Public
      summary: Signup Open
      description: 'Open public signup: claim a handle, mint a token, AND set a login

        session cookie so the user is signed in immediately. No password gate.'
      operationId: signup_open_signup_open_post
      requestBody:
        content:
          application/json:
            schema:
              additionalProperties: true
              type: object
              title: Payload
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
                title: Response Signup Open Signup Open Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/handles/check:
    post:
      tags:
      - Public
      summary: Check Handle
      description: 'Pre-flight: is `handle` valid and available, given this magic-link token?


        The /setup page calls this as the user types. It does NOT consume the

        token; that only happens on /reserve. The reservation must be live for

        the call to go through — discourages using /check as a public handle-

        existence oracle.'
      operationId: check_handle_v1_handles_check_post
      requestBody:
        content:
          application/json:
            schema:
              additionalProperties: true
              type: object
              title: Payload
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
                title: Response Check Handle V1 Handles Check Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/handles/reserve:
    post:
      tags:
      - Public
      summary: Reserve Handle
      description: 'One-shot: turns a pending signup into a live Tandem user.


        Wraps three steps in a single transaction so an error anywhere rolls

        everything back:


        1. UPDATE the reservation row (used_at, handle_issued). A

        concurrent request that beat us loses the race — 0 rows

        affected = 410 Gone.

        2. INSERT into handles. Unique violation = 409 Conflict (handle

        was just claimed in a different /reserve call).

        3. INSERT into tokens bound to the new handle.


        Returns { handle, token, email } with the raw bearer token. Token is

        never shown again.'
      operationId: reserve_handle_v1_handles_reserve_post
      requestBody:
        content:
          application/json:
            schema:
              additionalProperties: true
              type: object
              title: Payload
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
                title: Response Reserve Handle V1 Handles Reserve Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /login/magic/request:
    post:
      tags:
      - Public
      summary: Magic Request
      description: 'Issue + email a one-shot sign-in link for `handle`.


        Always returns the same shape regardless of whether the handle

        exists or has an email on file — the response must not be a

        handle-existence or email-existence oracle.'
      operationId: magic_request_login_magic_request_post
      requestBody:
        content:
          application/json:
            schema:
              additionalProperties: true
              type: object
              title: Payload
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
                title: Response Magic Request Login Magic Request Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /login/magic:
    get:
      tags:
      - Public
      summary: Magic Consume
      description: Consume a magic token and sign the browser in.
      operationId: magic_consume_login_magic_get
      parameters:
      - name: token
        in: query
        required: false
        schema:
          type: string
          default: ''
          title: Token
      - name: next
        in: query
        required: false
        schema:
          type: string
          default: /inbox.html
          title: Next
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /login/code/request:
    post:
      tags:
      - Public
      summary: Code Request
      description: 'Issue + email a one-shot numeric sign-in code for `handle`.


        The code sibling of magic_request — same email lookup, same no-oracle

        generic response, same hashed one-shot storage in passkey_challenges.

        The difference is the credential (a short numeric code, not a link

        token) and the verify step (a POST, below), so the whole sign-in stays

        inside the iOS home-screen PWA.'
      operationId: code_request_login_code_request_post
      requestBody:
        content:
          application/json:
            schema:
              additionalProperties: true
              type: object
              title: Payload
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
                title: Response Code Request Login Code Request Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /login/code/verify:
    post:
      tags:
      - Public
      summary: Code Verify
      description: 'Verify a typed code and sign the browser in — IN PLACE.


        POST (not a GET link) so Set-Cookie comes back on a response the page''s

        own fetch() receives: in the iOS home-screen PWA that lands the session

        cookie in the PWA''s cookie box, which the magic LINK can''t do (it opens

        Safari). Founder = user parity: this mints the exact same tandem_session

        via _create_session/_set_session_cookie as every other login path.'
      operationId: code_verify_login_code_verify_post
      requestBody:
        content:
          application/json:
            schema:
              additionalProperties: true
              type: object
              title: Payload
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /login/google:
    get:
      tags:
      - Public
      summary: Google Start
      description: Kick off the Google OAuth dance.
      operationId: google_start_login_google_get
      parameters:
      - name: next
        in: query
        required: false
        schema:
          type: string
          default: /inbox.html
          title: Next
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /login/google/callback:
    get:
      tags:
      - Public
      summary: Google Callback
      description: 'Handle Google''s redirect back: code -> tokens -> email -> session.'
      operationId: google_callback_login_google_callback_get
      parameters:
      - name: code
        in: query
        required: false
        schema:
          type: string
          default: ''
          title: Code
      - name: state
        in: query
        required: false
        schema:
          type: string
          default: ''
          title: State
      - name: error
        in: query
        required: false
        schema:
          type: string
          default: ''
          title: Error
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError