Update Widget
Update a widget. Fields you leave out keep their current value.
Request
- Base URL: https://api.dialogbrain.com (the document declares no server; this is the origin it was published from)
- URL: https://api.dialogbrain.com/api/v1/widgets/{widget_id}
- Auth: none declared
Path parameters
Request body
New name for the widget
Auto-reply mode: 'draft' or 'auto'. OMIT to leave the auto-reply mode unchanged.
Primary color for widget theme (hex, e.g., '#2563eb'). Paints the header, the visitor's message bubbles and the send button — and the launcher bubble too unless launcher_color overrides it.
Hex color for the closed launcher bubble (e.g., '#ffffff'). Override this to use a different color than primary_color. Clear it to revert to primary_color.
Widget position on screen. OMIT to leave the position unchanged.
Title shown in chat header
Subtitle shown in chat header
Enable or disable the widget. OMIT to leave the active flag unchanged.
Booking URL for calendar action (e.g., 'https://calendly.com/yourname')
Require visitor to identify before chatting. OMIT to leave the identification policy unchanged.
Website URL for product/site search integration
Enable or disable the search action button. OMIT to leave this flag unchanged.
Enable or disable the contact form action button. OMIT to leave this flag unchanged.
Enable or disable the calendar booking action button. OMIT to leave this flag unchanged.
Custom greeting message shown when visitor opens the chat (e.g., 'Hello! How can I help you today?')
Greeting for returning visitors who already have chat history (e.g., 'Welcome back! How can I help you today?'). Falls back to greeting_text if not set.
Enable or disable the proactive greeting. OMIT to leave this flag unchanged.
Delay in seconds before the proactive greeting appears (0–300). 0 = send immediately on page load. Default: 30.
notification = show badge after delay; auto_open = open widget automatically after delay; on_open = greet only when visitor manually opens. OMIT to leave the greeting behavior unchanged.
Widget color scheme. 'auto' follows the visitor's OS dark/light mode preference. OMIT to leave the color scheme unchanged.
Show full chat history to returning visitors. OMIT to leave this flag unchanged.
Master switch for voice on this widget — set true to show the mic and let visitors talk to the agent. Everything else voice-related (greeting, button label, STT/TTS from the agent's own config) is inert until this is on. The mic also needs a voice-capable agent in the workspace: one with an enabled incoming_call trigger. OMIT to leave the setting unchanged.
Hard cap on a single voice call from this widget, in seconds (default 300). OMIT to leave the cap unchanged.
Spoken opening line when a visitor starts a voice call through this widget. Played via TTS before the AI model runs. Empty string disables the greeting. Requires allow_voice=true to be audible.
How the widget renders: 'chat' (default) for the full panel with a microphone, 'voice_only' for a mic-only bubble that starts a call, 'headless' for no interface at all, driven through window.DialogBrain.
Localized aria-label and hover tooltip for the voice-only mic bubble (only used when display_mode='voice_only'). ≤ 100 chars. Defaults to 'Talk to agent' if not set.
Response
Successful Response
Changes
No recorded changes to this operation across all 5 revisions of this API.