ThunderPhone Test Call Batches API

The test-call-batches API from ThunderPhone — 2 operation(s) for test-call-batches.

GitHub OpenAPI

Operations 3

GET /v1/test-call-batches Test call batches list #
POST /v1/test-call-batches Test call batches create #
GET /v1/test-call-batches/{batch_id} Test call 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-test-call-batches-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-call-batches-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: ThunderPhone Test Call Batches 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-call-batches
paths:
  /v1/test-call-batches:
    get:
      operationId: test_call_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:
      - test-call-batches
      security:
      - bearerAuth: []
      - bearerAuth: []
      responses:
        '200':
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/SimulationBatch'
          description: ''
      summary: Test call batches list
      x-summary-source: derived
    post:
      operationId: test_call_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:
      - test-call-batches
      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: Test call batches create
      x-summary-source: derived
  /v1/test-call-batches/{batch_id}:
    get:
      operationId: test_call_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:
      - test-call-batches
      security:
      - bearerAuth: []
      - bearerAuth: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SimulationBatch'
          description: ''
      summary: Test call batches retrieve
      x-summary-source: derived
components:
  schemas:
    DirectionD75Enum:
      enum:
      - outbound
      - inbound
      type: string
      description: '* `outbound` - Outbound

        * `inbound` - Inbound'
    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'
    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'
  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