Skip to Content
Eval suites

List eval scenarios

Permissioneval-suites:readAuthentication
GET
/eval-suites/{id}/scenarios

Returns a cursor-paginated page scoped to one suite. q matches slug, label, scenario text, and scenario text; archived controls lifecycle visibility.

Authorization

bearerAuth
headerAuthorizationBearer <token>

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

Path Parameters

id*string
Formatuuid

Query Parameters

cursor?string

Opaque pagination cursor from a previous response's next_cursor.

limit?integer

Number of catalog resources to return. The server fetches one extra row internally to produce next_cursor.

Range1 <= value <= 200
Default50
q?string

Case-insensitive literal substring search across slug, name, and description. The supplied and trimmed values must each contain 1–200 Unicode characters; blank values and every Unicode control character are rejected. Percent, underscore, and backslash are literal characters, not LIKE syntax.

Length1 <= length <= 200
created_from?string

Inclusive created_at lower bound as RFC3339 or YYYY-MM-DD (midnight UTC).

created_to?string

Exclusive created_at upper bound as RFC3339 or YYYY-MM-DD (midnight UTC). Must be after created_from.

archived?string

Whether archived resources are excluded, included alongside active resources, or returned exclusively.

Default"exclude"
Value in"exclude""include""only"

Response Body

Scenario page. offset is always zero for public cursor pagination.

application/json
  1. response
data*array<>
Itemsitems <= 200
next_cursor*string|null
total*integer
Range0 <= value
limit*integer
Range1 <= value <= 200
offset*integer

Public API cursor pagination always emits zero.

Example Request
curl -X GET 'https://api.kejue.co/v1/eval-suites/497f6eca-6276-4993-bfeb-53cbbbba6f08/scenarios'
Example Response
{  "data": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "slug": "string",      "label": "string",      "persona_text": "string",      "scenario_text": "string",      "assertions": {},      "source": "manual",      "generation_job_id": "cbb45fb9-5d30-40f9-8e81-176f4e856bb3",      "position": 0,      "version": 1,      "archived_at": "2019-08-24T14:15:22Z",      "created_at": "2019-08-24T14:15:22Z",      "updated_at": "2019-08-24T14:15:22Z"    }  ],  "next_cursor": "string",  "total": 0,  "limit": 1,  "offset": 0}