Organization

/api/v1 operations for organization. See HTTP API for authentication, the error envelope, and rate limits.

Operations

GET /api/v1/organization/brand

Get the organization's brand

Returns the stored primary and secondary colours, the app theme, and the logo's download path when one is stored. Returns { brand: null } when nothing is stored.

Auth: API key required.

Operation ID: getOrganizationBrand

Responses:

CLI: khotan organization brand get

Download the brand logo

Returns the logo file (PNG or SVG). Responds 404 when no logo is stored.

Auth: API key required.

Operation ID: getOrganizationBrandLogo

Responses:

CLI: khotan organization brand logo

PUT /api/v1/organization/brand/app-theme

Save the brand's app theme

Replaces the organization's app theme with the given light and dark CSS colour tokens. Token names must match ^--[a-z0-9-]+$ and values must be hex or oklch() colours. Logos and colours are unchanged.

Auth: API key required.

Operation ID: setOrganizationBrandAppTheme

Request body (application/json, required):

Responses:

CLI: khotan organization brand app-theme set