End-user API (SDK)
Passwordless sign-in, step 2: verify the code
POST/v1/client/sign_in/email_code/verify
Base URL: https://eu.auth.foxlogin.app, https://tr.auth.foxlogin.app
Body application/json
emailstring (email)requiredcodestringrequiredSix-digit code, valid 15 minutes.
Example:
482913
Responses
200OKSession | MfaRequired
Signed in, or
mfa_requiredSession | MfaRequired
A session, or
mfa_requiredwhen the account has two-factor authentication on.One of:
Session
userEndUserProfileThe end-user object returned by the End-user API (SDK). Has no
phonefield; phone sign-in is not implemented.10 properties
idstringExample:
usr_tr_8f2c91a7regionstringMore regions will be added; clients must accept unknown values.
Values:
EUTRemailstringemail_verifiedbooleannamestringnullablecountrystringISO 3166-1 alpha-2
statusstringOnly
activeis reachable through the SDK; other statuses cannot sign in.Example:
activelabelsLabelscreated_atstring (date-time)last_sign_in_atstringnullable
session_idstringaccess_tokenstringrefresh_tokenstringtoken_type"Bearer"expires_in600
MfaRequired
status"mfa_required"requiredmfa_tokenstringrequiredOpaque, 5-minute lifetime, 5 wrong codes invalidate it (
invalid_mfa_token).
401UnauthorizedError
invalid_code: the code is wrong or has expired, or the account does not exist or is not active. (Returned as 401, unlike the400 invalid_codeof the other verify endpoints.)errorobjectrequired5 properties
codestringrequiredStable machine code, e.g. email_exists, country_not_allowed, user_moved, method_not_available, region_unavailable
Example:
region_unavailablemessagestringrequiredPlain English, for developers
regionstringnullableRegion that produced the error, if any
Values:
EUTRretryablebooleanrequireddetailsobject
429Too Many RequestsError
rate_limited. Retry afterRetry-Afterseconds.errorobjectrequired5 properties
codestringrequiredStable machine code, e.g. email_exists, country_not_allowed, user_moved, method_not_available, region_unavailable
Example:
region_unavailablemessagestringrequiredPlain English, for developers
regionstringnullableRegion that produced the error, if any
Values:
EUTRretryablebooleanrequireddetailsobject