ThunderPhone Developer API

The developer API from ThunderPhone — 5 operation(s) for developer.

GitHub OpenAPI

Operations 9

GET /v1/developer/api-keys Developer api keys list #
POST /v1/developer/api-keys Developer api keys create #
PATCH /v1/developer/api-keys/{key_id} Developer api keys partial update #
DELETE /v1/developer/api-keys/{key_id} Developer api keys delete #
GET /v1/developer/webhook-endpoints Developer webhook endpoints list #
POST /v1/developer/webhook-endpoints Developer webhook endpoints create #
PATCH /v1/developer/webhook-endpoints/{endpoint_id} Developer webhook endpoints partial update #
DELETE /v1/developer/webhook-endpoints/{endpoint_id} Developer webhook endpoints delete #
GET /v1/developer/webhook-deliveries Developer webhook deliveries list #

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-developer-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-developer-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: ThunderPhone Developer 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: developer
paths:
  /v1/developer/api-keys:
    get:
      operationId: developer_api_keys_list
      description: Manage organization API keys using a human admin token. Organization API keys cannot create, list, or revoke other keys; use Organization → Keys in the dashboard for key management.
      tags:
      - developer
      security:
      - humanToken: []
      responses:
        '200':
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/DeveloperApiKey'
          description: ''
      summary: Developer api keys list
      x-summary-source: derived
    post:
      operationId: developer_api_keys_create
      description: Manage organization API keys using a human admin token. Organization API keys cannot create, list, or revoke other keys; use Organization → Keys in the dashboard for key management.
      tags:
      - developer
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DeveloperApiKeyCreateRequest'
      security:
      - humanToken: []
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiKeyCreated'
          description: ''
      summary: Developer api keys create
      x-summary-source: derived
  /v1/developer/api-keys/{key_id}:
    patch:
      operationId: developer_api_keys_partial_update
      description: Rename an API key, or (from the dashboard only) let it see held-out calls in full. The key's secret and prefix are unchanged and never returned.
      parameters:
      - in: path
        name: key_id
        schema:
          type: string
          format: uuid
        required: true
      tags:
      - developer
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PatchedDeveloperApiKeysUpdateBodyRequest'
      security:
      - humanToken: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeveloperApiKey'
          description: ''
      summary: Developer api keys partial update
      x-summary-source: derived
    delete:
      operationId: developer_api_keys_delete
      description: Manage organization API keys using a human admin token. Organization API keys cannot create, list, or revoke other keys; use Organization → Keys in the dashboard for key management.
      parameters:
      - in: path
        name: key_id
        schema:
          type: string
          format: uuid
        required: true
      tags:
      - developer
      security:
      - humanToken: []
      responses:
        '204':
          description: No response body
      summary: Developer api keys delete
      x-summary-source: derived
  /v1/developer/webhook-endpoints:
    get:
      operationId: developer_webhook_endpoints_list
      description: Retrieve developer / webhook endpoints. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.
      tags:
      - developer
      security:
      - bearerAuth: []
      - bearerAuth: []
      responses:
        '200':
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/DeveloperWebhookEndpoint'
          description: ''
      summary: Developer webhook endpoints list
      x-summary-source: derived
    post:
      operationId: developer_webhook_endpoints_create
      description: Create or run developer / webhook endpoints. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.
      tags:
      - developer
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DeveloperWebhookEndpointCreateUpdateRequest'
            examples:
              Request:
                value:
                  label: Call events
                  url: https://example.com/webhooks
                  events:
                  - telephony.complete
        required: true
      security:
      - bearerAuth: []
      - bearerAuth: []
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebhookCreated'
              examples:
                Success:
                  value:
                    id: 00000000-0000-4000-8000-000000000001
                    label: Call events
                    url: https://example.com/webhooks
                    events:
                    - telephony.complete
                    agent_id: null
                    agent_name: null
                    secret: example-only-not-a-credential
                    secret_hint: example
                    paused_at: null
                    pause_last_error: ''
                    pause_undelivered_count: null
                    created_at: '2026-01-01T00:00:00Z'
                    updated_at: '2026-01-01T00:00:00Z'
          description: ''
      summary: Developer webhook endpoints create
      x-summary-source: derived
  /v1/developer/webhook-endpoints/{endpoint_id}:
    patch:
      operationId: developer_webhook_endpoints_partial_update
      description: Update developer / webhook endpoints. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.
      parameters:
      - in: path
        name: endpoint_id
        schema:
          type: string
          format: uuid
        required: true
      tags:
      - developer
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PatchedDeveloperWebhookEndpointCreateUpdateRequest'
      security:
      - bearerAuth: []
      - bearerAuth: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeveloperWebhookEndpoint'
          description: ''
      summary: Developer webhook endpoints partial update
      x-summary-source: derived
    delete:
      operationId: developer_webhook_endpoints_delete
      description: Delete developer / webhook endpoints. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.
      parameters:
      - in: path
        name: endpoint_id
        schema:
          type: string
          format: uuid
        required: true
      tags:
      - developer
      security:
      - bearerAuth: []
      - bearerAuth: []
      responses:
        '204':
          description: No response body
      summary: Developer webhook endpoints delete
      x-summary-source: derived
  /v1/developer/webhook-deliveries:
    get:
      operationId: developer_webhook_deliveries_list
      description: Payload-free outcomes from endpoint and legacy webhook delivery.
      parameters:
      - in: query
        name: agent_id
        schema:
          type: integer
          minimum: 1
      - in: query
        name: cursor
        schema:
          type: string
          maxLength: 512
        description: Opaque cursor returned by the previous page. Reuse it only with the same organization, filters, since value, and limit.
      - in: query
        name: endpoint_id
        schema:
          type: string
          maxLength: 64
        description: Endpoint UUID, or 'legacy' for the legacy single-URL webhook.
      - in: query
        name: event_type
        schema:
          type: string
          maxLength: 64
      - in: query
        name: limit
        schema:
          type: integer
          minimum: 1
          maximum: 50
          default: 50
        examples:
          PageSize:
            value: 50
            summary: Page size
      - in: query
        name: since
        schema:
          type: string
          format: date-time
        description: RFC 3339 date-time. Defaults to 7 days ago and is clamped to 30 days ago.
      - in: query
        name: status
        schema:
          type: string
          enum:
          - delivered
          - failed
          - retrying
      tags:
      - developer
      security:
      - bearerAuth: []
      - bearerAuth: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebhookDeliveryListResponse'
              examples:
                Success:
                  value:
                    results:
                    - id: 0b6f8a6e-4e1c-4d8e-9a43-7f1d2c3b4a59
                      source: endpoint
                      endpoint_id: 00000000-0000-4000-8000-000000000001
                      endpoint_label: Call events
                      url: https://example.com
                      event_type: telephony.complete
                      call_id: 1001
                      status: retrying
                      attempt_count: 2
                      http_status: 404
                      failure_category: http_error
                      last_attempt_at: '2026-01-01T00:00:00Z'
                      next_retry_at: '2026-01-01T00:05:00Z'
                      duration_ms: 412
                      is_test: false
                      can_resend: false
                      was_resent: false
                      created_at: '2026-01-01T00:00:00Z'
                      resent_at: null
                    limit: 50
                    has_more: false
                    next_cursor: null
          description: ''
      summary: Developer webhook deliveries list
      x-summary-source: derived
