Returns the full configuration of an agent by ID. Returns the latest version by default; use the version parameter to specify a historical version.
Prerequisites
Endpoint and authentication configured. For details, see Overview and authentication.
Endpoint
GET /agents/{agent_id}
Query parameters
| Parameter | Required | Type | Description |
|---|---|---|---|
version | No | int | Version number to retrieve; returns the latest version if not specified |
Request example
Response example
Response fields
| Field | Type | Description |
|---|---|---|
id | string | Agent ID, format: agent_<ULID> |
type | string | Always agent |
version | int | Current version number, auto-incremented on each update; locked when a session is created |
name / description / system | string | Agent name, description, and system prompt |
model / tools / mcp_servers / skills / multiagent / metadata | object / array | Model, toolkits, MCP references, skills, multi-agent collaboration, and business metadata; structure same as at creation |
archived_at | string | null | Archive timestamp; null if not archived |
created_at / updated_at | string | Creation / last update time, ISO 8601 |
workspace_id | string | Workspace ID |
request_id | string | Unique identifier for this request |