Skip to main content
POST
/
v1
/
ucp
/
identity
/
revoke
Revoke a token
curl --request POST \
  --url https://api.getsly.ai/v1/v1/ucp/identity/revoke \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "token": "<string>",
  "token_type_hint": "access_token"
}
'
{
  "revoked": true
}

Authorizations

Authorization
string
header
required

API key (pk_test_* or pk_live_), JWT session, agent token (agent_), Ed25519 session (sess_), or portal token (portal_).

Body

application/json
token
string
required
token_type_hint
enum<string>
Available options:
access_token,
refresh_token

Response

200 - application/json

Revoked

revoked
boolean
required