Skip to main content
POST
cURL

Authorizations

X-CEKURA-API-KEY
string
header
required

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

Body

Create or improve evaluator scenarios using AI by providing natural-language feedback. This endpoint does not improve the target AI agent itself.

Provide evaluator IDs and your improvement request, and the AI will suggest changes.

user_message
string
default:""

Evaluator-scenario request (e.g., 'Make these scenario instructions more detailed'). Do not use for agent prompt/config improvements.

agent_id
integer | null

Agent ID - optional, automatically inferred from evaluators if not provided

project_id
integer | null

Project ID - optional, automatically inferred from evaluators if not provided

session_id
integer | null

Session ID for tracking - automatically created if not provided

context
object[] | null

Conversation history for multi-turn improvements. Allows iterative refinement without sessions.

Example:

num_scenarios
integer
default:1

Number of scenarios to generate in clarify mode

Required range: x >= 1
knowledge_base
integer[]

Knowledge Base file IDs for additional context in clarify mode

scenarios
any | null

Evaluator IDs to improve. Pass as a list of integers [101, 102], a single integer 101, or the string "all" to improve all evaluators for the agent. Do not pass IDs as a JSON-stringified list — pass them as a native array.

apply_changes
boolean
default:false

Set to true to apply the AI-suggested changes to your evaluators

updated_scenarios
object[]

AI-suggested changes from previous response - use with apply_changes=true to apply them

agent_selections
object

Structured agent selections: maps scenario_id (as string key) to agent_id. Use this instead of agent_resolution_response.

agent_resolution_response
string
default:""

Deprecated: use agent_selections instead

scenarios_needing_agent
integer[]

Evaluator IDs that required agent selection

pending_tool_calls
object[] | null

Tool calls held from a previous agent-clarification response

tool_ids
string[]

Tools that will be enabled on the generated evaluators (validated up front)

inbound_phone_numbers
integer[]

Inbound numbers that will be attached to the generated evaluators (validated up front)

Response

progress_id
string
required

Use this to poll for results at /scenario-agent-progress/?progress_id={id}

session_id
integer
required

Session tracking ID