Skip to Content
Agents

List an agent's versions

Permissionagents:readAuthentication
GET
/agents/{id}/versions

Cursor-paginated compact history without prompt, workflow, or behavior bodies. Rows are ordered by created_at descending, then UUID id descending. A page cursor encodes the last returned pair and the request scope; the next page contains only tuples strictly older than that pair. Use a cursor only with this same agent and query shape. Fetch a selected version for its full configuration.

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 immutable agent-version summaries to return.

Range1 <= value <= 200
Default50

Response Body

Page of immutable versions.

application/json
  1. response
data*array<>
next_cursor*|

Opaque cursor for the next strictly older (created_at, id) tuple. Null means the traversal is complete. A non-null value is bound to this agent, endpoint, sort order, and query shape and must not be edited or reused on another list operation.

Example Request
curl -X GET 'https://api.kejue.co/v1/agents/497f6eca-6276-4993-bfeb-53cbbbba6f08/versions'
Example Response
{  "data": [    {      "id": "99999999-9999-4999-8999-999999999999",      "version": 2,      "is_draft": false,      "name": "Safer billing transfer",      "pipeline_topology": "two_stage_speechlm",      "created_by": "aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa",      "created_at": "2026-07-20T09:45:00Z"    },    {      "id": "33333333-3333-4333-8333-333333333333",      "version": 1,      "is_draft": false,      "name": "Initial production candidate",      "pipeline_topology": "two_stage_speechlm",      "created_by": "aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa",      "created_at": "2026-07-20T09:15:00Z"    }  ],  "next_cursor": null}