Frontend API
Send a verification code to the user’s email
cURL
curl --request POST \ --url https://api.wacht.dev/auth/prepare-verification \ --header 'Content-Type: application/x-www-form-urlencoded' \ --data email=john@example.com
{ "status": 200, "message": "", "data": {}, "session": { "id": "123456789012345678", "created_at": "2023-11-07T05:31:56Z", "updated_at": "2023-11-07T05:31:56Z" }, "errors": [ { "code": "INVALID_CREDENTIALS", "message": "Invalid credentials. Please try again." } ] }
Email address to send verification code
"john@example.com"
Verification code sent
HTTP status code
200
Response message (empty on success)
""
Minimal session info included in every response
Show child attributes
Error details (null on success)
Was this page helpful?