Skip to content

Password Reset ​

When the user clicks the reset link in the email, they arrive at your frontend with token and email in the query string. The frontend should submit these values to this endpoint along with a new password.

HTTP Request ​

POST /api/v1/auth/password/reset

ParameterDescription
email stringUser’s email from the reset link (max 255 chars).
password stringNew password (8–72 characters, must include letters and numbers).
passwordConfirmation stringMust match password.
token stringThe reset token received via email (max 255 chars).

Response ​

204 No Content

Indicates the password reset was successful. All existing tokens of the user are revoked — the user has to log in again.

Error Handling ​

422 Unprocessable Content with an errors object — a field is missing, the password does not meet the requirements, or the confirmation does not match.

A wrong, already used or expired token (tokens are valid for 60 minutes), or an email that belongs to no account, returns 422 Unprocessable Content with a plain message and no errors object:

json
{
  "message": "Heslo sa nepodarilo obnoviť."
}

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