components:
  schemas:
    DeveloperWebhookEndpointCreateUpdateRequest:
      type: object
      properties:
        agent_id:
          type:
          - integer
          - 'null'
        label:
          type: string
          minLength: 1
          maxLength: 120
        url:
          type: string
          format: uri
          minLength: 1
          maxLength: 2048
        events:
          type: array
          items:
            $ref: '#/components/schemas/EventsEnum'
        status:
          allOf:
          - $ref: '#/components/schemas/DeveloperWebhookEndpointCreateUpdateStatusEnum'
          default: active
      required:
      - label
      - url
    NullEnum:
      enum:
      - null
    ApiKeyCreated:
      type: object
      properties:
        id:
          type: string
          format: uuid
          readOnly: true
        name:
          type: string
          readOnly: true
        key_prefix:
          type: string
          readOnly: true
        is_active:
          type: boolean
          readOnly: true
        created_at:
          type: string
          format: date-time
          readOnly: true
        created_by_name:
          type:
          - string
          - 'null'
          readOnly: true
          description: 'Who made the key: their name, else their email. Null when unknown or the user was removed.'
        last_used_at:
          type:
          - string
          - 'null'
          format: date-time
          readOnly: true
        revoked_at:
          type:
          - string
          - 'null'
          format: date-time
          readOnly: true
        include_held_out_calls:
          type: boolean
          readOnly: true
          description: 'The key sees held-out calls in full. In an organization with the agent iteration toolkit, a call whose caller is in an agent''s test split is held out: other keys get it as its call_id, start time and held_out only. Off by default; an admin turns it on from the dashboard for an integration that needs every call.'
        key:
          type: string
      required:
      - created_at
      - created_by_name
      - id
      - include_held_out_calls
      - is_active
      - key
      - key_prefix
      - last_used_at
      - name
      - revoked_at
    DeveloperApiKeyCreateRequest:
      type: object
      properties:
        name:
          type: string
          maxLength: 120
    DeveloperWebhookEndpoint:
      type: object
      properties:
        id:
          type: string
          format: uuid
          readOnly: true
        label:
          type: string
          maxLength: 120
        url:
          type: string
          format: uri
          maxLength: 200
        events: {}
        status:
          $ref: '#/components/schemas/Status51eEnum'
        agent_id:
          type:
          - integer
          - 'null'
          readOnly: true
        agent_name:
          type:
          - string
          - 'null'
          readOnly: true
        secret_hint:
          type: string
          readOnly: true
        paused_at:
          type:
          - string
          - 'null'
          format: date-time
          readOnly: true
          description: When ThunderPhone set the endpoint to `failing` after a delivery used up its 24 h retry schedule. Null while active or disabled.
        pause_last_error:
          type: string
          readOnly: true
          description: Last delivery error when the endpoint was paused (query strings removed).
        pause_undelivered_count:
          type:
          - integer
          - 'null'
          readOnly: true
          description: Events not delivered since the endpoint's last successful delivery, counted when it was paused.
        created_at:
          type: string
          format: date-time
          readOnly: true
        updated_at:
          type: string
          format: date-time
          readOnly: true
      required:
      - agent_id
      - agent_name
      - created_at
      - id
      - label
      - pause_last_error
      - pause_undelivered_count
      - paused_at
      - secret_hint
      - updated_at
      - url
    DeveloperWebhookEndpointCreateUpdateStatusEnum:
      enum:
      - active
      - disabled
      - failing
      type: string
      description: '* `active` - active

        * `disabled` - disabled

        * `failing` - failing'
    DeveloperWebhookDeliveryStatusEnum:
      enum:
      - delivered
      - retrying
      - failed
      type: string
      description: '* `delivered` - delivered

        * `retrying` - retrying

        * `failed` - failed'
    EventsEnum:
      enum:
      - telephony.incoming
      - telephony.complete
      - telephony.tool
      - telephony.turn
      - web.incoming
      - web.complete
      - web.tool
      - web.turn
      - sms.sent
      - sms.failed
      - sms.received
      - call.graded
      - call.data_extracted
      - call.transfer_completed
      - call.billed
      - campaign.completed
      - issue.reported
      - issue.escalated
      - test-call.completed
      - migration.call.complete
      - migration.rollback
      - alert.triggered
      - phone_number.spam_risk_changed
      - scheduled.skipped
      - scheduled.failed
      - call.status_changed
      type: string
      description: '* `telephony.incoming` - telephony.incoming

        * `telephony.complete` - telephony.complete

        * `telephony.tool` - telephony.tool

        * `telephony.turn` - telephony.turn

        * `web.incoming` - web.incoming

        * `web.complete` - web.complete

        * `web.tool` - web.tool

        * `web.turn` - web.turn

        * `sms.sent` - sms.sent

        * `sms.failed` - sms.failed

        * `sms.received` - sms.received

        * `call.graded` - call.graded

        * `call.data_extracted` - call.data_extracted

        * `call.transfer_completed` - call.transfer_completed

        * `call.billed` - call.billed

        * `campaign.completed` - campaign.completed

        * `issue.reported` - issue.reported

        * `issue.escalated` - issue.escalated

        * `test-call.completed` - test-call.completed

        * `migration.call.complete` - migration.call.complete

        * `migration.rollback` - migration.rollback

        * `alert.triggered` - alert.triggered

        * `phone_number.spam_risk_changed` - phone_number.spam_risk_changed

        * `scheduled.skipped` - scheduled.skipped

        * `scheduled.failed` - scheduled.failed

        * `call.status_changed` - call.status_changed'
    PatchedDeveloperWebhookEndpointCreateUpdateRequest:
      type: object
      properties:
        agent_id:
          type:
          - integer
          - 'null'
        label:
          type: string
          minLength: 1
          maxLength: 120
        url:
          type: string
          format: uri
          minLength: 1
          maxLength: 2048
        events:
          type: array
          items:
            $ref: '#/components/schemas/EventsEnum'
        status:
          allOf:
          - $ref: '#/components/schemas/DeveloperWebhookEndpointCreateUpdateStatusEnum'
          default: active
    FailureCategoryEnum:
      enum:
      - timeout
      - dns
      - tls
      - connection
      - http_error
      - other
      type: string
      description: '* `timeout` - timeout

        * `dns` - dns

        * `tls` - tls

        * `connection` - connection

        * `http_error` - http_error

        * `other` - other'
    DeveloperWebhookDeliverySourceEnum:
      enum:
      - endpoint
      - legacy
      type: string
      description: '* `endpoint` - endpoint

        * `legacy` - legacy'
    WebhookCreated:
      type: object
      properties:
        id:
          type: string
          format: uuid
          readOnly: true
        label:
          type: string
          maxLength: 120
        url:
          type: string
          format: uri
          maxLength: 200
        events: {}
        status:
          $ref: '#/components/schemas/Status51eEnum'
        agent_id:
          type:
          - integer
          - 'null'
          readOnly: true
        agent_name:
          type:
          - string
          - 'null'
          readOnly: true
        secret_hint:
          type: string
          readOnly: true
        paused_at:
          type:
          - string
          - 'null'
          format: date-time
          readOnly: true
          description: When ThunderPhone set the endpoint to `failing` after a delivery used up its 24 h retry schedule. Null while active or disabled.
        pause_last_error:
          type: string
          readOnly: true
          description: Last delivery error when the endpoint was paused (query strings removed).
        pause_undelivered_count:
          type:
          - integer
          - 'null'
          readOnly: true
          description: Events not delivered since the endpoint's last successful delivery, counted when it was paused.
        created_at:
          type: string
          format: date-time
          readOnly: true
        updated_at:
          type: string
          format: date-time
          readOnly: true
        secret:
          type: string
      required:
      - agent_id
      - agent_name
      - created_at
      - id
      - label
      - pause_last_error
      - pause_undelivered_count
      - paused_at
      - secret
      - secret_hint
      - updated_at
      - url
    DeveloperWebhookDelivery:
      type: object
      properties:
        source:
          allOf:
          - $ref: '#/components/schemas/DeveloperWebhookDeliverySourceEnum'
          readOnly: true
        endpoint_id:
          type: string
          readOnly: true
        endpoint_label:
          type: string
          readOnly: true
        url:
          type:
          - string
          - 'null'
          format: uri
          readOnly: true
        event_type:
          type: string
          readOnly: true
        call_id:
          type:
          - integer
          - 'null'
          readOnly: true
        status:
          allOf:
          - $ref: '#/components/schemas/DeveloperWebhookDeliveryStatusEnum'
          readOnly: true
        attempt_count:
          type: integer
          minimum: 0
          readOnly: true
        http_status:
          type:
          - integer
          - 'null'
          maximum: 599
          minimum: 100
          readOnly: true
        failure_category:
          readOnly: true
          oneOf:
          - $ref: '#/components/schemas/FailureCategoryEnum'
          - $ref: '#/components/schemas/NullEnum'
        last_attempt_at:
          type:
          - string
          - 'null'
          format: date-time
          readOnly: true
        next_retry_at:
          type:
          - string
          - 'null'
          format: date-time
          readOnly: true
        id:
          type:
          - string
          - 'null'
          readOnly: true
          description: The event's `event_id`, which identifies this delivery together with `endpoint_id`. Null for the legacy call-finished webhook.
        duration_ms:
          type:
          - integer
          - 'null'
          minimum: 0
          readOnly: true
          description: How long the endpoint took on the latest attempt, in milliseconds. Null before an attempt reached it.
        is_test:
          type: boolean
          readOnly: true
          description: A test send from the dashboard or the test endpoint.
        can_resend:
          type: boolean
          readOnly: true
          description: True for a real delivery whose retries ran out (`failed`). Resend also needs the endpoint to be active.
        was_resent:
          type: boolean
          readOnly: true
          description: Someone resent this delivery by hand.
        created_at:
          type:
          - string
          - 'null'
          format: date-time
          readOnly: true
          description: When the event was first queued for this endpoint. A resend changes `last_attempt_at`, not this.
        resent_at:
          type:
          - string
          - 'null'
          format: date-time
          readOnly: true
          description: When it was last resent by hand.
      required:
      - attempt_count
      - call_id
      - can_resend
      - created_at
      - duration_ms
      - endpoint_id
      - endpoint_label
      - event_type
      - failure_category
      - http_status
      - id
      - is_test
      - last_attempt_at
      - next_retry_at
      - resent_at
      - source
      - status
      - url
      - was_resent
    DeveloperApiKey:
      type: object
      properties:
        id:
          type: string
          format: uuid
          readOnly: true
        name:
          type: string
          readOnly: true
        key_prefix:
          type: string
          readOnly: true
        is_active:
          type: boolean
          readOnly: true
        created_at:
          type: string
          format: date-time
          readOnly: true
        created_by_name:
          type:
          - string
          - 'null'
          readOnly: true
          description: 'Who made the key: their name, else their email. Null when unknown or the user was removed.'
        last_used_at:
          type:
          - string
          - 'null'
          format: date-time
          readOnly: true
        revoked_at:
          type:
          - string
          - 'null'
          format: date-time
          readOnly: true
        include_held_out_calls:
          type: boolean
          readOnly: true
          description: 'The key sees held-out calls in full. In an organization with the agent iteration toolkit, a call whose caller is in an agent''s test split is held out: other keys get it as its call_id, start time and held_out only. Off by default; an admin turns it on from the dashboard for an integration that needs every call.'
      required:
      - created_at
      - created_by_name
      - id
      - include_held_out_calls
      - is_active
      - key_prefix
      - last_used_at
      - name
      - revoked_at
    PatchedDeveloperApiKeysUpdateBodyRequest:
      type: object
      properties:
        name:
          type: string
          minLength: 1
          description: The key's new name. The secret is unchanged.
          maxLength: 120
        include_held_out_calls:
          type: boolean
          description: Let the key see held-out calls in full (agent iteration toolkit), for an integration that needs every call. Only a signed-in person can change it, from the dashboard.
    Status51eEnum:
      enum:
      - active
      - disabled
      - failing
      type: string
      description: '* `active` - Active

        * `disabled` - Disabled

        * `failing` - Failing'
    WebhookDeliveryListResponse:
      type: object
      properties:
        results:
          type: array
          items:
            $ref: '#/components/schemas/DeveloperWebhookDelivery'
        limit:
          type: integer
          maximum: 50
          minimum: 1
        has_more:
          type: boolean
        next_cursor:
          type:
          - string
          - 'null'
          maxLength: 512
      required:
      - has_more
      - limit
      - next_cursor
      - results
  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