Skip to content

ButterIX v1 is out: versions, multiple languages, Ask AI, and a per-site MCP server, all built in. →

Update embed settings

PUThttps://api.butterix.com/v1/sites/:site/embed

Requires the admin role. Changes only the fields in the request — origins replaces all allowed origins (an empty list turns embedding off); the appearance fields (skin, trigger, theme, color, colorDark) apply right away, and null restores a default.

Authentication

AuthorizationBearer

An organization API key, created in the console under Organization settings → API Keys, starting with biti_. It acts as editor and can't do anything that requires admin.

biti_sessionstring

The HttpOnly session cookie set on login. Requests that change data must be same-origin (the Origin header is checked) to prevent CSRF.

Path parameters

sitestringRequired

Site slug or id

Request

This endpoint expects an object.
skinenumOptionalDefaults to classic

Skin: classic, or aurora (frosted glass with flowing light along the edges). A data-skin attribute on the page takes priority

Allowed values:
triggerenumOptionalDefaults to button

Entry style: button (a floating button) or bar (an input bar at the bottom). A data-trigger attribute on the page takes priority

Allowed values:
themeenumOptionalDefaults to dark

Color mode; auto follows the visitor's system setting. A data-theme attribute on the page takes priority

Allowed values:
colorstring or nullOptional

Accent color for light mode; null uses the docs site's own. A data-color attribute on the page takes priority

colorDarkstring or nullOptional

Accent color for dark mode; when null, it's derived from color or the docs site's own is used. A data-color-dark attribute on the page takes priority

originslist of stringsOptional<=20 items

Allowed origins; *. covers any subdomain, and http is for localhost only

Response

Updated settings
skinenumOptionalDefaults to classic

Skin: classic, or aurora (frosted glass with flowing light along the edges). A data-skin attribute on the page takes priority

Allowed values:
triggerenumOptionalDefaults to button

Entry style: button (a floating button) or bar (an input bar at the bottom). A data-trigger attribute on the page takes priority

Allowed values:
themeenumOptionalDefaults to dark

Color mode; auto follows the visitor's system setting. A data-theme attribute on the page takes priority

Allowed values:
colorstring or nullOptional

Accent color for light mode; null uses the docs site's own. A data-color attribute on the page takes priority

colorDarkstring or nullOptional

Accent color for dark mode; when null, it's derived from color or the docs site's own is used. A data-color-dark attribute on the page takes priority

originslist of stringsOptional<=20 items

Allowed origins; *. covers any subdomain, and http is for localhost only

Errors