Skip to Content
Eval runs

Create an eval run

Permissioneval-runs:createAdd-onEvaluationsRetriesIdempotency-Key requiredAuthentication
POST
/eval-runs

Queues an asynchronous batch. API-key clients cannot request tool_policy=live here; use create_live_eval_run with the additional live-tool scope. The maximum encoded request body is 262144 bytes. Poll Location after Retry-After. Replaying the same Idempotency-Key returns the original run without queuing a duplicate.

Authorization

bearerAuth
headerAuthorizationBearer <token>

Use a Voice API key or connected-app OAuth access token. Authentication.

Header Parameters

Idempotency-Key*string

Required. Reuse the same key to retry this write safely. Retries and idempotency.

Match^[A-Za-z0-9!#$%&'*+.^_`|~-]+$
Length1 <= length <= 255

Request Body

application/json
  1. body
agent_id*string
Formatuuid
agent_version_id?string
Formatuuid
suite_id*string
Formatuuid
mode*"text"

Mode to run. Only text is supported.

Value in"text"
concurrency?integer

Zero selects the mode default; the server clamps against current workspace headroom.

Range0 <= value <= 1000
Default0
tool_policy?string

API keys must use create_live_eval_run for live tool execution.

Default"dry_run"
Value in"dry_run""mocked"
runtime_profile?

Evaluation behavior and optional platform catalog references. Internal model, provider and upstream voice names are not accepted; select the corresponding catalog UUID.

Response Body

Run accepted and queued.

application/json
  1. response
id*string
Formatuuid
effective_concurrency*integer

Requested value after mode defaults and current workspace headroom clamping; the deployment cap is configurable.

Range1 <= value <= 1000
total*integer
Range1 <= value
Example Request
curl -X POST 'https://api.kejue.co/v1/eval-runs' \  -H 'Idempotency-Key: string' \  -H 'Content-Type: application/json' \  -d '{  "agent_id": "2b1e3b65-2c04-4fa2-a2d7-467901e98978",  "suite_id": "3e9c08eb-436b-4d4b-9cfe-ca21d8bdb99b",  "mode": "text"}'
Example Response
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "effective_concurrency": 1,  "total": 1}