Create theme
create_themeCreate a new visual theme. Supply the complete tokens map (primary, font, radius, shadow, canvas, surface, chart1-10, etc.) — tokens are the single source of truth for every visual property. A theme also picks the report cover-page and thank-you-page background images (other text/colour overlays come from defaults). Set is_default=true to make this the account default — any existing default is cleared atomically.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Theme name | |
| tokens | Yes | Complete token map for all visual properties: primary, primary_foreground, accent, accent_foreground, canvas, surface, surface_muted, text, text_muted, border, header_surface, header_text, header_border, chart1–chart10, font, radius, shadow. | |
| cover_page | No | Cover-page configuration: background image URL plus title and subtitle overlays (variable-substituted at render time). | |
| is_default | No | Mark as the account default theme — one per account, cascade target for new reports | |
| thank_you_page | No | Thank-you-page configuration: background image + title + subtitle. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | The new theme — id, name, tokens and page config. Pass the id as theme_id on a report. | |
| success | Yes | True when the call succeeded. A failure comes back as an error result instead. |