Registration and OTP endpoints do not require an
Authorization header. All other endpoints require a Bearer token.Send email OTP
POST /v2/email_send_otp
Sends a one-time verification code to the provided email address. On success, the response includes the user object with email, uuid, and verification_code used in the next step.
Request body
The user’s email address. Must be a valid email format.
Response
Verify email OTP
POST /v2/email_verify_otp
Verifies the 4-digit code sent to the user’s email address.
Request body
The email address the OTP was sent to.
The 4-digit verification code received by the user.
Response
Timestamp at which the email was verified.
Send phone OTP
POST /v2/phone_send_otp
Sends a one-time verification code to the provided phone number.
Request body
The user’s email address, passed to associate the phone with the existing registration session.
The user’s phone number, including the country dial code (e.g.,
+18681234567).Verify phone OTP
POST /v2/phone_verify_otp
Verifies the 4-digit code sent to the user’s phone number.
Request body
The user’s UUID, obtained from the
email_send_otp response.The 4-digit verification code received by the user.
Response
Timestamp at which the phone number was verified.
Set PIN
POST /v2/set_pin
Sets the user’s 4-digit PIN during the registration flow.
Request body
The user’s UUID.
A 4-digit numeric PIN chosen by the user.
Confirm PIN
POST /v2/confirm_pin
Confirms the PIN set in the previous step, completing the registration process. Returns an authentication token on success.
Request body
The user’s UUID.
The same 4-digit PIN entered in the
set_pin step.Firebase Cloud Messaging token for the device, used to send push notifications.
Response
Log in
POST /v2/new-login
Authenticates a returning user with their phone number and PIN. Returns a Bearer token on success.
Request body
The user’s phone number, including the country dial code.
The user’s 4-digit PIN.
Firebase Cloud Messaging token for the device.