Skip to content

Set password for a newly verified invited user

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

Password set successfully.

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

Invalid token, email not verified, 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"
]
}