request_otp_handler
POST
/api/auth/v1/otp/request
const url = 'https://example.com/api/auth/v1/otp/request';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"email":"example","redirect_uri":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/auth/v1/otp/request \ --header 'Content-Type: application/json' \ --data '{ "email": "example", "redirect_uri": "example" }'Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ” redirect_uri
string | null
Request Body required
Section titled “Request Body required ” Media type application/json
object
email
required
string
redirect_uri
string | null
Example generated
{ "email": "example", "redirect_uri": "example"}Responses
Section titled “ Responses ”OTP sent or user not found, when redirect_uri not present.
OTP sent or user not found, when redirect_uri present.
Bad request
Too many attempts