API reference

The user object

A person in an app, as the users API, the current user endpoint and events return it.

A user is one person in one app. The same person in two apps of a workspace has one user_id and two user id values.

The object comes in three sizes:

ShapeReturned by
BasePOST /v1/auth/:app_id/users, and the user field of an event
Detailed (base plus the detailed fields)GET /v1/auth/:app_id/current_user
Managed (detailed plus the managed fields)The users API: list, get, create, update, activate, deactivate

Base fields#

FieldTypeDescription
idstringUUID of the user in this app.
app_idstringPublic id (app_...) of the app.
workspace_idstringUUID of the app's workspace.
user_idstringUUID of the person across the workspace's apps.
msp_idstringPublic id (msp_...) of the MSP the app's workspace belongs to, or null.
external_idstringYour own id for the user, or null.
statusstringactive, inactive, pending or imported.
namestringDisplay name.
emailstringEmail address, or null.
phonestringPhone number in E.164, or null.
email_verifiedbooleanThe email was confirmed.
phone_verifiedbooleanThe phone was confirmed.
onboarded_atstringWhen the user finished onboarding, or null.
webauthn_enabledbooleanThe user has a passkey or other WebAuthn credential.
entra_enabledbooleanThe user is linked to a Microsoft Entra identity.
ms_authenticator_registeredbooleanThe linked Entra user has Microsoft Authenticator registered. null when not checked.
required_fieldsarrayProfile fields the app requires that the user has not filled in.

Detailed fields#

FieldTypeDescription
metaobjectValues of the app's custom user fields.
last_used_atstringNewest use of a live session, or the last sign-in.
last_signed_in_atstringLast successful sign-in.
sessions_countintegerNumber of sessions the user has.
signup_datestringWhen the user was created.
webauthn_typesarrayKinds of WebAuthn credentials the user has.
sessionsarrayBrowser sessions created within the app's refresh lifetime, as session objects. M2M sessions are left out.
verificationsarrayThe user's challenges.
pending_verificationsarrayChallenges still open.
phone_infoobjectCarrier lookup for the phone (number, carrier, line_type, country_code, looked_up_at, lookup_data). null unless phone lookup is on for the workspace.
fingerprintsarrayDevices seen for the user, with first_seen_at, last_seen_at, trusted, trusted_at, trust_expires_at and label.
known_ipsarrayAddresses seen for the user, with first_seen_at and last_seen_at.
riskobjectRisk score: score, level, signals, recommendation, details.
alternate_phonesarrayExtra phone numbers: phone, label, verified_at, verification_source, usable_for_login.

Managed fields#

Only the app's backend sees these.

FieldTypeDescription
user_kindstringauthenticated once the user has had a sign-in session, verification when they only completed verifications.
authz_attributesobjectAttributes your backend set for authorization.
entraobjectoid and upn of the linked Entra identity, or null.
Managed userjson
{  "id": "0193f900-aaaa-bbbb-cccc-eeeeeeeeeeee",  "app_id": "app_3mxZRrzWxhPZ08dXvqq6",  "workspace_id": "0193f8aa-0000-7000-8000-000000000000",  "user_id": "0193f900-1111-bbbb-cccc-eeeeeeeeeeee",  "msp_id": null,  "external_id": null,  "status": "active",  "name": "Ada Lovelace",  "email": "ada@example.com",  "phone": null,  "email_verified": true,  "phone_verified": false,  "onboarded_at": "2026-11-01T09:00:00.000Z",  "webauthn_enabled": false,  "entra_enabled": false,  "ms_authenticator_registered": null,  "required_fields": [],  "meta": { "company": "Acme" },  "last_used_at": "2026-11-18T10:00:00Z",  "last_signed_in_at": "2026-11-18T09:58:00Z",  "sessions_count": 2,  "signup_date": "2026-11-01T09:00:00Z",  "webauthn_types": [],  "sessions": [],  "verifications": [],  "pending_verifications": [],  "phone_info": null,  "fingerprints": [],  "known_ips": [],  "risk": { "score": 0, "level": "low", "signals": [], "recommendation": "allow", "details": {} },  "alternate_phones": [],  "user_kind": "authenticated",  "authz_attributes": {},  "entra": null}