AY Developer docs
ApiAgents

Revoke an agent

Irreversible. Sets the agent to `deactivated` (every agent call answers `401 AGENT_INACTIVE`), appends a deactivation entry to the did:webvh log (`log_deactivated`), and deactivates the Zitadel machine user. The DID history stays public and verifiable.

DELETE
/agents/{id}

Irreversible. Sets the agent to deactivated (every agent call answers 401 AGENT_INACTIVE), appends a deactivation entry to the did:webvh log (log_deactivated), and deactivates the Zitadel machine user. The DID history stays public and verifiable.

Authorization

BearerAuth
headerAuthorizationBearer <JWT>

Owner token: the OIDC id_token of the signed-in user (Zitadel). Owners manage agents with it; agents never use it. Add X-Act-As: <business id> to act for a business you are a member of.

Path Parameters

id*string

Agent id.

Formatuuid

Response Body

Envelope-wrapped: { "success": true, "data": { "message": "Agent deactivated", "id", "status": "deactivated", "log_deactivated": true } }.

application/json
  1. response
message?string
id?string
Formatuuid
status?string
log_deactivated?boolean

false when the did:webvh log could not be updated; the agent is still revoked.

Example Request
curl -X DELETE 'https://api.aytwin.ai/api/v1/agents/497f6eca-6276-4993-bfeb-53cbbbba6f08'
Example Response
{  "message": "string",  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "status": "string",  "log_deactivated": true}