Reset password with emailed token
POST /api/auth/reset-password
Consumes the {token,email,password,password_confirmation} payload. Password must be at least 12 characters long. On success returns a bearer token and revokes prior tokens.
This operation needs no authentication.
Request body
application/json object
emailstring (email) requiredpasswordstring (password) requiredLength: at least 12 characterspassword_confirmationstring requiredtokenstring required
Generated sample
{
"email": "user@example.com",
"password": "string",
"password_confirmation": "string",
"token": "string"
}Responses
200 Password updated; caller is signed in
application/json object
messagestringtokenstring
Generated sample
{
"message": "string",
"token": "string"
}403 Error response.
application/json GenericError
erroranyOne of
- string
- object
Any keys are accepted.
error_codestringcodestringmessagestringdetailstringstatusanyOne of
- string
- integer
errorsobjectAny keys are accepted.
422 Validation error or reset_failed
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