Skip to main content
POST
Create Test Scenario

Headers

string
required
Your API key for authentication.

Body Parameters

string
The pathway to test. Either pathway_id or persona_id is required.
string
The persona to test. Either pathway_id or persona_id is required.
string
required
Name of the scenario. Must be unique within the pathway/persona.
string
Description of what the scenario tests.
string
default:"CUSTOM"
One of: CUSTOM, VOICEMAIL, VOICEMAIL_SCREENER, ANGRY_CALLER, BELLIGERENT_CALLER, CONFUSED_CALLER, CALL_SCREENER, HAPPY_PATH, EDGE_CASE.
string
default:"AGENT"
One of: AGENT, REPLAY, HISTORICAL.
string
Prompt instructing the simulated caller how to behave.
string
Display name for the tester persona.
integer
default:"20"
Max conversation turns before the test ends. Maximum value is 50.
object
Custom request data to pass to the pathway (e.g., variables).
string
ID of the pathway node where the simulated conversation should begin. Use this to test a specific branch of a pathway without rewiring the flow. When omitted (or null), the test runs from the pathway’s default start node. If the ID does not match a node in the current pathway version, the run fails with an Invalid start_node_id error.
boolean
default:"false"
Enable Bland Tone naturalness scoring.
boolean
default:"false"
If true, this scenario must pass before the pathway can be promoted to production.
array
Pre-seeded messages for REPLAY scenarios.
string
Additional instructions for test execution.
object
Arbitrary metadata to attach to the scenario.
array
Array of assertion definitions.

Response

string
Unique identifier for the created scenario.
string
Organization ID that owns this scenario.
string
The pathway ID being tested (null if testing a persona).
string
The persona ID being tested (null if testing a pathway).
string
Name of the scenario.
string
Description of the scenario.
string
Scenario category.
string
Type of scenario.
string
Prompt for the simulated caller.
string
Display name for the tester persona.
integer
Maximum conversation turns.
object
Custom request data.
string
Starting node ID.
boolean
Whether Bland Tone scoring is enabled.
boolean
Whether this scenario is required for promotion.
boolean
Whether the scenario is enabled.
array
Pre-seeded messages for replay scenarios.
string
Additional instructions for test execution.
object
Arbitrary metadata.
array
Array of assertion objects.
string
ISO 8601 timestamp of when the scenario was created.

Docs for agents: llms.txt