Update widget
Updates a chat widget by its id and returns the updated configuration. Changes take effect the next time the embed script loads.
Authorization
AuthorizationRequiredBearer <token>API key as Bearer token: Authorization: Bearer sk_live_.... Use sk_live_ prefixed keys for production data and sk_test_ prefixed keys for sandbox/test data.
In: header
X-API-Key<token>API key via header: X-API-Key: sk_live_.... Use sk_live_ prefixed keys for production data and sk_test_ prefixed keys for sandbox/test data.
In: header
Request Body
application/jsonRequirednamestringprimaryColorstringOverridden by the workspace-level appearance setting when one is present.
accentColorstringOverridden by the workspace-level appearance setting when one is present.
welcomeMessagestringplaceholderTextstringpositionstring"bottom-right"Value in: "bottom-right" | "bottom-left"showAgentPhotosbooleantrueshowTypingIndicatorbooleantruerequireEmailbooleanfalsecollectVisitorInfobooleantruebusinessHoursobjectofflineMessagestringaccountIdstringLink widget to a CRM account
"uuid"aiAutoRespondbooleanEnable AI auto-responses. Defaults to company AI config.
isActivebooleanWhether the widget renders on the page. Deactivating keeps its history and configuration.
Path Parameters
idRequiredstringResource ID
"uuid"Updated widget