Skip to content

Change Password

POST
/auth/change-password
curl --request POST \
--url https://example.com/auth/change-password \
--header 'Content-Type: application/json' \
--data '{ "current_password": "example", "new_password": "example" }'

Authenticated password change. Verifies the current password, then sets the new one.

Unlike the reset flow this keeps existing sessions valid — the user just authenticated by supplying their current password, so there’s no need to sign them out everywhere.

Media typeapplication/json
ChangePasswordRequest

Authenticated password change — verifies the current password before setting a new one.

object
current_password
required
Current Password
string
>= 1 characters <= 128 characters
new_password
required
New Password
string
>= 8 characters <= 128 characters
Examplegenerated
{
"current_password": "example",
"new_password": "example"
}

Successful Response

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"
}
]
}