Archive an agent so it is hidden from the default listing while remaining accessible by ID.
No request body is required.
HTTP 200 OK
Returns the full agent object after archival. The
See Errors for the full error envelope.
Request headers
| Header | Required | Description |
|---|---|---|
Authorization | Yes | Bearer <PAT> |
Path parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
agent_id | string | Yes | Unique agent identifier. |
Request body
No request body is required.
Example request
Example response
HTTP 200 OK
Response fields
Returns the full agent object after archival. The updated_at field is refreshed to the time of the archive operation.
| Field | Type | Description |
|---|---|---|
type | string | Always "agent". |
id | string | Unique agent identifier. |
name | string | Agent name. |
description | string | Agent description. |
model | string | Model identifier. |
instructions | string | System prompt. |
system | string | Alias of instructions. Deprecated; use instructions. |
tools | array | Tool configuration. |
mcp_servers | array | MCP server configuration. |
default_environment | string | Default runtime environment. |
version | integer | Current version number. |
created_at | string | Creation time in ISO 8601. |
updated_at | string | Last update time in ISO 8601. Refreshed on archive. |
Errors
| HTTP | Type | Trigger |
|---|---|---|
| 401 | authentication_error | The PAT is invalid or expired. |
| 403 | permission_error | Caller lacks permission to archive this agent. |
| 404 | not_found_error | No agent exists with the given ID. |
Archive vs. delete
| Action | Effect | Recoverable |
|---|---|---|
| Archive | The agent is hidden from the default listing; data is retained. | Yes (unarchive supported). |
| Delete | The agent is permanently removed. | No. |
Notes
- Archival is a soft delete; agent data remains in the system.
- Archived agents are excluded from the default response of
GET /v1/agents. - Archived agents are still retrievable via
GET /v1/agents/{agent_id}. - The operation is idempotent; archiving an already-archived agent does not raise an error.