Request a password-reset code by email
POST
/password-reset
public
Sends a password-reset code to the account's email address. Always `200` with the identical generic body for existing and non-existing users — no account enumeration. Throttled and unauthenticated.
Request body
| Field | Type | Required | Description |
|---|---|---|---|
username |
string | yes | Account email address. |
Request a reset code
{
"username": "user@example.com"
}
Responses
| Status | Description |
|---|---|
200 |
Identical generic confirmation regardless of whether the account exists. |
400 |
Missing or malformed username. |
429 |
Too many attempts; retry later. |
502 |
Upstream authentication call failed; a generic error is returned and no internals are leaked. |
200 example
{
"message": "if the account exists, a password reset code has been sent to its email address"
}