Skip to Content
Agents

List agents

Permissionagents:readAuthentication
GET
/agents

Returns a cursor-paginated, organization-scoped page ordered by creation time and id, newest first.

Cursors are bound to this endpoint and filter set. Use archived=include or archived=only when an archived aggregate must remain discoverable.

What the summary fields describe

mode and pipeline_topology are derived from the effective version, in strict production → staging → draft precedence. When a production version exists, they do not describe a newer unpromoted draft.

Authorization

bearerAuth
headerAuthorizationBearer <token>

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

Query Parameters

cursor?string

Opaque pagination cursor from a previous response's next_cursor.

limit?integer

Page size (endpoint-bounded; typical default 25, max 100).

Range1 <= value <= 100
q?string

Case-insensitive substring search over agent slug and name.

Length1 <= length <= 200
created_from?|

Inclusive creation-time lower bound. A YYYY-MM-DD date is also accepted as midnight UTC.

created_to?|

Exclusive creation-time upper bound. Must be later than created_from.

mode?string
Value in"prompt""empty"
archived?string
Default"exclude"
Value in"exclude""include""only"

Response Body

Success

application/json
  1. response
data*array<>
next_cursor*string|null
Example Request
curl -X GET 'https://api.kejue.co/v1/agents'
Example Response
{  "data": [    {      "id": "11111111-1111-4111-8111-111111111111",      "slug": "billing_assistant",      "name": "Billing Assistant",      "revision": 5,      "updated_at": "2026-07-20T09:25:00Z",      "production_version_id": "33333333-3333-4333-8333-333333333333",      "production_version_number": 1,      "pipeline_topology": "two_stage_speechlm",      "mode": "prompt",      "created_at": "2026-07-20T09:00:00Z"    }  ],  "next_cursor": null}