Request a password-reset link
POST /api/auth/forgot-password
Always returns the same body whether or not the email exists (anti-enumeration). Controllers throttle this endpoint.
This operation needs no authentication.
Request body
application/json object
emailstring (email) required
Generated sample
{
"email": "user@example.com"
}Responses
200 Reset link dispatched if the account exists
application/json object
messagestringstatusstringExample:"sent"
Generated sample
{
"message": "string",
"status": "sent"
}422 Validation error
application/json GenericError
erroranyOne of
- string
- object
Any keys are accepted.
error_codestringcodestringmessagestringdetailstringstatusanyOne of
- string
- integer
errorsobjectAny keys are accepted.
429 Route rate limit exceeded.
application/json GenericError
erroranyOne of
- string
- object
Any keys are accepted.
error_codestringcodestringmessagestringdetailstringstatusanyOne of
- string
- integer
errorsobjectAny keys are accepted.
text/html string