Skip to main content
POST
/
test_framework
/
v1
/
scenarios
/
run_scenarios
/
cURL
curl --request POST \
  --url https://api.cekura.ai/test_framework/v1/scenarios/run_scenarios/ \
  --header 'Content-Type: application/json' \
  --header 'X-CEKURA-API-KEY: <api-key>' \
  --data '{
  "agent_id": 123,
  "assistant_id": "<string>",
  "scenarios": [
    123
  ],
  "tags": [
    "<string>"
  ],
  "frequency": 1,
  "name": "<string>",
  "outbound_phone_number": "<string>",
  "personality_ids": [
    123
  ],
  "test_profile_ids": [
    123
  ],
  "mode": "same_number"
}'
{
"id": 167,
"agent": 1,
"status": "pending",
"success_rate": 0,
"run_as_text": false,
"runs": [
{
"id": 274,
"scenario": 1,
"number": null,
"inbound_number": "+11234567890"
},
{
"id": 273,
"scenario": 2,
"number": null,
"inbound_number": "+11234567891"
}
],
"created_at": "2025-02-25T21:00:01.990052Z"
}

Authorizations

X-CEKURA-API-KEY
string
header
required

API Key Authentication. It should be included in the header of each request.

Body

agent_id
integer

The AI agent this evaluator is associated with

assistant_id
string

Alternative to agent ID - the assistant ID to use for this scenario

scenarios
integer[]

List of evaluator IDs to run. Either evaluators or tags must be provided.

tags
string[]

List of tags to filter evaluators to run. Either evaluators or tags must be provided.

frequency
integer
default:1

The number of times each evaluator will run

name
string

Label text for result

outbound_phone_number
string

Override the phone number to use for outbound calls. Example: "+1234567890"

personality_ids
integer[] | null

List of personality IDs to override for this run. If not provided, uses the scenario's default personality.

test_profile_ids
integer[] | null

List of test profile IDs to override for this run. If not provided, uses the scenario's default test profile.

mode
enum<string>
default:same_number

Using same or different phone numbers for each evaluation

  • same_number - same_number
  • different_numbers - different_numbers
Available options:
same_number,
different_numbers

Response

id
integer

ID of the result

agent
integer

ID of the agent

status
enum<string>

Status of the result

Available options:
pending,
running,
completed,
failed
run_as_text
boolean

Whether the scenario ran as text or not

Example:

false

runs
object[]
Examples:
{
"id": 274,
"status": "pending",
"scenario": 1,
"number": null,
"inbound_number": "+11234567890",
"scenario_name": "Customer Support Call (Agent Inbound = True)",
"test_profile_data": null
}
{
"id": 275,
"status": "pending",
"scenario": 2,
"number": "+11234567890",
"inbound_number": null,
"scenario_name": "Outbound Sales Call (Agent Inbound = False)",
"test_profile_data": null
}
created_at
string<date-time>
Example:

"2025-02-25T21:00:01.990052Z"