login_otp_handler
POST
/api/auth/v1/otp/login
const url = 'https://example.com/api/auth/v1/otp/login';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"code":"example","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/login \ --header 'Content-Type: application/json' \ --data '{ "code": "example", "email": "example", "redirect_uri": "example" }'Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ” email
string | null
code
string | null
redirect_uri
string | null
Request Body required
Section titled “Request Body required ” Media type application/json
object
code
string | null
email
string | null
redirect_uri
string | null
Example generated
{ "code": "example", "email": "example", "redirect_uri": "example"}Responses
Section titled “ Responses ”Auth tokens for JSONl logins.
Media type application/json
object
auth_token
required
string
csrf_token
required
string
refresh_token
required
string
Example generated
{ "auth_token": "example", "csrf_token": "example", "refresh_token": "example"}For form logins.
Bad request