Skip to main content
POST
/
vault
/
token
/
revoke
cURL
curl --request POST \
  --url https://api.useanima.sh/v1/vault/token/revoke \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "credentialId": "<string>",
  "agentId": "<string>"
}
'
{
  "success": "<unknown>",
  "revoked": 123
}

Authorizations

Authorization
string
header
required

JWT Bearer token obtained from authentication. Pass as: Authorization: Bearer

Body

application/json

Input for revoking all active tokens for a credential

credentialId
string
required

Credential the token was issued for

agentId

Agent identifier. Optional when using an agent API key (resolved automatically); required when using a master key.

Pattern: ^[0-9a-z]+$

Response

200 - application/json

OK

success
any
required
revoked
number
required