Skip to Content
Agents

Get an agent version

Permissionagents:readAuthentication
GET
/agent-versions/{vid}

Returns an exact draft or immutable snapshot together with the parent agent aggregate revision. The ETag versions the complete agent aggregate, not only this version row; use it on a subsequent agent mutation. It is not interchangeable with an after-call configuration ETag.

Authorization

bearerAuth
headerAuthorizationBearer <token>

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

Path Parameters

vid*string
Formatuuid

Response Body

Success

application/json
  1. response
agent_id*string
Formatuuid
revision*integer

Parent aggregate revision corresponding to the response ETag.

Formatint64
Range1 <= value
version*|

Full draft or immutable snapshot. Drafts have is_draft=true and omit version; immutable snapshots have is_draft=false and require their positive version number. prompt and workflow are mutually exclusive. Modern runnable rows have exactly one of them; neither is allowed only so a versionless or migrated legacy empty row remains readable and can be repaired through draft authoring.

Example Request
curl -X GET 'https://api.kejue.co/v1/agent-versions/497f6eca-6276-4993-bfeb-53cbbbba6f08'
Example Response
{  "agent_id": "11111111-1111-4111-8111-111111111111",  "revision": 5,  "version": {    "id": "33333333-3333-4333-8333-333333333333",    "version": 1,    "is_draft": false,    "name": "Initial production candidate",    "prompt": "Help {{lead_name}} resolve their billing question. Call {{system.call_id}} is handled in {{system.timezone.asia-dubai}}.",    "pipeline_topology": "two_stage_speechlm",    "pipeline_mode": "speech_model",    "endpointing_mode": "auto",    "created_by": "aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa",    "created_at": "2026-07-20T09:15:00Z"  }}