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"
}{
"field_name": [
"<string>"
]
}{
"detail": "<string>"
}Others
Create Evaluators from Call Logs
deprecated
Create scenarios from call logs in background using Celery tasks.
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"
}{
"field_name": [
"<string>"
]
}{
"detail": "<string>"
}Deprecated. Use Create Evaluators from Call Logs (v3) instead: it returns the result in one call, with no polling.
Authorizations
api_keyoauth2embedded_sessionsupabase_session
API Key Authentication. It should be included in the header of each request.
Body
application/jsonapplication/x-www-form-urlencodedmultipart/form-data
Agent ID, required if assistant_id is not provided
Example: 2142
Assistant ID, required if agent_id is not provided
Example: asst_1234567890
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"
Optional agent ID to copy created scenarios to
Example: 2142
Project ID. Required when using folder_path.
Example: 1376
Folder path to assign the created scenarios to.
Example: "Sales.Inbound"
Response
Unique identifier for tracking the progress of scenario creation