Skip to main content
Update authentication settings for an app.

Endpoint

Authentication

Send your workspace (or app-scoped) API secret as a Bearer token.
The bearer must own the app:
  • Workspace key (scwor_…) — can manage any app in the workspace
  • App key (scapp_…) — can only manage its own app
Wrong scope returns 403 "API key not authorized for this app".

Body

Wrap fields in an app object. All fields are optional. send only what you want to change.

Token lifetimes

All values are in seconds.

Other common fields

name, origin, additional_origins[], mfa_policy, mfa_methods_allowed[], email_required, phone_number_required, passkeys_enabled, email_auth_type (magic or otp), otp_length.

Example

Response — 200 OK

Changes take effect on the next token issued, existing tokens keep their original expiration until they expire naturally.

Errors