Site Settings

Global platform settings: branding, the email-domain whitelist, and the new-user-registration toggle. All paths below are relative to /api/v1.

Auth: each of these settings has a public read endpoint (no authentication) and a write endpoint gated by a site-admin (or, for branding, org-admin) authorization relation. Write endpoints require org context via ?org=<slug>.

curl https://<akp-host>/api/v1/branding

Branding

GET /branding

Get the current branding configuration (logo, favicons, app name, colors).

  • Auth: public.
  • Response: 200 — a BrandingResponse object; 304 if not modified.
{
  "logo": "data:image/png;base64,<base64-image>",
  "favicons": { "16x16": "data:image/png;base64,<base64-image>" },
  "primaryColor": "#326ce5",
  "runMode": "prod",
  "deploymentType": "Hosted",
  "isOfflineInstaller": false,
  "showAppTag": true,
  "appName": "ACE"
}
FieldTypeDescription
logostringBase64-encoded logo image (data: URI).
faviconsobjectMap of favicon sizes to base64-encoded images.
primaryColorstringPrimary UI color (hex).
runModestringServer run mode.
deploymentTypestringDeployment type (e.g. Hosted).
isOfflineInstallerbooleanWhether this is an offline-installer deployment.
showAppTagbooleanWhether to show the app tag/badge.
appNamestringApplication display name.

Verified: GET returned 200 against appscode on 2026-07-14 (logo returned as a base64 data:image/png URI).

POST /branding

Update the branding options.

  • Auth: token + membership of the organization + edit_branding_options:org.
  • Request body: BrandingOptions.
{
  "logo": "data:image/png;base64,<base64-image>",
  "favicon": "data:image/png;base64,<base64-image>",
  "primaryColor": "#326ce5",
  "showAppTag": true,
  "appName": "ACE"
}
FieldTypeRequiredDescription
logostringnoBase64-encoded logo image.
faviconstringnoBase64-encoded favicon image.
primaryColorstringnoPrimary UI color (hex).
showAppTagbooleannoWhether to show the app tag/badge.
appNamestringnoApplication display name.
  • Response: 200 — branding options updated. 400 for an invalid branding option.

Allowed email domains

The whitelist of email domains permitted to register on the platform.

GET /allowed-domains

List the configured email-domain whitelist.

  • Auth: public.
  • Response: 200 — an array of domain strings (empty when no whitelist is set).
["example.com", "acme.io"]

Verified: GET returned 200 against appscode on 2026-07-14 (empty list [] — no whitelist configured).

POST /allowed-domains

Add an email domain to the whitelist.

  • Auth: token + ?org= + edit_allowed_domains:site_admin.
  • Query parameters:
NameTypeRequiredDescription
orgstringyesOrganization slug providing org context.
  • Request body: DomainOpts.
{ "name": "example.com" }
FieldTypeRequiredDescription
namestringnoThe email domain to add.
  • Response: 200 — domain added. 400 for an invalid domain name; 409 if the domain already exists.

PATCH /allowed-domains

Remove an email domain from the whitelist.

  • Auth: token + ?org= + edit_allowed_domains:site_admin.
  • Query parameters:
NameTypeRequiredDescription
orgstringyesOrganization slug providing org context.
  • Request body: DomainOpts.
{ "name": "example.com" }
FieldTypeRequiredDescription
namestringnoThe email domain to remove.
  • Response: 200 — domain removed. 400 if the domain is not in the whitelist.

User registration

GET /disable-registration

Get whether new-user registration is disabled.

  • Auth: public.
  • Response: 200 — a RegistrationOpts object.
{ "disableRegistration": false }
FieldTypeDescription
disableRegistrationbooleantrue if new-user registration is disabled.

Verified: GET returned 200 against appscode on 2026-07-14 ({"disableRegistration":false}).

POST /disable-registration

Enable or disable new-user registration.

  • Auth: token + ?org= + update_user_registration:site_admin.
  • Query parameters:
NameTypeRequiredDescription
orgstringyesOrganization slug providing org context.
  • Request body: RegistrationOpts.
{ "disableRegistration": true }
FieldTypeRequiredDescription
disableRegistrationbooleannoSet to true to disable new-user registration.
  • Response: 200 — registration status updated.