ThunderPhone Publishable Key API

The publishable-key API from ThunderPhone — 3 operation(s) for publishable-key.

GitHub OpenAPI

Operations 6

GET /v1/publishable-key Publishable key list #
POST /v1/publishable-key Publishable key create #
GET /v1/publishable-key/{key_id} Publishable key retrieve #
PATCH /v1/publishable-key/{key_id} Publishable key partial update #
DELETE /v1/publishable-key/{key_id} Publishable key delete #
POST /v1/publishable-key/{key_id}/transfer Publishable key transfer #

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-publishable-key-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-publishable-key-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: ThunderPhone Publishable Key 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: publishable-key
paths:
  /v1/publishable-key:
    get:
      operationId: publishable_key_list
      description: Retrieve publishable key. 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:
      - publishable-key
      security:
      - bearerAuth: []
      - bearerAuth: []
      responses:
        '200':
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/PublishableKey'
          description: ''
      summary: Publishable key list
      x-summary-source: derived
    post:
      operationId: publishable_key_create
      description: Create or run publishable key. 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:
      - publishable-key
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PublishableKeyCreateRequest'
      security:
      - bearerAuth: []
      - bearerAuth: []
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublishableKey'
          description: ''
      summary: Publishable key create
      x-summary-source: derived
  /v1/publishable-key/{key_id}:
    get:
      operationId: publishable_key_retrieve
      description: Retrieve publishable key. 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: key_id
        schema:
          type: integer
        required: true
      tags:
      - publishable-key
      security:
      - bearerAuth: []
      - bearerAuth: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublishableKey'
          description: ''
      summary: Publishable key retrieve
      x-summary-source: derived
    patch:
      operationId: publishable_key_partial_update
      description: Update publishable key. 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: key_id
        schema:
          type: integer
        required: true
      tags:
      - publishable-key
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PatchedPublishableKeyUpdateRequest'
      security:
      - bearerAuth: []
      - bearerAuth: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublishableKey'
          description: ''
      summary: Publishable key partial update
      x-summary-source: derived
    delete:
      operationId: publishable_key_delete
      description: Delete publishable key. 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: key_id
        schema:
          type: integer
        required: true
      tags:
      - publishable-key
      security:
      - bearerAuth: []
      - bearerAuth: []
      responses:
        '204':
          description: No response body
      summary: Publishable key delete
      x-summary-source: derived
  /v1/publishable-key/{key_id}/transfer:
    post:
      operationId: publishable_key_transfer
      description: Transfer (copy or move) a publishable key / web widget to another org.
      parameters:
      - in: path
        name: key_id
        schema:
          type: integer
        required: true
      tags:
      - publishable-key
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PublishableKeyTransferRequestRequest'
        required: true
      security:
      - bearerAuth: []
      - bearerAuth: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublishableKey'
          description: ''
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublishableKey'
          description: ''
      summary: Publishable key transfer
      x-summary-source: derived
components:
  schemas:
    PublishableKeyCreateRequest:
      type: object
      properties:
        name:
          type: string
          minLength: 1
          default: ''
          maxLength: 100
        agent_id:
          type:
          - integer
          - 'null'
        webhook_url:
          type:
          - string
          - 'null'
          format: uri
        mode:
          allOf:
          - $ref: '#/components/schemas/Mode559Enum'
          default: agent
        allowed_domains:
          type: array
          items:
            type: string
            minLength: 1
            maxLength: 255
        is_enabled:
          type: boolean
          default: true
        allowed_overrides:
          type: array
          items:
            $ref: '#/components/schemas/AllowedOverridesEnum'
          description: 'Session fields the browser may set on POST /v1/widget/session: context, language, variables, voice. Anything not listed is rejected with 400 override_not_allowed. New keys allow none.'
        max_call_duration_seconds:
          type:
          - integer
          - 'null'
          maximum: 21600
          minimum: 60
          default: 1800
    PublishableKeyModeEnum:
      enum:
      - agent
      - webhook
      type: string
      description: '* `agent` - Agent

        * `webhook` - Webhook'
    PatchedPublishableKeyUpdateRequest:
      type: object
      properties:
        name:
          type: string
          minLength: 1
          maxLength: 100
        allowed_domains:
          type: array
          items:
            type: string
            minLength: 1
            maxLength: 255
        agent_id:
          type:
          - integer
          - 'null'
        webhook_url:
          type:
          - string
          - 'null'
          format: uri
        mode:
          $ref: '#/components/schemas/Mode559Enum'
        is_enabled:
          type: boolean
        embed_config: {}
        allowed_overrides:
          type: array
          items:
            $ref: '#/components/schemas/AllowedOverridesEnum'
          description: 'Session fields the browser may set on POST /v1/widget/session: context, language, variables, voice. Anything not listed is rejected with 400 override_not_allowed. New keys allow none.'
        max_call_duration_seconds:
          type:
          - integer
          - 'null'
          maximum: 21600
          minimum: 60
    ModeFfbEnum:
      enum:
      - copy
      - move
      type: string
      description: '* `copy` - copy

        * `move` - move'
    Mode559Enum:
      enum:
      - agent
      - webhook
      type: string
      description: '* `agent` - agent

        * `webhook` - webhook'
    AllowedOverridesEnum:
      enum:
      - context
      - language
      - variables
      - voice
      type: string
      description: '* `context` - context

        * `language` - language

        * `variables` - variables

        * `voice` - voice'
    PublishableKeyTransferRequestRequest:
      type: object
      properties:
        target_org_id:
          type: integer
        mode:
          allOf:
          - $ref: '#/components/schemas/ModeFfbEnum'
          default: copy
        name:
          type: string
      required:
      - target_org_id
    PublishableKey:
      type: object
      properties:
        id:
          type: integer
          readOnly: true
        name:
          type: string
          maxLength: 100
        key:
          type: string
          readOnly: true
        key_prefix:
          type: string
          readOnly: true
        allowed_domains: {}
        is_active:
          type: boolean
          readOnly: true
        agent_id:
          type: integer
          readOnly: true
        agent_name:
          type: string
          readOnly: true
        webhook_url:
          type:
          - string
          - 'null'
          format: uri
          maxLength: 200
        webhook_secret:
          type: string
          readOnly: true
        mode:
          $ref: '#/components/schemas/PublishableKeyModeEnum'
        is_enabled:
          type: boolean
        embed_config: {}
        allowed_overrides:
          type: array
          items:
            $ref: '#/components/schemas/AllowedOverridesEnum'
          readOnly: true
          description: 'Session fields the browser may set on POST /v1/widget/session: context, language, variables, voice. Anything not listed is rejected with 400 override_not_allowed. New keys allow none.'
        max_call_duration_seconds:
          type:
          - integer
          - 'null'
          maximum: 21600
          minimum: 60
          description: Max widget session length in seconds. Null uses the agent's own cap.
        created_at:
          type: string
          format: date-time
          readOnly: true
        updated_at:
          type: string
          format: date-time
          readOnly: true
      required:
      - agent_id
      - agent_name
      - allowed_overrides
      - created_at
      - id
      - is_active
      - key
      - key_prefix
      - updated_at
      - webhook_secret
  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