Auth

Update project auth settings

Updates project auth settings. Requires the project's service key, passed either as apikey or as Authorization: Bearer with the anon apikey. Lifecycle-gated for non-active projects.

patch/auth/v1/settings

Request

  • Base URL: https://api.run402.com
  • URL: https://api.run402.com/auth/v1/settings
  • Auth: one of:
    • API key in header apikey
    • API key in header apikey and HTTP bearer

Request body

allow_password_setboolean

Allow passwordless users to set a password (default: false)

preferred_sign_in_method'password' | 'magic_link' | 'oauth_google' | 'passkey' | 'null' nullable
public_signup'open' | 'known_email' | 'invite_only'
require_passkey_for_project_adminboolean
test_modeboolean nullable

Tri-state auth test-session mode. true enables service-key test sessions, false disables them, null restores the tier default (prototype on, paid tiers off).

Response

Settings updated

allow_password_setboolean required

Allow passwordless users to set a password.

preferred_sign_in_method'password' | 'magic_link' | 'oauth_google' | 'passkey' | 'null' nullable required

Project UI hint for the preferred first sign-in method.

public_signup'open' | 'known_email' | 'invite_only' required

Password and untrusted magic-link auto-signup policy.

require_passkey_for_project_adminboolean required

When true, project_admin sessions require an eligible passkey login.

Changes

No recorded changes to this operation across all 1 revision of this API.