Docs

Themes

Themes control fonts, colours and branding assets used across headless experiences. You can create, update and delete themes via the API.

Get themes Scale and above

Use this endpoint to list themes in your workspace.

GET/v1/headless/themes

Query parameters

FieldTypeRequiredDefaultDescriptionOptions
lengthnumberNo

Get theme Scale and above

Use this endpoint to fetch a single theme by ID.

GET/v1/headless/themes/{id}

Path parameters

FieldDescriptionOptions
idTheme ID

Create theme Scale and above

Use this endpoint to create a new theme.

cover-specific colour fields are ignored by this endpoint.

POST/v1/headless/themes

Body parameters

FieldTypeRequiredDescOptions
namestringYesTheme name
fontsobjectNoFont settings ({ heading: { family }, body: { family } })
coloursobjectNoColour palette (keyed by role)
logoIdnumber | nullNoAsset ID of the uploaded logo
configobjectNoAdditional theme configuration

Update theme Scale and above

Use this endpoint to update an existing theme.

cover-specific colour fields are ignored by this endpoint.

PUT/v1/headless/themes/{id}

Path parameters

FieldDescriptionOptions
idTheme ID

Body parameters

FieldTypeRequiredDescOptions
namestringYesTheme name
fontsobjectNoFont settings
coloursobjectNoColour palette
logoIdnumber | nullNoAsset ID of the uploaded logo
configobjectNoAdditional theme configuration
defaultbooleanNoWhether this theme is the workspace default

Delete theme Scale and above

Use this endpoint to delete an existing theme.

DELETE/v1/headless/themes/{id}

Path parameters

FieldDescriptionOptions
idTheme ID