Send OTP (Email)
This endpoint initiates an OTP to be sent to the specified email.
This API is accessible exclusively to users subscribed to the OTPless Pro plan. Ensure you have an active OTPless Pro Plan subscription to utilize this feature.
Authorizations
Body
The phone number to which the OTP will be sent, including country code.
An array specifying the channels through which the OTP will be sent.
Supported channels include WHATSAPP
, SMS
, VOICE_CALL
, and VIBER
.
If multiple channels are provided, a smart authentication flow is activated,
which automatically falls back to the next channel in the array if the OTP
delivery fails or if the user does not verify within the expected time frame.
EMAIL
The expiration time for the OTP in seconds.
The length of the OTP, either 4 or 6.
4
, 6
Additional metadata for the request.
Response
The unique identifier for the OTP request.
Was this page helpful?