Skip to content

Reset Password

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

Reset password using a token from the reset email.

Sets the new password and invalidates the token (single-use via JTI + expiry).

Media typeapplication/json
ResetPasswordRequest
object
token
required
Token
string
>= 1 characters
password
required
Password
string
>= 8 characters <= 128 characters
Examplegenerated
{
"token": "example",
"password": "example"
}

Successful Response

Media typeapplication/json
Examplegenerated
example

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example"
}
]
}