Issue a biometric user token
Issues a short-lived token for one person, bound to your scoped publishable key, so your app can call face re-authentication for that person only. Call it from your server, for the person signed in to your own session. The answer is never cached. Needs the user_tokens.biometric.write scope.
A biometric token lets a scoped publishable key call POST /api/v1/biometric/authenticate and GET /api/v1/biometric/status/{externalUserId} for the person, for up to 5 face checks. It also mounts face re-authentication or face enrolment in the embedded flow (/session/start, or POST /session without a parent): each mount uses one of the 5, the session is bound to the token, and its /verify calls are counted with the person’s other face checks, at most 5 per mount. Across all tokens, at most 10 face checks per person are admitted every 15 minutes; the next answers 429 too_many_attempts.
Limits. 30 tokens per person an hour, and an hourly limit for the organisation.
Error codes
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
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
How long the token lasts, from 60 seconds. Presence: default 86400 (24 hours), at most 604800 (7 days). Biometric: default 600 (10 minutes), at most 900 (15 minutes). Never beyond the minting key’s own expiry.
Response
Always user_token.
The token’s public id (utk_), for revoking it and for your records. Not a credential.
The token itself. Shown once and never stored by Toden: pass it to your app and do not log it.
presence or biometric.
Biometric: 5 face checks. Presence: null, any number of calls until it expires.