Tandem Admin API

The admin API from Tandem, for admin.

GitHub OpenAPI

Operations 12

GET /v1/admin/handles Admin List Handles #
POST /v1/admin/handles Admin Upsert Handle #
POST /v1/admin/handles/{handle_id}/reseed-welcome Admin Reseed Welcome #
POST /v1/admin/threads/{thread_id}/participants Admin Add Thread Participant #
GET /v1/admin/stats Admin Stats #
POST /v1/admin/notifications Admin Upsert Notification #
GET /v1/admin/notifications Admin List Notifications #
DELETE /v1/admin/notifications/{channel_id} Admin Delete Notification #
POST /v1/admin/tokens Admin Issue Token #
GET /v1/admin/tokens Admin List Tokens #
POST /v1/admin/tokens/revoke Admin Revoke Token #
POST /v1/admin/handles/issue-reservation Issue Reservation #

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-admin-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-admin-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Tandem Admin API
  description: Communication fabric for human+Claude pairs
  version: 0.0.1
tags:
- name: Admin
paths:
  /v1/admin/handles:
    get:
      tags:
      - Admin
      summary: Admin List Handles
      description: 'List every handle in the system (admin only, read-only).


        Diagnostic added 2026-06-06: the tandem.cc -> tandem-cc.com cutover

        surfaced that real handles still live under the OLD @tandem.cc domain

        (the gated migration #7 that renames them hasn''t run). This lets us

        eyeball exactly which local parts are taken and under which domain, so

        we know the full scope the availability fix (_handle_taken) now covers.


        Grouped/ordered by domain then local part. Returns no tokens or secrets

        — just the public-ish handle id, display name, signed_by, is_tandem,

        created_at.'
      operationId: admin_list_handles_v1_admin_handles_get
      parameters:
      - name: X-Tandem-Api-Key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Tandem-Api-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Admin List Handles V1 Admin Handles Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    post:
      tags:
      - Admin
      summary: Admin Upsert Handle
      description: 'Create or update a handle row.


        Body:

        {

        "handle": "jack@tandem-cc.com", # required

        "display_name": "Jack", # optional

        "signed_by": "jack", # optional (attribution short form)

        "is_tandem": true # optional (default true when

        # we''re provisioning

        # internal handles)

        }'
      operationId: admin_upsert_handle_v1_admin_handles_post
      parameters:
      - name: X-Tandem-Api-Key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Tandem-Api-Key
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
              title: Payload
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Admin Upsert Handle V1 Admin Handles Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/admin/handles/{handle_id}/reseed-welcome:
    post:
      tags:
      - Admin
      summary: Admin Reseed Welcome
      description: 'Wipe an existing handle''s welcome thread(s) and re-seed with the

        current template.


        Brian m_b4372290-follow-up (Leslie session 2026-04-25). The welcome

        template was retired mid-session — Leslie had already received the

        old chatty version. This endpoint backfills: deletes any existing

        welcome thread(s) that the well-known welcome address sent to this

        handle, then runs the seed function again so the user sees the new

        minimal welcome.


        Why the matcher is conservative: only deletes threads where

        from_handle is the known welcome sender AND the subject matches

        a known welcome phrase (current OR previous). This intentionally

        doesn''t cascade to "any thread between Brian and the user" because

        we don''t want a future bug to wipe real conversation history.


        Path:

        POST /v1/admin/handles//reseed-welcome


        Auth: admin API key.


        Returns:

        {"ok": true, "handle": "leslie@tandem-cc.com", "deleted_threads": N,

        "reseeded": true}'
      operationId: admin_reseed_welcome_v1_admin_handles__handle_id__reseed_welcome_post
      parameters:
      - name: handle_id
        in: path
        required: true
        schema:
          type: string
          title: Handle Id
      - name: X-Tandem-Api-Key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Tandem-Api-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Admin Reseed Welcome V1 Admin Handles  Handle Id  Reseed Welcome Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/admin/threads/{thread_id}/participants:
    post:
      tags:
      - Admin
      summary: Admin Add Thread Participant
      description: 'Add a handle as a participant to an existing thread.


        Use case: surface a thread in someone''s inbox without rewriting the

        message history. The original messages stay immutable; the new

        participant gains read/reply visibility going forward. Brian m_…

        2026-04-30 — adding himself to threads Leslie originated to Joe so

        he can engage without tampering with the audit trail (Concept 1

        integrity preserved).


        Body:

        {

        "handle": "brian@tandem-cc.com", # required

        "role": "participant", # optional, default "participant"

        "added_by": "brian@tandem-cc.com" # optional, defaults to handle (self-add)

        }


        Idempotent — ON CONFLICT DO NOTHING.'
      operationId: admin_add_thread_participant_v1_admin_threads__thread_id__participants_post
      parameters:
      - name: thread_id
        in: path
        required: true
        schema:
          type: string
          title: Thread Id
      - name: X-Tandem-Api-Key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Tandem-Api-Key
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
              title: Payload
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Admin Add Thread Participant V1 Admin Threads  Thread Id  Participants Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/admin/stats:
    get:
      tags:
      - Admin
      summary: Admin Stats
      description: 'Return a rollup of preview-launch activity for the admin panel.


        ``recent_limit`` (1–50) caps how many recent signups + reservations

        to include in the response — keeps payload small on busy days.'
      operationId: admin_stats_v1_admin_stats_get
      parameters:
      - name: recent_limit
        in: query
        required: false
        schema:
          type: integer
          default: 10
          title: Recent Limit
      - name: X-Tandem-Api-Key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Tandem-Api-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Admin Stats V1 Admin Stats Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/admin/notifications:
    post:
      tags:
      - Admin
      summary: Admin Upsert Notification
      description: 'Create or update a notification channel for a handle.


        Body:

        {

        "handle": "brian@tandem-cc.com", # required

        "kind": "email", # required: email | slack | sms | webhook

        "target": "brian@acme.com", # required; shape depends on kind

        "enabled": true # optional (default true)

        }


        Idempotent on (handle, kind, target): re-posting flips `enabled`

        if different.'
      operationId: admin_upsert_notification_v1_admin_notifications_post
      parameters:
      - name: X-Tandem-Api-Key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Tandem-Api-Key
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
              title: Payload
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Admin Upsert Notification V1 Admin Notifications Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    get:
      tags:
      - Admin
      summary: Admin List Notifications
      description: 'List notification channels for a specific handle.


        ``?handle=`` is required (we don''t expose a full cross-user dump

        from this endpoint — admin_stats is for observability overviews).'
      operationId: admin_list_notifications_v1_admin_notifications_get
      parameters:
      - name: handle
        in: query
        required: false
        schema:
          type: string
          default: ''
          title: Handle
      - name: X-Tandem-Api-Key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Tandem-Api-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Admin List Notifications V1 Admin Notifications Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/admin/notifications/{channel_id}:
    delete:
      tags:
      - Admin
      summary: Admin Delete Notification
      description: 'Delete a notification channel. ``?handle=`` is required as a

        safety interlock so a typo-ed ``channel_id`` can''t accidentally

        wipe a different user''s channel.'
      operationId: admin_delete_notification_v1_admin_notifications__channel_id__delete
      parameters:
      - name: channel_id
        in: path
        required: true
        schema:
          type: integer
          title: Channel Id
      - name: handle
        in: query
        required: false
        schema:
          type: string
          default: ''
          title: Handle
      - name: X-Tandem-Api-Key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Tandem-Api-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Admin Delete Notification V1 Admin Notifications  Channel Id  Delete
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/admin/tokens:
    post:
      tags:
      - Admin
      summary: Admin Issue Token
      description: 'Issue a new bearer token for a handle.


        Body:

        {

        "handle": "jack@tandem-cc.com", # required, must exist

        "name": "claude-web" # required, unique per handle among active tokens

        }


        The raw token is returned in this response ONCE and never retrievable

        again. Caller is responsible for handing it to the user.'
      operationId: admin_issue_token_v1_admin_tokens_post
      parameters:
      - name: X-Tandem-Api-Key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Tandem-Api-Key
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
              title: Payload
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Admin Issue Token V1 Admin Tokens Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    get:
      tags:
      - Admin
      summary: Admin List Tokens
      description: 'List all tokens (active + revoked) for a handle. Returns metadata

        only — no raw values, no hashes.'
      operationId: admin_list_tokens_v1_admin_tokens_get
      parameters:
      - name: handle
        in: query
        required: true
        schema:
          type: string
          title: Handle
      - name: X-Tandem-Api-Key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Tandem-Api-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Admin List Tokens V1 Admin Tokens Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/admin/tokens/revoke:
    post:
      tags:
      - Admin
      summary: Admin Revoke Token
      description: 'Revoke the active token with the given (handle, name).


        Body:

        {

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

        "name": "claude-web"

        }'
      operationId: admin_revoke_token_v1_admin_tokens_revoke_post
      parameters:
      - name: X-Tandem-Api-Key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Tandem-Api-Key
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
              title: Payload
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Admin Revoke Token V1 Admin Tokens Revoke Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/admin/handles/issue-reservation:
    post:
      tags:
      - Admin
      summary: Issue Reservation
      description: 'Admin-only: generate a reservation token for a signup email.


        Returns the raw token (shown once). The admin is responsible for

        triggering the welcome email with the raw token (see

        tandem.api.mail.send_welcome_email). Token-generation and email-send

        are deliberately separate so we can re-send the link without creating

        a new reservation, and so email delivery failures don''t leave the

        table in an inconsistent state.'
      operationId: issue_reservation_v1_admin_handles_issue_reservation_post
      parameters:
      - name: X-Tandem-Api-Key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Tandem-Api-Key
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
              title: Payload
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Issue Reservation V1 Admin Handles Issue Reservation Post
        '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