Frontend API
Send verification code via email or SMS for authentication. Used during signin attempts and profile verification.
cURL
email_verification
curl --request POST \ --url https://{deploymentHost}/auth/prepare-verification \ --header 'Content-Type: application/json' \ --cookie __session= \ --data ' { "signin_attempt_id": "123456789", "method": "email" } '
200
email_sent
{ "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": []}
Session cookie authentication for production deployments. The session token is automatically set as an HTTP-only, secure cookie.
Verification method to use
email
sms
ID of the signin attempt to verify
ID of the signup attempt to verify
Verification code sent successfully
HTTP status code
Response message (empty for success)
Response data (can be any type)
Show child attributes
Array of error objects (empty for success)