Skip to content

DocsAPI referenceClient tokens

Revoke an end user's client tokens

Revokes every chain with a token of subject: for a user you ban or sign out.

POST /v1/client-tokens/revoke

Needs an API key: Authorization: Bearer $VIDEXO_API_KEY.

Body RevokeClientTokensRequest

Body fields
NameTypeDescription
subject requiredstringYour own opaque id of the end user (never an email): stored, shown in your logs and used to revoke their tokens at once.

Request

bash
curl -X POST "$VIDEXO_API_URL/v1/client-tokens/revoke" \
  -H "Authorization: Bearer $VIDEXO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "subject": "user_8f2c"
}'

Response

200 JSON
{
  "revoked": 2
}

Responses

Responses
StatusBodyWhen
200RevokedClientTokensHow many tokens were revoked.
400Probleminvalid_request
401Problemauthentication_failed (missing_api_key, invalid_api_key, api_key_revoked, api_key_expired)
403Problempermission_denied (token_scope): a client token cannot call this route
429Problemrate_limited, with Retry-After in seconds