Skip to navigation

Revoke biometric user tokens

Revokes one biometric token by its id, or every live biometric token of one person by externalUserId, for example when they sign out. Send one of the two. Ending a key’s sessions in the console also ends the tokens it issued or is bound to. Needs the user_tokens.biometric.write scope.

Error codes

errorStatusMeaning
invalid_request400Send either id or externalUserId, not both.
secret_key_required403A publishable key was used. This endpoint accepts secret keys only.
environment_mismatch403The key belongs to an environment this deployment does not serve.
ip_not_allowed403The key has an IP allowlist and the calling address is not on it.
organization_suspended403The organisation is suspended. The response carries reason and suspendedAt.
business_not_approved403A live key was used before the business was approved for production.
insufficient_scope403The key does not hold user_tokens.biometric.write.

A missing or unknown key answers 401, where error is a short sentence rather than a code.

Requires a secret (sk_) key. A publishable key receives 403 secret_key_required.

Authentication

AuthorizationBearer

Send the API key as a Bearer token. Each operation states whether a publishable key is enough or a secret key is required. A scoped publishable key has Verification flow access, the fixed set flow.run, flow.config.read and verifications.status.read; a scoped secret key reaches what its scopes allow.

Request

This endpoint expects an object.
objectRequired
OR
objectRequired

Response

How many tokens were revoked.
revokedinteger
How many live tokens were revoked. 0 for an unknown id or person, so the answer reveals nothing.
devicesRevokedinteger
How many presence devices were revoked. Always 0 on the biometric route.

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error