---
title: "Create evaluators from call logs"
method: POST
path: "/observability/v3/call-logs/create_scenarios/"
tags: ["observability"]
---

# Create evaluators from call logs

`POST /observability/v3/call-logs/create_scenarios/`

## Request

- Base URL: `https://api.cekura.ai`
- URL: `https://api.cekura.ai/observability/v3/call-logs/create_scenarios/`
- Auth: one of:
  - API key in header `X-CEKURA-API-KEY`
  - HTTP bearer
  - HTTP bearer
  - HTTP bearer

Turn up to 50 call logs (a list of ids, or a number of call logs) into evaluators and return them once every call log is processed. Call logs need a transcript. Usually takes 1–3 minutes.

## Request body

- SchemaPostCreateScenarios
  - `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, nullable: Optional agent ID to copy created scenarios to Example: `2142`
  - `project_id` integer: Project ID. Required when using folder_path. Example: `1376`
  - `folder_path` string, nullable: Folder path to assign the created scenarios to. Example: `"Sales.Inbound"`

## Response `200`

- object
  - `status` 'completed' | 'failed': `failed` when the job could not produce its result; see `error` / `errors`.
  - `project_id` integer, nullable
  - `agent_id` integer, nullable
  - `total_scenarios` integer
  - `completed_scenarios` integer
  - `failed_scenarios` integer
  - `scenarios_list` object[]: The created evaluators.
  - `errors` object[]: Call logs that could not become an evaluator, with the reason.
    - `call_log_id` integer
    - `error` object

## Other responses

- `400`
- `403`: No access to the agent, project, metric or result the job runs on.
- `504`: The job did not finish within 15 minutes. It may still complete in the background.

## Changes

- **2026-11-03** `a6fb6a739212`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/cekura/apis/cekura-api/changes/observability/v3/call-logs/create_scenarios/post.md)

---

[API](https://skmtc.dev/cekura/apis/cekura-api.md) - [All operations](https://skmtc.dev/cekura/apis/cekura-api/llms.txt) - [OpenAPI document](https://skmtc.dev/cekura/apis/cekura-api/revisions/a6fb6a739212?raw)
