Soft-delete an agent
DELETE
/v1/agents/{id}
const url = 'https://example.com/v1/agents/example';const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url https://example.com/v1/agents/example \ --header 'Authorization: Bearer <token>'Sets the agent’s status to inactive. The record is preserved for audit; it is no longer invocable.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
The agt_<uuidv7> agent ID.
Responses
Section titled “Responses”Deleted.
Missing or invalid bearer token, or the token’s tenant/user claims are absent. No body.
No resource with this ID exists in the caller’s tenant.
Media typeapplication/json
The uniform error body for all 4xx responses that carry one.
object
error
required
A coarse, caller-safe message. Never contains internal state (invariant
string
Examplegenerated
{ "error": "example"}An unexpected server-side error. No body (internal detail is never returned to callers, invariant