POST
/
auth
/
prepare-verification
curl --request POST \
--url https://{deploymentHost}/auth/prepare-verification \
--header 'Content-Type: application/json' \
--data '{
"signin_attempt_id": "123456789",
"method": "email"
}'
{
"status": 200,
"message": "",
"data": {
"signin_attempts": [
{
"id": "123456789",
"method": "email_otp",
"current_step": "verify_email_otp",
"completed": false,
"created_at": "2024-01-01T12:00:00Z"
}
],
"signins": [],
"signup_attempts": [],
"active_signin": null
},
"session": {
"signin_attempts": [
{
"id": "123456789",
"method": "email_otp",
"current_step": "verify_email_otp",
"completed": false,
"created_at": "2024-01-01T12:00:00Z"
}
],
"signins": [],
"signup_attempts": [],
"active_signin": null
},
"errors": []
}

Authorizations

__session
string
cookie
required

Session cookie authentication for production deployments. The session token is automatically set as an HTTP-only, secure cookie.

Body

application/json

Response

200
application/json

Verification code sent successfully

The response is of type object.