Inspect

Archive agent

Archive (soft-delete) a custom agent. Archived agents are omitted from list and get responses and cannot start new sessions. The agent's Slack user group is disabled and its avatar is deleted. The API key user must be the creator, a contributor, or an Inspect admin. Archived agents cannot be restored through the API.

Base URL
DELETE
/api/v2/agents/{agent_id}

Archive (soft-delete) a custom agent. Archived agents are omitted from list and get responses and cannot start new sessions. The agent's Slack user group is disabled and its avatar is deleted. The API key user must be the creator, a contributor, or an Inspect admin. Archived agents cannot be restored through the API.

Authorization

bearerAuth agents:write
headerAuthorizationBearer <token>

API key authentication. Use your API key as the bearer token.

Scope: agents:write

Path Parameters

agent_id*string

Agent ID

Response Body

Custom agent archived

Example Request
curl -X DELETE 'https://app.inspect.com/api/v2/agents/r4t8w2n6b9qe'
Example Response
Empty