Agents
POST/v1/agents/{id}/revoke

Revoke agent

View as .md
curl -X POST "https://api.52-28-238-205.sslip.io/v1/agents/{id}/revoke" \  -H "Cookie: <console session cookie>" \  -H "Content-Type: application/json" \  -d '{"sweep":true,"webauthn_assertion":{}}'

Revokes the agent on every rail: credentials, open approvals and pending payments at once, then closes cards, cancels plans and sweeps spending wallets, and adds a signed revocation receipt. Console session or API key with agent:revoke; a console session needs a passkey step-up within the last 5 minutes. Cannot be undone.

Server URLhttps://api.52-28-238-205.sslip.io
POST/v1/agents/{id}/revokeBase URL: https://api.52-28-238-205.sslip.io
Authorization
  • sessionCookie: <console session cookie>
  • apiKeyAuthorization: Bearer sk_test_...
Path
  • idstringrequired

    Agent id (agt_...).

Body

application/json. Fields are listed under Request body below.

Requires permissionagent:revoke
Held by owner, admin, approver (own team). The caller must hold this permission, or the call is refused with 403. From the console it also needs a passkey step-up within the last 5 minutes.

Authorization

cookieuapg_session<token>

Console session cookie (HttpOnly, SameSite=Lax)

Path Parameters

id*Id

Agent id (agt_...).

Request Body

application/json
  1. body
sweep?Sweep
Defaulttrue
webauthn_assertion?|null

Response Body

Success.

application/json
  1. response
revocation*
effects*
[key: string]?any