Issue a presence user token
Issues a short-lived token for one person, bound to your scoped publishable key, so your app can call address presence 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.presence.write scope.
A presence token lets a scoped publishable key read GET /api/v1/address/presence/{externalUserId} and send presence reports for the person. A report made with a user token alone never links a phone to the watch and counts as unverified; the SDK’s own device token keeps its full weight.
Limits. 24 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.