Skip to content

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

ParameterDescription
email stringUser's email address (max 255 chars).
turnstileToken stringCloudflare Turnstile verification token.

Response ​

204 No Content

The response has no body and is the same whether or not the address belongs to an account — it never reveals which case applied.

Frontend Integration ​

An email is sent containing a link, for example:

plaintext
https://your-app.com/auth/reset-password?token={token}&email={encodedEmail}

The link points at the frontend origin configured on the backend (FRONTEND_URL) followed by the reset path (FRONTEND_RESET_PASSWORD_PATH, default /auth/reset-password). Your page reads token and email from the query string and submits them to Password Reset.

The token is valid for 60 minutes. At most one reset email is sent per user per minute — repeated requests within that window still return 204 No Content but send nothing.

Error Handling ​

422 Unprocessable Content — email is missing or invalid, or the Turnstile token is invalid.

429 Too Many Requests — more than 5 requests per minute from one IP address.

If the user's email doesn't exist, the endpoint still returns 204 No Content.