ThunderPhone Migrations API

The migrations API from ThunderPhone — 1 operation(s) for migrations.

GitHub OpenAPI

Operations 1

POST /v1/migrations/{public_id}/calls Migrations calls #

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/thunderphone-com:thunderphone-com-migrations-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

thunderphone-com-migrations-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: ThunderPhone Migrations API
  version: 1.0.0
  description: Programmatic access to the ThunderPhone platform — agents, phone numbers, calls, billing, webhooks, and more. See https://thunderphone.com/docs and https://thunderphone.com/developers for the reference, tutorials and migration guides.
  contact:
    name: ThunderPhone support
    url: https://thunderphone.com/docs
servers:
- url: https://api.thunderphone.com
  description: Production
tags:
- name: Migrations
paths:
  /v1/migrations/{public_id}/calls:
    post:
      operationId: migrations_calls
      description: 'Place an outbound call through a migration. ThunderPhone places the call on ThunderPhone or on the vendor the agent is moving from, by the migration''s split, and records which. Send the same idempotency_key to retry safely: a repeat returns the first answer and never dials twice. The call''s end arrives as a migration.call.complete webhook for either platform.'
      parameters:
      - in: path
        name: public_id
        schema:
          type: string
          format: uuid
        required: true
      tags:
      - Migrations
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RoutedCallRequest'
            examples:
              Request:
                value:
                  to_number: '+14155550101'
                  idempotency_key: crm-lead-8812
                  variables:
                    first_name: Ada
                  metadata:
                    lead_id: '8812'
        required: true
      security:
      - bearerAuth: []
      - bearerAuth: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RoutedCallResponse'
              examples:
                Success:
                  value:
                    routing_id: 00000000-0000-4000-8000-000000000001
                    arm: ours
                    call_id: 1001
                    vendor_call_id: null
                    status: initiated
          description: ''
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RoutedCallResponse'
              examples:
                Success:
                  value:
                    routing_id: 00000000-0000-4000-8000-000000000001
                    arm: ours
                    call_id: 1001
                    vendor_call_id: null
                    status: initiated
          description: ''
        '202':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RoutedCallResponse'
              examples:
                Success:
                  value:
                    routing_id: 00000000-0000-4000-8000-000000000001
                    arm: ours
                    call_id: 1001
                    vendor_call_id: null
                    status: initiated
          description: ''
      summary: Migrations calls
      x-summary-source: derived
components:
  schemas:
    ArmEnum:
      enum:
      - ours
      - vendor
      type: string
      description: '* `ours` - ours

        * `vendor` - vendor'
    RoutedCallResponse:
      type: object
      properties:
        routing_id:
          type: string
          format: uuid
        arm:
          allOf:
          - $ref: '#/components/schemas/ArmEnum'
          description: 'ours: ThunderPhone placed the call; vendor: the vendor did.


            * `ours` - ours

            * `vendor` - vendor'
        call_id:
          type:
          - integer
          - 'null'
          description: The ThunderPhone call id (ours arm), else null.
        vendor_call_id:
          type:
          - string
          - 'null'
          description: The vendor's call id (vendor arm), else null; null too when the vendor's answer was ambiguous (status unknown).
        failure_reason:
          type: string
          description: Why a replayed ThunderPhone call failed after dialing.
        status:
          $ref: '#/components/schemas/PlaceCallResponseStatusEnum'
        idempotent_replay:
          type: boolean
        queued_at:
          type:
          - string
          - 'null'
          format: date-time
          description: Present while the call waits for room to dial, from when it began waiting. The status stays initiated.
      required:
      - arm
      - call_id
      - routing_id
      - status
      - vendor_call_id
    RoutedCallRequest:
      type: object
      properties:
        to_number:
          type: string
          minLength: 1
          description: Destination in E.164 format. National format is read in from_number's country.
        idempotency_key:
          type: string
          minLength: 1
          description: Required. A repeat with the same key returns the first answer and never dials twice.
          maxLength: 128
        from_number:
          type: string
          minLength: 1
          description: 'Optional caller ID. It must be valid on whichever platform takes the call: an active number of your organization on ThunderPhone, or a number assigned to the agent on the vendor.'
        variables:
          type: object
          additionalProperties: {}
          description: Per-call variables for the agent's prompt, as in /v1/call.
        metadata:
          type: object
          additionalProperties: {}
          description: Echoed back in migration.call.complete; at most 4 KB of JSON.
      required:
      - idempotency_key
      - to_number
    PlaceCallResponseStatusEnum:
      enum:
      - pending
      - unknown
      - initiated
      - in_progress
      - completed
      - failed
      type: string
      description: '* `pending` - pending

        * `unknown` - unknown

        * `initiated` - initiated

        * `in_progress` - in_progress

        * `completed` - completed

        * `failed` - failed'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: sk_live_…
      description: 'Organization API key. Send Authorization: Bearer sk_live_…; create a key in the dashboard.'
    humanToken:
      type: apiKey
      in: header
      name: Authorization
      description: 'Human session token: Authorization: Token <session-token>. Organization API keys are rejected by key-management and account-control operations.'
x-mcp-server: https://api.thunderphone.com/v1/mcp