Skip to navigation

Check whether a person can re-authenticate by face

Says whether face re-authentication can be offered for a person. It carries no personal details. An unknown reference, a business, and a person who is not enrolled all answer 200 with enrolled: false. Nothing is charged.

Scoped publishable keys. A scoped publishable key needs a biometric user token for this person in X-Toden-User-Token, minted by your server with POST /api/v1/user-tokens/biometric. Legacy publishable keys and secret keys do not.

Error codes

errorStatusMeaning
environment_mismatch403The key belongs to an environment this deployment does not serve.
origin_not_allowed403The publishable key has an origin allowlist and the request origin is not on it.
ip_not_allowed403The secret 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.
user_token_required403A scoped publishable key sent no X-Toden-User-Token. Get a token from your server.
user_token_invalid403The token is unknown, expired, revoked, used up, for another person or purpose, or bound to another publishable key.

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

Accepts a publishable (pk_) or secret (sk_) key.

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.

Path parameters

externalUserIdstringRequired
Your reference for the person.

Headers

X-Toden-User-TokenstringOptionalformat: "^ut_(live|test|dev)_[A-Za-z0-9_-]{43}$"

A biometric user token for this person, minted by your server. Required with a scoped publishable key; legacy publishable keys and secret keys never read it.

Response

The enrolment status.
enrolledboolean

Whether face re-authentication can be offered for this person. False for an unknown reference, a business, or a person with no enrolment.

enrolledAtdatetimeOptional
When the person was enrolled. Present only when enrolled.
lastAuthenticatedAtdatetime or nullOptional
When the person last authenticated. Present only when enrolled, and null if they never have.

Errors

401
Unauthorized Error
403
Forbidden Error