Skip to main content
POST
Creates a test case inside a suite. Test cases define a scenario — the call direction, how the test caller behaves, and what assertions to validate after the call completes.

Body Parameters

string
required
Must be create_case
string
required
UUID of the test suite this case belongs to.
string
required
Display name for the test case.Example: "Caller asks about business hours"
string
What this test case validates.
string
default:"inbound_call"
Call direction. inbound_call — test caller dials the agent. outbound_call — agent calls the test number.
string
UUID of the agent to test. If omitted, uses the agent associated with the test suite.
string
default:"silent"
How the test caller behaves. silent — stays quiet (tests greeting/opening). scripted — speaks from caller_script.
array
Array of strings the test caller speaks, one per turn. Used when caller_mode is scripted.Example: ["Hi, what are your hours?", "Can I book for tomorrow?"]
array
Phrases that must appear in the transcript. Case-insensitive substring matching.Example: ["Monday through Friday", "9 AM to 5 PM"]
array
Phrases that must NOT appear. Test fails if any are found.Example: ["I don't know", "I'm not sure"]
array
Custom function names that must be called during the conversation.Example: ["book_appointment", "send_confirmation_sms"]
number
Minimum acceptable call duration in seconds.
number
Maximum acceptable call duration in seconds.

Response

object
The created test case object with all configured fields and its new UUID.