Finish Password Recovery

Details#

This endpoint is used to change the password of an account, given a previously generated token. The token can be generated by using the recover endpoint and is sent to the user by email.

URL : /auth/recover/:token/confirm

Method :

POST

Parameters#

password#

Body Parameter
Required

String
Min Length: 8

New password for the account. Must contain at least one number.

Request examples#

Example 1 - Valid Token#

Code :

200 OK

{
"password": "newpassword123"
}

Example 2 - Invalid Token#

Code :

403 FORBIDDEN

/auth/recover/invalid/confirm

Example 3 - Password Without Numbers#

Code :

422 UNPROCESSABLE ENTITY

{
"password": "new_password"
}