ThunderPhone Test Calls API

The test-calls API from ThunderPhone — 1 operation(s) for test-calls.

GitHub OpenAPI

Operations 2

GET /v1/test-calls Test calls list #
POST /v1/test-calls Test calls create #

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-test-calls-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-test-calls-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: ThunderPhone Test Calls 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: test-calls
paths:
  /v1/test-calls:
    get:
      operationId: test_calls_list
      description: Retrieve test calls. 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:
      - test-calls
      security:
      - bearerAuth: []
      - bearerAuth: []
      responses:
        '200':
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/SimulationRun'
          description: ''
      summary: Test calls list
      x-summary-source: derived
    post:
      operationId: test_calls_create
      description: Create or run test calls. 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:
      - test-calls
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SimulationRunCreateRequest'
        required: true
      security:
      - bearerAuth: []
      - bearerAuth: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SimulationRun'
          description: ''
      summary: Test calls create
      x-summary-source: derived
components:
  schemas:
    SimulationRunModeEnum:
      enum:
      - bot
      - sip
      type: string
      description: '* `bot` - Bot-to-bot

        * `sip` - SIP loopback'
    DirectionD75Enum:
      enum:
      - outbound
      - inbound
      type: string
      description: '* `outbound` - Outbound

        * `inbound` - Inbound'
    ScenarioModeEnum:
      enum:
      - manual
      - auto
      type: string
      description: '* `manual` - manual

        * `auto` - auto'
    SimulatorProductEnum:
      enum:
      - testing
      - spark
      type: string
      description: '* `testing` - testing

        * `spark` - spark'
    SimulationRun:
      type: object
      properties:
        id:
          type: integer
          readOnly: true
        target_type:
          allOf:
          - $ref: '#/components/schemas/TargetTypeEnum'
          readOnly: true
        target_id:
          type:
          - integer
          - 'null'
          readOnly: true
        target_name:
          type: string
          readOnly: true
        agent_name:
          type:
          - string
          - 'null'
          readOnly: true
        direction:
          allOf:
          - $ref: '#/components/schemas/DirectionD75Enum'
          readOnly: true
        mode:
          allOf:
          - $ref: '#/components/schemas/SimulationRunModeEnum'
          readOnly: true
        target_number:
          type: string
          readOnly: true
        scenario_prompt:
          type: string
          readOnly: true
        status:
          allOf:
          - $ref: '#/components/schemas/SimulationRunStatusEnum'
          readOnly: true
        charge_multiplier:
          type: integer
          readOnly: true
        estimated_cost_cents:
          type: integer
          readOnly: true
        call_id:
          type:
          - integer
          - 'null'
          readOnly: true
        error_message:
          type: string
          readOnly: true
        metadata:
          readOnly: true
        requested_by_id:
          type:
          - integer
          - 'null'
          readOnly: true
        started_at:
          type:
          - string
          - 'null'
          format: date-time
          readOnly: true
        completed_at:
          type:
          - string
          - 'null'
          format: date-time
          readOnly: true
        created_at:
          type: string
          format: date-time
          readOnly: true
        updated_at:
          type: string
          format: date-time
          readOnly: true
        duration_seconds:
          type:
          - integer
          - 'null'
          readOnly: true
        recording_url:
          type:
          - string
          - 'null'
          readOnly: true
        transcript:
          type: array
          items:
            type: object
            additionalProperties: true
          readOnly: true
        grade:
          type:
          - object
          - 'null'
          additionalProperties: true
          readOnly: true
        held_out:
          type: boolean
          description: 'Present only for organizations with the agent iteration toolkit: true when a person promoted this test scenario (or the scenario this run ran) from a held-out call, one whose caller is in an agent''s test split. An API key or OAuth token gets it as its id (and scenario_id) and held_out only; test runs still run it. People see it in full in the dashboard. Organizations without the toolkit are unaffected.'
      required:
      - agent_name
      - call_id
      - charge_multiplier
      - completed_at
      - created_at
      - direction
      - duration_seconds
      - error_message
      - estimated_cost_cents
      - grade
      - id
      - metadata
      - mode
      - recording_url
      - requested_by_id
      - scenario_prompt
      - started_at
      - status
      - target_id
      - target_name
      - target_number
      - target_type
      - transcript
      - updated_at
    SimulationRunCreateRequest:
      type: object
      properties:
        target_type:
          $ref: '#/components/schemas/TargetTypeEnum'
        target_id:
          type: integer
          minimum: 1
        direction:
          allOf:
          - $ref: '#/components/schemas/DirectionD75Enum'
          default: outbound
        target_number:
          type: string
          default: ''
          maxLength: 32
        scenario_prompt:
          type: string
          default: ''
          maxLength: 4000
        scenario_mode:
          allOf:
          - $ref: '#/components/schemas/ScenarioModeEnum'
          default: manual
        language:
          type: string
          maxLength: 32
        primary_language:
          type: string
          maxLength: 32
        call_setup_sample_id:
          type:
          - integer
          - 'null'
          minimum: 1
        simulator_product:
          allOf:
          - $ref: '#/components/schemas/SimulatorProductEnum'
          default: testing
        consent_to_charge:
          type: boolean
      required:
      - consent_to_charge
      - target_id
      - target_type
    TargetTypeEnum:
      enum:
      - agent
      - phone_number
      type: string
      description: '* `agent` - Agent

        * `phone_number` - Phone Number'
    SimulationRunStatusEnum:
      enum:
      - queued
      - in_progress
      - completed
      - failed
      type: string
      description: '* `queued` - Queued

        * `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