apistockdocs
API reference/Auth

Get the signed-in user

GET/v1/auth/me
bearer auth

Responses

200OKapplication/json
mfa_enabledbooleanrequired

Two-factor authentication is on

mfa_requiredbooleanrequired

A role of the account requires two-factor authentication

permissionsarray of stringrequired

Granted by the user's roles to this session

sessionobjectrequired
created_atstring (date-time)required
currentbooleanrequired

The session making this request

expires_atstring (date-time)required

When the session ends unless used again

idstringrequired
ipstring
last_seen_atstring (date-time)required
mfa_verifiedbooleanrequired

Signed in or confirmed with a second factor

user_agentstring
step_up_permissionsarray of stringrequired

Granted by the user's roles after signing in with a second factor

userobjectrequired
created_atstring (date-time)required
emailstringrequired
email_verifiedbooleanrequired
has_passwordbooleanrequired

The account has a password; accounts created with Google or Apple don't, until they reset one

idstringrequired
rolesarray of stringrequired

Platform roles, such as platform_admin

401Unauthorizedapplication/problem+json
codestringrequired

Stable machine-readable error code

detailstring

Human-readable explanation

errorsarray of object

Field-level validation errors

request_idstring

Correlates with server logs and traces

statusinteger (int64)required

HTTP status code

titlestringrequired

Short summary of the problem type

typestring

URI identifying the problem type

500Internal Server Errorapplication/problem+json
codestringrequired

Stable machine-readable error code

detailstring

Human-readable explanation

errorsarray of object

Field-level validation errors

request_idstring

Correlates with server logs and traces

statusinteger (int64)required

HTTP status code

titlestringrequired

Short summary of the problem type

typestring

URI identifying the problem type

v0.5
esc
↑↓ move↵ openesc close