v1

latestOpenAPI 3.0.12026-07-24210349345.4 KB
Theme

Widget Theme

Branding colors and CSS variables configured by the brand owner in the Optimove dashboard. Apply these to style your widget to match the brand's identity.

🚧 CSS safety

globalCss and customCss are raw values from the API. Before injecting them as live styles, allow-list the CSS properties and selectors your widget accepts to prevent unintended style injection.

get/widget-theme/brand/{brandId}

Path parameters

brandIdstring uuid required
Example:aebb6a6a-bdef-480f-8096-e13f9c3d4969

Brand UUID returned by GET /brands/default/{tenantId}.

Response

Theme configuration for the brand.

themeColorsobject

Nested color palette. Keys are color names (e.g. primary), values are shade maps (50 through 900).

globalCssobject

CSS property/value pairs to apply globally (e.g. border-radius, fonts).

customCssobject

CSS selector/rule pairs for specific widget elements.

customVariablesobject

Named values (e.g. sizes, shadows) for use in your CSS as variables or constants.