Skip to content

Set the sign-up setting

POST
/api/v1/auth/settings/signup
curl --request POST \
--url https://example.com/api/v1/auth/settings/signup \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "open_signup": true }'

Sets the sign-up setting. It requires a signed-in User with the admin scope and the admin or owner Role. It also requires a recent passkey check. It can return 401 if the session is missing or expired, 403 if access is denied and 429 if the request limit is reached. Route: /api/v1/auth/settings/signup. Inputs: . A recent account assertion is required. Do not automatically replay this operation after an uncertain result.

Media typeapplication/json
object
open_signup
required
boolean
Examplegenerated
{
"open_signup": true
}
Media typeapplication/json
object
code
required
string
message
required
string
Examplegenerated
{
"code": "example",
"message": "example"
}