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
messagestring
expiresIndouble
OTP expiration time in seconds
isNewUserboolean
Whether this email belongs to a new user
onboardingCompleteboolean

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

otpstring

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

Errors

429
Too Many Requests Error