Skip to main content
POST
/
test_framework
/
v1
/
scenarios
/
run_scenarios_pipecat
cURL
curl --request POST \
  --url https://api.cekura.ai/test_framework/v1/scenarios/run_scenarios_pipecat/ \
  --header 'Content-Type: application/json' \
  --header 'X-CEKURA-API-KEY: <api-key>' \
  --data '
{
  "scenarios": [
    {
      "scenario": 123,
      "pipecat_room_url": "<string>",
      "pipecat_token": "<string>",
      "publish_data_message": "<unknown>"
    }
  ]
}
'
{
  "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"
}

Authorizations

X-CEKURA-API-KEY
string
header
required

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

Body

Schema for the run_scenarios_pipecat endpoint, which runs scenarios using Pipecat WebRTC.

scenarios
object[]
required

List of scenarios to run with their Pipecat WebRTC configuration

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[]
created_at
string<date-time>
Example:

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