Set a deployment's widget appearance
Replaces the whole appearance (`null` or `{}` goes back to the widget's defaults).
secretKeyAuthorizationBearer <sk_live_… or sk_test_… (a prefix and 40 base62 characters)>A secret key from the dashboard, sent as Authorization: Bearer sk_live_…. Live keys run real, charged calls; test keys (sk_test_…) run calls of at most 60 seconds, 20 a day per organization, never charged. Each key sees only its own env's calls, meetings, webhooks, memories and analytics. Publishable keys (pk_…) are refused.
key_id*stringA deployment's publishable key's id (key_…, not the key itself).
^key_[0-9A-Za-z]{20}$"key_9Zc4Pw7NbT2xKm5RqL8v"application/json- body
appearance*|The whole appearance; it replaces what was there. null or {} goes back to the defaults.
The appearance as stored.
application/json- response
key_id*KeyIdA key's id (never the key itself).
^key_[0-9A-Za-z]{20}$"key_9Zc4Pw7NbT2xKm5RqL8v"appearance*How a deployment's widget looks and behaves. Every part is optional: anything left out takes the widget's own default. The tag's data-* attributes win over it on a page. At most 48 KB of JSON; unknown fields are refused.
{ "theme": "auto", "colors": { "accent": "#1e6fd9" }, "launcher": { "style": "face_label", "label": { "en": "Talk to us" } }, "teaser": { "messages": { "en": [ "Hi", "I'm here if you need anything" ] }, "delay_seconds": 8, "frequency": "once_per_session", "pages": { "hide_on": [ "/checkout*" ] } }, "panel": { "title": { "en": "Alex at Nordlicht" } }}curl -X PUT 'https://api.daxov.com/v1/keys/key_9Zc4Pw7NbT2xKm5RqL8v/appearance' \ -H 'Content-Type: application/json' \ -d '{ "appearance": { "theme": "auto", "colors": { "accent": "#1e6fd9" }, "launcher": { "style": "face_label", "label": { "en": "Talk to us" } }, "teaser": { "messages": { "en": [ "Hi", "I'\''m here if you need anything" ] }, "delay_seconds": 8, "frequency": "once_per_session", "pages": { "hide_on": [ "/checkout*" ] } }, "panel": { "title": { "en": "Alex at Nordlicht" } } }}'{ "key_id": "key_9Zc4Pw7NbT2xKm5RqL8v", "appearance": { "theme": "auto", "colors": { "accent": "#1e6fd9" }, "launcher": { "style": "face_label", "label": { "en": "Talk to us" } }, "teaser": { "messages": { "en": [ "Hi", "I'm here if you need anything" ] }, "delay_seconds": 8, "frequency": "once_per_session", "pages": { "hide_on": [ "/checkout*" ] } }, "panel": { "title": { "en": "Alex at Nordlicht" } } }}