Soft archive: the agent is retained but no longer appears in list results by default and cannot be used for new sessions. Existing sessions are not affected.
Prerequisites
Endpoint and authentication configured. For details, see Overview and authentication.
Endpoint
POST /agents/{agent_id}/archive
Semantics
Soft archive: the response returns the full Agent object with the archived_at field populated with the archive timestamp. After archiving, the agent no longer appears in list results by default (unless include_archived=true), and cannot be used for new sessions. Existing sessions are not affected.
Request example
Response fieldsidstringAgent IDtype stringAlways agentversion intCurrent version number (archiving does not change the version)name / description / system stringAgent name, description, and system promptmodel / tools / mcp_servers / skills / multiagent / metadata object / arrayModel, toolkits, MCP references, skills, multi-agent collaboration, and business metadataarchived_at stringArchive timestamp, ISO 8601; this field is always non-null in the archive endpoint responsecreated_at / updated_at stringCreation / last update timeworkspace_id stringWorkspace IDrequest_id stringUnique identifier for this request | ResponseThe response is an Agent object with the same structure as the Create Agent response. The only difference is that thearchived_at field is populated with the archive timestamp (no longer null). Fields: |