cURL
curl --request POST \ --url https://api.cekura.ai/test_framework/v1/scenarios/run_scenarios_with_websockets/ \ --header 'Content-Type: application/json' \ --header 'X-CEKURA-API-KEY: <api-key>' \ --data ' { "scenarios": [ { "scenario": 123, "websocket_url": "<string>" } ], "frequency": 50 } '
{ "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" }
API’s for managing scenarios. This view set provides endpoints to list, create, and manage and run scenarios.
API Key Authentication. It should be included in the header of each request.
Scenarios with Websocket url
Show child attributes
Frequency to run
1 <= x <= 100
ID of the result
ID of the agent
Status of the result
pending
running
completed
failed
Whether the scenario ran as text or not
false
ID of the run
Status of the run
ID of the scenario
For outbound runs (agent.inbound=False). The given number that must be called from the phone number configured in the cekura agent.
"+11234567890"
For inbound runs (agent.inbound=True). The agent's configured phone number will receive calls from this number.
Name of the scenario
Details of the test profile associated with this run scenario
"2025-02-25T21:00:01.990052Z"