API Reference
REST API for queuing voice agent tests and retrieving results. All endpoints require Bearer token authentication.
Authentication
Pass your API key as a Bearer token in the Authorization header. Find your key in the dashboard after signing up.
Queue a test batch
Queues one or more tests against a voice agent. Each test is a natural-language goal string. Returns immediately with a run_id for polling.
| Field | Type | Required | Description |
|---|---|---|---|
target_name | string | optional | Label for the agent being tested (e.g. "SkyWay Airlines"). Max 100 chars. |
phone_number | string | required | US/Canada phone number. Formats: "+10010010001", "0010010001", "(001) 001-0001". Punctuation stripped. |
tests | string[] | required | Array of test goals. Natural-language descriptions. Min 1, max 50. |
max_concurrency | integer | optional | Max simultaneous tests for this batch. Default: 1. |
run_id | string | optional | Your own identifier (1–128 chars). Must be unique — reuse returns 409. |
Request:
Responses:
Get batch results
Polls the status of a test batch. Returns individual test results when complete. Poll every 5–10 seconds.
Request:
Responses:
Status values: queued → running → complete. A batch is complete when all tests are passed or failed.
Special test targets
Instead of a real phone number, use special target numbers for CI validation or prompt iteration without incurring call charges.
CI integration targets (no charge)
phone_number | Behavior | Description |
|---|---|---|
+10010010001 | INSTANT | Passes in ~100ms. Verify your CI can queue and poll. |
+10010010002 | SLOW | Passes after 180s. Verify CI handles long-running tests. |
+10010010003 | FAIL | Always fails. Verify CI reports failures correctly. |
+10010010004 | FLAKY | Random 50/50. Verify CI handles both outcomes. |
Simulated IVA targets (no charge)
Simulated multi-turn conversation with a built-in voice agent (LLM-to-LLM, no real phone call). No minutes deducted.
phone_number | Simulated IVA | Description |
|---|---|---|
+10010010005 | SkyWay Airlines | Simulated airline reservation agent. |
+10010010006 | Grand Plaza Hotel | Simulated hotel front desk agent. |
Any other phone number triggers a real outbound call. Minutes charged based on call duration (rounded up, min 1 minute).
Account info
Returns your current plan, balance, and usage.
See Quick Start for ready-to-use CI scripts.