widget channel for your business so visitor conversations can be received immediately.
Method: POST URL: /api/v1/widget/create
Headers
| Header | Value |
|---|---|
| Authorization | Bearer |
| Content-Type | application/json |
Body
The website domain this widget will be embedded on (e.g.,
acme.com).A display name for the widget, used internally to identify it.
The main heading shown on the widget’s welcome screen.
A short tagline displayed below the welcome heading.
Hex color code used for the widget’s primary UI elements and launcher button.
Whether to show a live/offline availability badge on the widget launcher.
URL to a logo image displayed inside the widget. Host the image on any publicly accessible CDN or image host, then pass the URL here.
Additional configuration options for the widget.
Response
UUID of the newly created widget.
UUID of the business that owns the widget.
Display name of the widget.
The domain this widget is configured for.
Welcome screen heading.
Welcome screen tagline.
Primary hex color.
Whether the online badge is enabled.
Logo URL, or
null if not set.The widget’s configuration object.
ISO 8601 timestamp of creation.
ISO 8601 timestamp of last update.
Example
Response example
Update a widget
Method:PUT URL: /api/v1/widget/update/{widget_id}
Updates an existing widget’s configuration. Only the owner of the business can update a widget. Any field you omit retains its current value.
Path parameters
The UUID of the widget to update.
Body
Same fields as Create Widget:name, domain, welcome_heading, welcome_tagline, primary_color, show_online_badge, logo_url, config.
Example
Errors
| Status | Meaning |
|---|---|
| 400 | A widget for this domain already exists, or organization not found |
| 401 | Unauthorized — missing or invalid token |
| 403 | Forbidden — you are not the owner of this business |
| 404 | Widget not found |