Skip to Content
Agents

Archive an agent

Permissionagents:deleteAuthentication
DELETE
/agents/{id}

Soft-archives the aggregate. Repeating the operation is a semantic no-op and preserves the revision. Supply If-Match to prevent archiving a newer representation than the one your automation inspected.

Authorization

bearerAuth
headerAuthorizationBearer <token>

Use a Voice API key or connected-app OAuth access token. Authentication.

Path Parameters

id*string
Formatuuid

Header Parameters

If-Match?string

Optional strong ETag (or *) from a prior response. A stale tag returns 412 without changing the resource.

Response Body

Agent archived, or was already archived. The response has no body. Example result: status 204 with ETag "agent-11111111-1111-4111-8111-111111111111-r1-cap-00-v6"; a repeated archive with that tag remains 204 and preserves it.

Example Request
curl -X DELETE 'https://api.kejue.co/v1/agents/497f6eca-6276-4993-bfeb-53cbbbba6f08'
Example Response
Empty