Skip to content

Brand kit

Brand kit operations in the Hlix API.

See the OpenAPI document for schemas and operation IDs.

  • Protected operations require an API key in x-api-key or a browser session cookie; some actions require a verified user session
  • Tenant-scoped operations use X-Organization-Id; browser sessions can use their active workspace. Discovery and personal-workspace bootstrap do not require an active workspace
  • The base URL for your deployment, https://server.hlix.ai by default
Method Path Operation
GET /v1/api/brand-kit Read workspace brand settings
PUT /v1/api/brand-kit Save a brand draft
POST /v1/api/brand-kit/assets Upload a logo or icon
POST /v1/api/brand-kit/extract Fill the draft from one website
POST /v1/api/brand-kit/extract/cancel Cancel a website read in progress
POST /v1/api/brand-kit/publish Publish the brand; the client portal is live from the first publish

GET /v1/api/brand-kit · operation ID getWorkspaceBrandKit

Parameters

Name In Required Type Description
X-Organization-Id header no string The workspace (organization) to act in. Omitted, the session’s active organization is used.

Responses

Status Body Description
200 WorkspaceBrandKitState Workspace brand draft and published identity
400 ApiError The request named no active organization.
401 ApiError No valid session or API key.
403 ApiError Workspace access denied
404 ApiError The resource does not exist, or the caller is a task-scoped credential and this endpoint is outside its allowlist.

PUT /v1/api/brand-kit · operation ID saveWorkspaceBrandKit

Parameters

Name In Required Type Description
X-Organization-Id header no string The workspace (organization) to act in. Omitted, the session’s active organization is used.

Request body — application/json, SaveBrandKit (required)

Property Type Required Notes
draft object yes

Responses

Status Body Description
200 WorkspaceBrandKitState Workspace brand draft and published identity
400 ValidationError | ApiError The JSON body failed schema validation (ValidationError), or an address in the draft cannot be used (ApiError with code): brand_link_refused for an outside address that is not a public HTTPS website, brand_image_refused for an upload link that is not one of this workspace’s.
401 ApiError No valid session or API key.
403 ApiError Workspace access denied
404 ApiError The resource does not exist, or the caller is a task-scoped credential and this endpoint is outside its allowlist.

POST /v1/api/brand-kit/assets · operation ID uploadWorkspaceBrandAsset

Parameters

Name In Required Type Description
X-Organization-Id header no string The workspace (organization) to act in. Omitted, the session’s active organization is used.

Request body — application/json, UploadBrandAsset (required)

Property Type Required Notes
data string yes min length 1, max length 699052
kind logo | icon yes
mediaType image/png | image/jpeg yes

Responses

Status Body Description
201 BrandAssetUploaded The public URL of the stored image, to put in the draft’s logoUrl or iconUrl.
400 ValidationError | ApiError The JSON body failed schema validation (ValidationError), or the file is not a valid PNG or JPEG within the size and pixel limits: the bytes are decoded, not trusted (ApiError).
401 ApiError No valid session or API key.
403 ApiError Workspace access denied
404 ApiError The resource does not exist, or the caller is a task-scoped credential and this endpoint is outside its allowlist.

POST /v1/api/brand-kit/extract · operation ID extractWorkspaceBrandKit

Parameters

Name In Required Type Description
X-Organization-Id header no string The workspace (organization) to act in. Omitted, the session’s active organization is used.

Request body — application/json, ExtractBrandKit (required)

Property Type Required Notes
url string (uri) yes max length 2048

Responses

Status Body Description
200 WorkspaceBrandKitState The site was read and everything it gave (name, tagline, description, logo, icon, colors, fonts) replaces the draft’s fields; a field the site gave nothing for keeps its value. The read finishes even if the caller goes away, unless it is cancelled.
400 ValidationError | ApiError The JSON body failed schema validation (ValidationError), or the address cannot be read: not a public HTTPS website (ApiError).
401 ApiError No valid session or API key.
403 ApiError Workspace access denied
404 ApiError The resource does not exist, or the caller is a task-scoped credential and this endpoint is outside its allowlist.
502 ApiError The website could not be read.

POST /v1/api/brand-kit/extract/cancel · operation ID cancelWorkspaceBrandKitExtract

Parameters

Name In Required Type Description
X-Organization-Id header no string The workspace (organization) to act in. Omitted, the session’s active organization is used.

Responses

Status Body Description
200 WorkspaceBrandKitState Workspace brand draft and published identity
400 ApiError The request named no active organization.
401 ApiError No valid session or API key.
403 ApiError Workspace access denied
404 ApiError The resource does not exist, or the caller is a task-scoped credential and this endpoint is outside its allowlist.

Publish the brand; the client portal is live from the first publish

Section titled “Publish the brand; the client portal is live from the first publish”

POST /v1/api/brand-kit/publish · operation ID publishWorkspaceBrandKit

Parameters

Name In Required Type Description
X-Organization-Id header no string The workspace (organization) to act in. Omitted, the session’s active organization is used.

Request body — application/json, SaveBrandKit (required)

Property Type Required Notes
draft object yes

Responses

Status Body Description
200 WorkspaceBrandKitState Workspace brand draft and published identity
400 ValidationError | ApiError The JSON body failed schema validation (ValidationError), or an address in the draft cannot be used (ApiError with code): brand_link_refused for an outside address that is not a public HTTPS website, brand_image_refused for an upload link that is not one of this workspace’s.
401 ApiError No valid session or API key.
403 ApiError Workspace access denied
404 ApiError The resource does not exist, or the caller is a task-scoped credential and this endpoint is outside its allowlist.

The response table for each operation lists its documented errors. Common status codes include:

  • 400 — the body failed schema validation, or the request named no active organization. A ValidationError body carries the failing fields; an ApiError body carries only error.
  • 401 — no valid session or API key.
  • 403 — authenticated, but not a member of the named organization, or a client collaborator without the required access.
  • 404 — check the resource ID and your access to the selected Workspace.
  • 409 — the expected revision or state is stale, or another operation currently owns the transition.
  • 500 — the operation failed server-side. Retry only where an idempotency key makes that safe.