Retrieve a test scenario by ID
API Key Authentication. It should be included in the header of each request.
A unique integer value identifying this scenario.
Name of the evaluator
Agent ID
Example: 2142
ID of the personality
Name of the personality
Name of the agent associated with this scenario
Example: "Customer Support Agent"
List of tags of the evaluators
Example: ["tag1", "tag2", "tag3"]
List of tool IDs to associate with this scenario
Example: ["TOOL_DTMF", "TOOL_END_CALL"]
List of run IDs
Example: [123, 456, 789]
List of metric IDs
Example: [123, 456, 789]
List of metric names
Example: ["Metric 1", "Metric 2", "Metric 3"]
Phone number eg: +17776666333
Phone number used for outbound calls in this scenario
Example: "+1234567890"
First message of the evaluator
(Deprecated) Phone number used for inbound calls in this scenario. Use outbound_phone_number_data instead.
After CEK-6517, both phone_number and inbound_phone_number fields are synced, so outbound_phone_number_data contains the unified phone number for both inbound and outbound calls.
Example: {"id": 123, "number": "+1234567890", "phone_number_id": "abc123"}
Scenario Instructions - format depends on scenario_type:
instruction type: Plain text instructionsconditional_actions type: JSON string with role and conditions array. Each condition has id, condition trigger (FIRST_MESSAGE, contains operators, or id reference), action (text with optional <break time="1.5s" /> and [laughter] tags), type (standard/action_followup), and fixed_message flagSimulation Description
Information fields of the evaluator Example:
{
"user_name": "John Doe",
"user_email": "john.doe@example.com",
}
Expected outcome prompt of the evaluator
Example: "The user should be able to complete the order"
Language of the scenario
af - Afrikaansar - Arabicbn - Bengalibg - Bulgarianzh - Chinese Simplifiedcs - Czechda - Danishnl - Dutchen - Englishet - Estonianfi - Finnishfr - Frenchde - Germanel - Greekgu - Gujaratihi - Hindihe - Hebrewhu - Hungarianid - Indonesianit - Italianja - Japanesekn - Kannadako - Koreanms - Malayml - Malayalammr - Marathimulti - Multilingualno - Norwegianpl - Polishpa - Punjabipt - Portuguesero - Romanianru - Russiansk - Slovakes - Spanishsv - Swedishth - Thaitr - Turkishta - Tamilte - Teluguuk - Ukrainianvi - Vietnameseaf, ar, bn, bg, zh, cs, da, nl, en, et, fi, fr, de, el, gu, hi, he, hu, id, it, ja, kn, ko, ms, ml, mr, multi, no, pl, pa, pt, ro, ru, sk, es, sv, th, tr, ta, te, uk, vi Type of scenario:
instruction: Standard instruction-based scenario (plain text instructions)conditional_actions: Conditional action-based scenario (JSON with role, conditions, SSML tags, emotion markers)real_world_smart: Real world smart scenarioreal_world_fixed: Real world fixed scenarioType of predefined suite (e.g., infrastructure)
undefined - Undefinedinfrastructure - Infrastructureundefined, infrastructure Whether this is a predefined scenario (template)
Details of the test profile associated with this scenario Example:
{
"id": "<integer>",
"agent_id": "<integer>",
"name": "<string>",
"information": {
"user_name": "<string>",
"user_email": "<string>",
"order_id": "<string>",
},
}
Generated values for the agent's dynamic variables for this scenario. Keys are variable names; values are the generated values.
Path of the folder this scenario belongs to
Max call duration in seconds for this scenario. If not provided or set to null, the scenario will use the project's max_call_duration setting.
Valid range: 10-3600 seconds (10 seconds to 60 minutes)
Example: 600 (10 minutes)