Testing
Create Test Case
Create a test case inside a suite with assertions for phrases, functions, and call duration
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
Must be
create_caseUUID of the test suite this case belongs to.
Display name for the test case.Example:
"Caller asks about business hours"What this test case validates.
Call direction.
inbound_call — test caller dials the agent. outbound_call — agent calls the test number.UUID of the agent to test. If omitted, uses the agent associated with the test suite.
How the test caller behaves.
silent — stays quiet (tests greeting/opening). scripted — speaks from caller_script.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?"]Phrases that must appear in the transcript. Case-insensitive substring matching.Example:
["Monday through Friday", "9 AM to 5 PM"]Phrases that must NOT appear. Test fails if any are found.Example:
["I don't know", "I'm not sure"]Custom function names that must be called during the conversation.Example:
["book_appointment", "send_confirmation_sms"]Minimum acceptable call duration in seconds.
Maximum acceptable call duration in seconds.
Response
The created test case object with all configured fields and its new UUID.