Send OTP to email

Sends a 4-digit OTP to the provided email for sign-in or sign-up.

Request

This endpoint expects an object.
emailstringRequiredformat: "email"

Response

OTP sent successfully
successboolean or null
messagestring or null
expiresIndouble or null
OTP expiration time in seconds
isNewUserboolean or null
Whether this email belongs to a new user
onboardingCompleteboolean or null

Whether the user has completed onboarding (only included when isNewUser is false)

otpstring or null

OTP code (only included in development mode for testing purposes)

Errors