Send Password Reset Email
Sends a password reset link to the user's email. The user completes the reset flow on your frontend.
Bot Protection
This endpoint requires a valid Cloudflare Turnstile token when bot protection is enabled. See the Turnstile Integration Guide for frontend setup instructions.
HTTP Request
POST /api/v1/auth/password/email
| Parameter | Description |
|---|---|
email string | User's email address |
turnstileToken string | Cloudflare Turnstile verification token. |
Response
202 Accepted
json
{
"data": {
"message": "Password reset link sent."
}
}Frontend Integration
An email is sent containing a link, for example:
plaintext
https://brunago.sk/reset-password?token={token}&email={encodedEmail}You can customize the reset-password path. Replace {token} and {encodedEmail} with actual values from the email.
Error Handling
If the user's email doesn't exist, the endpoint still returns:
202 Accepted
json
{
"data": {
"message": "Password reset link sent."
}
}