Instance Settings

Modify the settings of your instance.

Update instance settings

Updates the settings of an instance

SecuritybearerAuth
Request
Request Body schema: application/json
test_mode
boolean or null

Toggles test mode for this instance, allowing the use of test email addresses and phone numbers. Defaults to true for development instances.

hibp
boolean or null

Whether the instance should be using the HIBP service to check passwords for breaches

enhanced_email_deliverability
boolean or null

The "enhanced_email_deliverability" feature will send emails from "verifications@clerk.dev" instead of your domain. This can be helpful if you do not have a high domain reputation.

support_email
string or null
clerk_js_version
string or null
development_origin
string or null
experimental_allowed_origins
Array of strings
Deprecated
allowed_origins
Array of strings
cookieless_dev
boolean
Deprecated

Whether the instance should operate in cookieless development mode (i.e. without third-party cookies). Deprecated: Please use url_based_session_syncing instead.

url_based_session_syncing
boolean

Whether the instance should use URL-based session syncing in development mode (i.e. without third-party cookies).

Responses
204

Accepted

422

Invalid request parameters

patch/instance
Request samples
application/json
{
  • "test_mode": true,
  • "hibp": true,
  • "enhanced_email_deliverability": true,
  • "support_email": "string",
  • "clerk_js_version": "string",
  • "development_origin": "string",
  • "experimental_allowed_origins": [
    ],
  • "allowed_origins": [
    ],
  • "cookieless_dev": true,
  • "url_based_session_syncing": true
}
Response samples
application/json
{
  • "errors": [
    ],
  • "meta": { }
}

Update instance restrictions

Updates the restriction settings of an instance

SecuritybearerAuth
Request
Request Body schema: application/json
allowlist
boolean or null
blocklist
boolean or null
Responses
200

Success

402

Payment required

patch/instance/restrictions
Request samples
application/json
{
  • "allowlist": true,
  • "blocklist": true
}
Response samples
application/json
{
  • "object": "instance_restrictions",
  • "allowlist": true,
  • "blocklist": true
}

Update instance organization settings

Updates the organization settings of the instance

SecuritybearerAuth
Request
Request Body schema: application/json
enabled
boolean or null
max_allowed_memberships
integer or null
Responses
200

Success

422

Invalid request parameters

patch/instance/organization_settings
Request samples
application/json
{
  • "enabled": true,
  • "max_allowed_memberships": 0
}
Response samples
application/json
{
  • "object": "organization_settings",
  • "enabled": true,
  • "max_allowed_memberships": 0
}