Skip to main content
GET /v1/agents/{agent_id} Returns the full details of the specified Agent.

Headers

HeaderRequiredDescription
AuthorizationYesBearer <PAT>
X-CAS-Include-ExtendedNoSet to true to include extended fields (skills, metadata) in the response

Path parameters

ParameterTypeRequiredDescription
agent_idstringYesAgent unique identifier (agent_ prefix followed by a UUID)

Example request

curl -X GET "https://api.qoder.com/api/v1/cloud/agents/agent_019eXXXXXXXXXXXXXXXXXXXXXXXXXXXX" \
  -H "Authorization: Bearer $QODER_PAT"

Example request (with extended fields)

curl -X GET "https://api.qoder.com/api/v1/cloud/agents/agent_019eXXXXXXXXXXXXXXXXXXXXXXXXXXXX" \
  -H "Authorization: Bearer $QODER_PAT" \
  -H "X-CAS-Include-Extended: true"

Example response

HTTP 200 OK
{
  "type": "agent",
  "id": "agent_019eXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
  "name": "doc-test-agent",
  "description": "",
  "model": "ultimate",
  "system": "You are a documentation testing assistant.",
  "instructions": "You are a documentation testing assistant.",
  "tools": [],
  "mcp_servers": [],
  "skills": [
    {"type": "custom", "skill_id": "skill_019e5d133c057536872f745e0b6dbd5d"}
  ],
  "metadata": {},
  "default_environment": "",
  "version": 1,
  "archived": false,
  "archived_at": null,
  "created_at": "2026-05-18T15:26:39.61669Z",
  "updated_at": "2026-05-18T15:26:39.61669Z"
}
Without the X-CAS-Include-Extended: true header, the response omits the skills and metadata fields.

Response fields

FieldTypeDescription
typestringAlways "agent"
idstringAgent unique identifier
namestringAgent name
descriptionstringAgent description
modelstringModel identifier
instructionsstringSystem prompt
systemstringAlias of instructions (deprecated, use instructions instead)
toolsarrayTool configuration list
mcp_serversarrayMCP server configuration
skillsarraySkill bindings (extended field, requires X-CAS-Include-Extended: true)
metadataobjectCustom metadata (extended field, requires X-CAS-Include-Extended: true)
default_environmentstringDefault runtime environment
versionintegerCurrent version
archivedbooleanWhether archived (default false)
archived_atstring|nullArchive time (ISO 8601), null when not archived
created_atstringCreation time (ISO 8601)
updated_atstringLast update time (ISO 8601)

Errors

HTTPTypeTrigger
401authentication_errorPAT invalid or expired
403permission_errorNot authorized for this Agent
404not_found_errorAgent with the given ID does not exist
See Errors for the full error envelope.

Error response example

{
  "type": "error",
  "error": {
    "type": "not_found_error",
    "message": "Agent 'agent_nonexistent' was not found."
  }
}