run_test
Run a test against a voice agent you control. Two modes: (1) score a captured transcript offline — pass "transcript" (or "turns") plus "scenarioGoal"; the judge returns a scored run synchronously. (2) run a live synthetic call — pass "targetAgent" and "goal". A live "direct" (SIP/WebRTC) target returns a tokenized media WebSocket URL for your agent-side harness to dial; a "pstn" target places a real carrier call (pro+ plans) to a number you have verified — an unverified destination returns 403 NUMBER_NOT_VERIFIED and no call is placed. Poll get_run / GET /api/tests/{id} for the terminal scored state of a live run.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| goal | No | What the synthetic caller should accomplish (live mode). | |
| turns | No | Per-turn capture; formatted into a transcript when "transcript" is omitted. | |
| record | No | Record this call to YOUR OWN storage (BYOS, default false). Requires the byosRecording capability (pro/enterprise) and an enabled recording target; the customer-owned pointer comes back in the run’s recording_url. wordis-bond keeps only the pointer, never the audio. | |
| bargeIn | No | ||
| persona | No | The synthetic caller persona (live mode). | |
| suiteId | No | Link this run to a suite (optional). | |
| expected | No | ||
| language | No | BCP-47 language tag, default "en". | |
| transport | No | Force a transport (live mode). | |
| assertions | No | Extra pass/fail checks for the judge. | |
| transcript | No | Captured conversation to score (offline mode). | |
| concurrency | No | Number of parallel live calls. | |
| targetAgent | No | The voice agent under test — a system you run. transport "direct" (SIP/WebRTC) has near-zero cost and works on every plan; "pstn" places a real carrier call (pro+ plans) and only to a number you have verified. The hosted demo target is { "transport": "direct", "peerId": "wb-demo-dental" }. | |
| scenarioGoal | No | What the conversation was meant to accomplish (offline mode). | |
| recordTargetId | No | Record to THIS target (else the most-recent enabled one). |