Skip to content

Request OTP

POST
/api/v1/auth/web/otp

Send a One-Time Password to the user’s email for passwordless authentication.

object
email
required

The email address to send the OTP to.

string
john@example.com
object
message
string
OTP sent to your email.
{
"message": "OTP sent to your email."
}

Validation error

object
message
string
The given data was invalid.
errors
object
email
Array<string>
[
"The email field must be a valid email address."
]
{
"message": "The given data was invalid.",
"errors": {
"email": [
"The email field must be a valid email address."
]
}
}