Skip to main content
POST
Run evaluators against an email agent

Authorizations

X-CEKURA-API-KEY
string
header
required

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

Body

scenarios
integer[]
required

List of evaluator IDs to run.

frequency
integer
required

Number of times to run each scenario.

Required range: 1 <= x <= 100
agent_id
integer | null

ID of the agent to run against. Required if none of the scenarios have an agent.

agent_email
string<email> | null

Override the agent's configured email address for this run.

Response

200 - application/json
name
string
required

Name of the Result Example: "Test Result 1"

Maximum string length: 255
id
integer
read-only

Unique identifier for the Result Example: 123

agent
integer
read-only

ID of the AI agent that was tested Example: 123

agent_inbound
boolean
read-only

Whether the agent is configured for inbound calls (true) or outbound calls (false) Example: true or false

status
enum<string>
default:pending

Current status of the result

  • running - Running
  • completed - Completed
  • failed - Failed
  • pending - Pending
  • in_progress - In Progress
  • evaluating - Evaluating
  • in_queue - In Queue
  • timeout - Timeout
  • cancelled - Cancelled
  • scaling_up - Scaling Up
Available options:
running,
completed,
failed,
pending,
in_progress,
evaluating,
in_queue,
timeout,
cancelled,
scaling_up
success_rate
number<double>
default:0

Success rate of the test runs as a decimal (0.0 to 1.0)

run_as_text
boolean
default:false

Whether this test was run in text mode instead of voice mode Example: true or false

is_cronjob
string
read-only

Whether this result was created by a scheduled cronjob Example: true or false

runs
object
read-only

Run summaries for this result. For full run data including transcripts and metric scores, fetch the result detail endpoint — there runs is a dict keyed by run ID.

created_at
string<date-time>
read-only

Timestamp when this test result was created Example: 2021-01-01 00:00:00

updated_at
string<date-time>
read-only

Timestamp when this test result was last updated