Skip to Content
Eval suites

Create an eval suite

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

Creates a versioned suite. New suites add scenarios and attach checks through their own endpoints.

slug is immutable and workspace-unique.

The definition field is legacy

It is optional, defaults to {}, and carries only legacy v1 suite fields: rubric, assertions and personas. Legacy definition.personas entries are mirrored into first-class scenarios.

Limits — the encoded definition is capped at 1,048,576 bytes, and the complete encoded request body at 1,114,112 bytes.

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
slug*string
Match^[a-z0-9][a-z0-9_-]{1,63}$
Length2 <= length <= 64
name*string

Limited to 200 UTF-8 encoded bytes; maxLength is a generator hint.

Length1 <= length <= 200
description?|

Limited to 2000 UTF-8 encoded bytes; maxLength is a generator hint.

Lengthlength <= 2000
definition?

Optional; defaults to {}. Holds only the legacy (v1) suite fields; a v2 suite keeps its scenarios (/eval-suites/{id}/scenarios) and checks (/eval-suites/{id}/checks) as their own resources and needs nothing here. Recognised keys, all optional: rubric (array of at most 500 {name, description, ...} objects) — legacy LLM rubric criteria scored per conversation; assertions (object) — legacy structured assertions applied to every scenario (expected_path, expected_terminal_node, expected_tools_called, must_not_call_tools), overridden per scenario by the same key; personas (array of at most 5000 {id, label, persona, scenario, assertions} objects) — mirrored into first-class scenarios on write. Other keys are stored and ignored. The encoded value must be at most 1048576 bytes.

Response Body

Suite created with a strong ETag.

application/json
  1. response
id*string
Formatuuid
slug*string
Match^[a-z0-9][a-z0-9_-]{1,63}$
Length2 <= length <= 64
name*string
Length1 <= length <= 200
description*|
Lengthlength <= 2000
version*integer
Formatint64
Range1 <= value
archived_at*|
Formatdate-time
created_at*string
Formatdate-time
updated_at*string
Formatdate-time
definition*

Open JSON object; the encoded value must be at most 1048576 bytes.

Example Request
curl -X POST 'https://api.kejue.co/v1/eval-suites' \  -H 'Idempotency-Key: string' \  -H 'Content-Type: application/json' \  -d '{  "slug": "string",  "name": "string"}'
Example Response
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "slug": "string",  "name": "string",  "description": "string",  "version": 1,  "archived_at": "2019-08-24T14:15:22Z",  "created_at": "2019-08-24T14:15:22Z",  "updated_at": "2019-08-24T14:15:22Z",  "definition": {}}