Skip to main content
POST
/
observability
/
v1
/
call-logs
/
create_scenarios
curl --request POST \
  --url https://api.cekura.ai/observability/v1/call-logs/create_scenarios/ \
  --header 'Content-Type: application/json' \
  --header 'X-CEKURA-API-KEY: <api-key>' \
  --data '
{
  "agent_id": 2142,
  "call_logs": [
    1,
    2,
    3
  ],
  "copy_to_agent": null
}
'
{
  "progress_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}

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

Agent ID, required if assistant_id is not provided Example: 2142

assistant_id
string

Assistant ID, required if agent_id is not provided Example: asst_1234567890

call_logs
integer[]

List of call log IDs to create scenarios from. Can also be the string "all" to process all call logs. Example: [1, 2, 3] or "all"

copy_to_agent
integer | null

Optional agent ID to copy created scenarios to Example: 2142

Response

progress_id
string<uuid>

Unique identifier for tracking the progress of scenario creation