Skip to content

Reset Password

POST
/v1/users/reset-password
curl --request POST \
--url https://example.com/api/v1/users/reset-password \
--header 'Content-Type: application/json' \
--data '{ "password": "example", "token": "example" }'

Consumes a single-use reset token and changes the user’s password. On success, all existing sessions for the user are revoked.

Token + new password

Media type application/json
object
password
required
string
>= 6 characters
token
required
string
>= 20 characters
Example generated
{
"password": "example",
"token": "example"
}

No Content

Invalid request body, password shorter than the minimum length, or token that is invalid / expired / already used

Media type application/json
string
Example generated
example

Demo mode is enabled or local login is disabled

Media type application/json
string
Example generated
example

Internal error while processing the request

Media type application/json
string
Example generated
example