Skip to navigation

List a person's presence devices

Lists the presence devices registered for one person: phones whose app holds a key in secure hardware and refreshes presence tokens in the background. Only devices that still count are listed (live, pending or dormant). A person can have at most 3; revoke one with POST /user-tokens/presence/revoke and its upd_ id to free a slot. The public key is never returned, and an unknown person answers an empty list. Needs the user_tokens.presence.write scope.

Error codes

errorStatusMeaning
invalid_request400Send externalUserId.
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.presence.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.

Query parameters

externalUserIdstringRequired1-200 characters
Your reference for the person.

Response

The person's devices.
datalist of objects

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error