Skip to main content
POST
/
test_framework
/
v1
/
scenarios
/
run_scenarios_vapi_webrtc
Run evaluators against a VAPI WebRTC agent
curl --request POST \
  --url https://api.cekura.ai/test_framework/v1/scenarios/run_scenarios_vapi_webrtc/ \
  --header 'Content-Type: application/json' \
  --header 'X-CEKURA-API-KEY: <api-key>' \
  --data '
{
  "scenarios": [
    123
  ],
  "vapi_assistant_id": "<string>",
  "agent_id": 123,
  "project_id": 123,
  "frequency": 1,
  "name": "<string>",
  "concurrency_limit": 123
}
'
{
  "id": 123,
  "agent": 123,
  "status": "pending",
  "run_as_text": false,
  "runs": [
    {
      "id": 123,
      "status": "pending",
      "scenario": 123,
      "number": "+11234567890",
      "inbound_number": "+11234567890",
      "scenario_name": "<string>",
      "test_profile_data": {}
    }
  ],
  "created_at": "2025-02-25T21:00:01.990052Z"
}

Documentation Index

Fetch the complete documentation index at: https://docs.cekura.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

X-CEKURA-API-KEY
string
header
required

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

Body

scenarios
integer[]
required

List of scenario IDs to run

vapi_assistant_id
string
required

The VAPI assistant ID to test against

agent_id
integer

Agent ID (optional if scenarios all belong to one agent)

project_id
integer
frequency
integer
default:1
name
string
concurrency_limit
integer

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"