Skip to main content
PATCH
Update web widget

Path Parameters

id
string<uuid>
required

Body

application/json
assistant_id
string<uuid>

Assistant that answers voice and chat from this widget. Translate assistants are rejected with 422, because they only run in translation rooms.

name
string
allowed_origins
string[]

Replaces the allowed domains (example.com, *.example.com, optional port). An empty array blocks other websites unless allow_all_origins is on.

allow_all_origins
boolean

Every website may embed the widget. allowed_origins is ignored while this is on.

origin_include_www
boolean

An allowed domain also covers its www variant: example.com allows www.example.com and the other way round.

origin_allow_http
boolean

http:// pages may embed the widget. Default false for new widgets. https:// pages and localhost always work.

voice_enabled
boolean
chat_enabled
boolean
is_active
boolean
theme
object

Widget appearance. On create and update the theme object replaces the saved theme as a whole — read the widget first (get) and send the complete theme with your change, otherwise omitted settings return to their defaults. launcher_label_i18n and greeting_translations are derived and read-only — never persist client-supplied maps.

phone_verification_enabled
boolean
default:false

Require the selected email or SMS verification before chat or voice. Available in root workspaces, including a reseller’s own workspace; unavailable to reseller customer workspaces.

phone_verification_accepted_credits
number | null

Explicitly accept the current per-SMS price from the widget list response. Currently 80 credits per accepted send, including resends; code checks and valid remembered visits are free.

verification_method
enum<string>
default:sms

Verify visitors by SMS or email. Email uses the platform sender without additional credits.

Available options:
sms,
email

Response

Updated widget.

data
object
required