Skip to content

Reset password using a token from the reset email

POST
/v1/auth/reset-password
curl --request POST \
--url https://example.com/v1/auth/reset-password \
--header 'Content-Type: application/json' \
--data '{ "token": "example", "new_password": "example" }'
Media type application/json
object
token
required
string
new_password
required
string
>= 8 characters
Example generated
{
"token": "example",
"new_password": "example"
}

Password has been reset.

Media type application/json
object
message
required
string
Example generated
{
"message": "example"
}

Invalid or expired token, or password too weak.

Media type application/json
object
code
required

Machine-readable error code (e.g. “not_found”, “tenant_mismatch”).

string
message
required

Human-readable description of the error.

string
details

Optional additional context about the error.

object
key
additional properties
any
notices

Policy notices from determining Cedar rules, if applicable.

Array<string>
Example generated
{
"code": "example",
"message": "example",
"details": {},
"notices": [
"example"
]
}