Skip to main content

Admin signup policy

Generated from apiome-rest/openapi.yaml (API version 1.307.0) — do not edit by hand. How to authenticate is on the REST API reference.

Tag: admin-signup-policy · 2 operations

GET /v1/admin/signup-policy​

Get Signup Policy

Read the installation sign-up policy (SGN-1.4).

Reads the stored row directly rather than the cached policy, so the admin console always shows what is actually stored.

Returns: The effective policy, with source telling a stored policy from the env fallback.

Operation id: get_signup_policy_v1_admin_signup_policy_get

Parameters

NameInTypeRequiredDescription
X-Admin-Sessionheaderstring or nullnoHeader parameter: X Admin Session.
admin_sessioncookiestring or nullnoCookie parameter: admin session.

Responses

StatusDescriptionBody
200Successful response for get signup policy.application/json SignupPolicyView
401No super-admin session presented.—
403Super-admin session invalid or expired.—
422Validation Errorapplication/json HTTPValidationError

PUT /v1/admin/signup-policy​

Update Signup Policy

Store, change or clear the installation sign-up policy (SGN-1.4).

The change is audited and applies to the next sign-up on this instance; other instances apply it within the policy cache lifetime. It gates creating an account only — existing users keep signing in under every mode.

Args: payload: The new policy, or mode: null to clear the stored one.

Returns: The effective policy after the write.

Raises: HTTPException: 422 with a structured body when the mode is not one of the three modes (invalid_mode) or a domain entry is malformed (invalid_email_domain).

Operation id: update_signup_policy_v1_admin_signup_policy_put

Parameters

NameInTypeRequiredDescription
X-Admin-Sessionheaderstring or nullnoHeader parameter: X Admin Session.
admin_sessioncookiestring or nullnoCookie parameter: admin session.

Request body (required)

Request body for update signup policy.

Responses

StatusDescriptionBody
200Successful response for update signup policy.application/json SignupPolicyView
401No super-admin session presented.—
403Super-admin session invalid or expired.—
422Unknown mode, or an invalid or over-long email-domain list.—

Schemas used​

HTTPValidationError​

Validation error response emitted when request data fails schema checks.

PropertyTypeRequiredDescription
detailarray of ValidationErrornoDetail.

SignupPolicyUpdateRequest​

Body of PUT /v1/admin/signup-policy.

The policy is replaced as a whole: send the mode and the full domain list every time.

PropertyTypeRequiredDescription
modestring or nullyes'open', 'invite_only' or 'closed' to store the policy; null to clear the stored policy so the installation reverts to AUTH_SIGNUP_DISABLED.
allowed_email_domainsarray of stringnoEmail domains allowed to sign up while the mode is 'open' (e.g. 'example.com'). At most 200; matched exactly, so list subdomains separately. Ignored when mode is null.

SignupPolicyView​

The installation sign-up policy — the shape both GET and PUT return.

PropertyTypeRequiredDescription
modestringyesEffective mode: 'open', 'invite_only' or 'closed'.
allowed_email_domainsarray of stringnoEmail domains allowed to sign up while the mode is 'open'. Empty means any domain.
sourcestringyes'db' when the policy is stored in the database; 'env' when none is stored and AUTH_SIGNUP_DISABLED governs.
env_modestringyesThe mode the env fallback gives ('closed' when AUTH_SIGNUP_DISABLED is true, else 'open') — what applies if the stored policy is cleared.
updated_atstring (date-time) or nullnoWhen the stored policy was last changed; null when none is stored.
updated_bystring or nullnoWho last changed the stored policy; null when none is stored.