Endpoints for managing page visual themes. These endpoints allow you to create, read, and update themes for canvas, cover, badge, container, typography, and interactive elements.
Reusable color payload used across design-oriented APIs (page themes, QR code designs, etc.). It supports solid colors and gradients with optional direction and per-stop offsets.
badgeId
string
Badge image ID (references media table)
badgeShape
string (enum)
Badge shape
Allowed values
PAGE_THEME_BADGE_SHAPE_UNSPECIFIED
PAGE_THEME_BADGE_SHAPE_CIRCLE
PAGE_THEME_BADGE_SHAPE_SQUARE
PAGE_THEME_BADGE_SHAPE_ROUNDED
bodyFont
object
Font configuration with family, styling, and color
canvasColor
object
Reusable color payload used across design-oriented APIs (page themes, QR code designs, etc.). It supports solid colors and gradients with optional direction and per-stop offsets.
Reusable color payload used across design-oriented APIs (page themes, QR code designs, etc.). It supports solid colors and gradients with optional direction and per-stop offsets.
elementFont
object
Font configuration with family, styling, and color
id
string
Page theme ID
titleFont
object
Font configuration with family, styling, and color
Maximum number of page themes to return. Defaults to 100, capped at 1000.
pageToken
string
query
Cursor from a previous response's next_page_token. Empty starts at the first page. Pages are ordered by (created_at, id), which never change, so a record cannot move between pages while a client is walking them.
Cursor to continue listing page themes. Empty on the last page.
pageThemes
array<object>
List of page themes
totalCount
string (int64)
How many records exist in total, so a client can tell a complete answer from a page of one. A local-first client reads absence from this list as deletion, and may only do so when the count it was given matches what it received: without that, one page would look like the whole model and everything beyond it would be removed locally.
All endpoints may return an unexpected error payload when a request cannot be processed.
error
object
Required
Wrapped error response.
GET
/v1/page-themes/matching-template
Requires auth
#Find a page theme template matching a link's styling
Returns the page theme template available to the workspace whose styling is identical to the link's current page theme, if one exists. Saving the theme as a template again would only duplicate it.
Copies a template's styling into the link's own page theme. The link keeps its
own theme row, so the template can later be edited or deleted without changing
any page that was styled from it. Cover and badge media are copied into the
caller's workspace when the template carries them.
Template to apply, addressed by ID. Use this for workspace templates that have not been published and therefore have no slug.
slug
string
Slug of the page theme template to apply. Only published and built-in templates carry a slug: it is the public identifier the gallery and the marketing site address them by. Supply page_theme_template_id instead for a workspace's own drafts, which have none. Exactly one of the two is required.
Reusable color payload used across design-oriented APIs (page themes, QR code designs, etc.). It supports solid colors and gradients with optional direction and per-stop offsets.
badgeShape
string (enum)
Badge shape to update
Allowed values
PAGE_THEME_BADGE_SHAPE_UNSPECIFIED
PAGE_THEME_BADGE_SHAPE_CIRCLE
PAGE_THEME_BADGE_SHAPE_SQUARE
PAGE_THEME_BADGE_SHAPE_ROUNDED
bodyFont
object
Font configuration with family, styling, and color
canvasColor
object
Reusable color payload used across design-oriented APIs (page themes, QR code designs, etc.). It supports solid colors and gradients with optional direction and per-stop offsets.
Whether container is enabled (false clears container_config)
elementColor
object
Reusable color payload used across design-oriented APIs (page themes, QR code designs, etc.). It supports solid colors and gradients with optional direction and per-stop offsets.
elementFont
object
Font configuration with family, styling, and color
titleFont
object
Font configuration with family, styling, and color