Skip to content
LogoLogo

Reset a password with a token

Reset a password with a token

POST/api/v1/auth/password/reset

Redeems a single-use reset token and replaces the password.

A reset revokes every session for the account, including the one making the request: a reset is what an account-takeover victim performs, so the attacker's session must not survive it, and the holder of a mailed token has not otherwise authenticated. Both browser-session cookies are expired in the response.

Request Body

application/json
tokenRequired
string·min 1·max 512

A single-use, expiring bearer secret delivered by email. Only its hash is stored, so it cannot be recovered from a database disclosure. Treat it as a credential: never log it or place it in a URL you retain.

passwordRequired
string <password>·min 12·max 128

Between 12 and 128 characters. There are deliberately no composition rules: length and non-reuse resist guessing, while character-class rules mostly produce predictable substitutions. Passwords appearing in a known breach corpus are refused.

Responses