ThunderPhone Simulations API

The simulations API from ThunderPhone — 4 operation(s) for simulations.

GitHub OpenAPI

Operations 6

GET /v1/simulations Simulations list #
POST /v1/simulations Simulations create #
GET /v1/simulations/{simulation_id} Simulations retrieve #
GET /v1/simulations/batches Simulations batches list #
POST /v1/simulations/batches Simulations batches create #
GET /v1/simulations/batches/{batch_id} Simulations batches retrieve #

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-simulations-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-simulations-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: ThunderPhone Simulations 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: Simulations
paths:
  /v1/simulations:
    get:
      operationId: simulations_list
      description: Retrieve simulations. 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:
      - Simulations
      security:
      - bearerAuth: []
      - bearerAuth: []
      responses:
        '200':
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/SimulationRun'
          description: ''
      summary: Simulations list
      x-summary-source: derived
    post:
      operationId: simulations_create
      description: Create or run simulations. 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:
      - Simulations
      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: Simulations create
      x-summary-source: derived
  /v1/simulations/{simulation_id}:
    get:
      operationId: simulations_retrieve
      description: 'GET /v1/simulations/: one run, the same object the list returns. What a caller polls after POST /v1/simulations (and the MCP tool get_simulation) until the run is completed or failed, with its recording URL, transcript and grade.'
      parameters:
      - in: path
        name: simulation_id
        schema:
          type: integer
        required: true
      tags:
      - Simulations
      security:
      - bearerAuth: []
      - bearerAuth: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SimulationRun'
          description: ''
      summary: Simulations retrieve
      x-summary-source: derived
  /v1/simulations/batches:
    get:
      operationId: simulations_batches_list
      description: List and create test call batches. A batch spawns N staggered ``SimulationRun`` instances against the same target. Runs are created synchronously (fast) and then launched asynchronously via a background thread that sleeps ``stagger_seconds`` between each launch.
      tags:
      - Simulations
      security:
      - bearerAuth: []
      - bearerAuth: []
      responses:
        '200':
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/SimulationBatch'
          description: ''
      summary: Simulations batches list
      x-summary-source: derived
    post:
      operationId: simulations_batches_create
      description: List and create test call batches. A batch spawns N staggered ``SimulationRun`` instances against the same target. Runs are created synchronously (fast) and then launched asynchronously via a background thread that sleeps ``stagger_seconds`` between each launch.
      tags:
      - Simulations
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SimulationBatchCreateRequest'
        required: true
      security:
      - bearerAuth: []
      - bearerAuth: []
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SimulationBatch'
          description: ''
      summary: Simulations batches create
      x-summary-source: derived
  /v1/simulations/batches/{batch_id}:
    get:
      operationId: simulations_batches_retrieve
      description: Retrieve a single test call batch with its current status and run IDs.
      parameters:
      - in: path
        name: batch_id
        schema:
          type: integer
        required: true
      tags:
      - Simulations
      security:
      - bearerAuth: []
      - bearerAuth: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SimulationBatch'
          description: ''
      summary: Simulations batches retrieve
      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'
    SimulationBatchCreateRequest:
      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_prompts:
          type: array
          items:
            type: string
            maxLength: 4000
          maxItems: 20
        run_count:
          type: integer
          maximum: 20
          minimum: 1
          default: 3
        stagger_seconds:
          type: integer
          maximum: 60
          minimum: 0
          default: 5
        name:
          type: string
          default: ''
          maxLength: 255
        language:
          type: string
          maxLength: 32
        primary_language:
          type: string
          maxLength: 32
        consent_to_charge:
          type: boolean
      required:
      - consent_to_charge
      - target_id
      - target_type
    SimulationBatchStatusEnum:
      enum:
      - pending
      - in_progress
      - completed
      - failed
      type: string
      description: '* `pending` - Pending

        * `in_progress` - In Progress

        * `completed` - Completed

        * `failed` - Failed'
    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
    SimulatorProductEnum:
      enum:
      - testing
      - spark
      type: string
      description: '* `testing` - testing

        * `spark` - spark'
    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
    SimulationBatch:
      type: object
      properties:
        id:
          type: integer
          readOnly: true
        name:
          type: string
          readOnly: true
        target_type:
          allOf:
          - $ref: '#/components/schemas/TargetTypeEnum'
          readOnly: true
        target_id:
          type: integer
          readOnly: true
        direction:
          allOf:
          - $ref: '#/components/schemas/DirectionD75Enum'
          readOnly: true
        target_number:
          type: string
          readOnly: true
        scenario_prompts:
          readOnly: true
          description: List of scenario prompt strings; one per run. If shorter than run_count, prompts are cycled.
        matrix_dimensions:
          readOnly: true
          description: Selected voice-condition values used to expand this batch.
        run_count:
          type: integer
          readOnly: true
        stagger_seconds:
          type: integer
          readOnly: true
          description: Delay in seconds between launching successive runs.
        status:
          allOf:
          - $ref: '#/components/schemas/SimulationBatchStatusEnum'
          readOnly: true
        total_runs:
          type: integer
          readOnly: true
        completed_runs:
          type: integer
          readOnly: true
        failed_runs:
          type: integer
          readOnly: true
        estimated_minutes:
          type: integer
          readOnly: true
        estimated_cost_cents:
          type: integer
          readOnly: true
        error_message:
          type: string
          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
        run_ids: {}
      required:
      - completed_at
      - completed_runs
      - created_at
      - direction
      - error_message
      - estimated_cost_cents
      - estimated_minutes
      - failed_runs
      - id
      - matrix_dimensions
      - name
      - requested_by_id
      - run_count
      - scenario_prompts
      - stagger_seconds
      - started_at
      - status
      - target_id
      - target_number
      - target_type
      - total_runs
      - updated_at
    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