VocalDocscontracts 1.65.0

Read an Agent draft

GET /v1/agents/{agent_id}

PropertyValue
Operationget_agent
GroupAgents
Scopeagents:read
Route classread
IdempotencyNo Idempotency-Key
AuditNot audited: A metadata read; Agent configuration is not Call content.
Released in1.0.0
Phase 0 hostServed (the hosted api pins 1.65.0)

Request

Set VOCAL_API to the base URL of your API and VOCAL_API_KEY to an API key with the agents:read scope (Authentication and keys). Replace each placeholder, such as agt_... or <name>, with your own value.

curl "$VOCAL_API/v1/agents/agt_..." \
  -H "Authorization: Bearer $VOCAL_API_KEY"

Parameters

NameInTypeRequiredDescription
agent_idpathAgentIdyesThe id of an Agent: agt_ and the row's UUIDv7 in 26 Crockford base32 characters. Opaque and safe to log.

Responses

StatusContent typeShapeError codes
200application/jsonAgent
400application/jsonErrorEnvelopeinvalid_request
401application/jsonErrorEnvelopeunauthenticated
403application/jsonErrorEnvelopeforbidden
404application/jsonErrorEnvelopenot_found
429application/jsonErrorEnveloperate_limited
500application/jsonErrorEnvelopeinternal_error

Fields of the 200 answer

The shape is Agent.

FieldTypeRequiredDescription
active_versioninteger or nullyesThe version new Calls run, or null when none is active.
configAgentConfigyes
created_atTimestampyes
descriptionstring or nullyesA free-text description.
evaluation_gateAgentEvaluationGate or nullnoThe publish gate the Agent's owner turned on (1.63.0); null when none. Absent from an api before 1.63.0, which a reader treats as null.
idAgentIdyes
latest_versioninteger or nullyesThe highest published version, or null before the first publish.
namestringyesA display name.
object"agent"yes
revisionintegeryesCounts writes to the draft; returned as the ETag and required in If-Match.
updated_atTimestampyes