Skip to navigation

Web chat · Configure the website bot

View as Markdown

Everything a customer sets after publishing: which sites may embed it, how it looks, what it asks a visitor for, whether it can fetch a colleague, and what it may spend in a month.

appearance, lead_form and handover are replaced wholesale, and allowed_origins is the whole list. Sending {"appearance": {"title": "x"}} discards every other appearance field. Read the bot first and send the complete object, including the parts that are not changing.

status is the live toggle — paused is how a bot stops answering without the customer taking the snippet off their page, and is the reversible way to unpublish. Switching to active also takes a draft agent live, because a draft agent cannot run and the widget would otherwise report success and stay silent.

The response’s lead_form_policy and lead_form_fields are resolved from what was stored, so read them back rather than assuming the write echoes.

Authentication

AuthorizationApi-Key

Header authentication of the form Api-Key <token>

OR
AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Path parameters

agent_idstringRequired

Agent UUID or slug — both are accepted. From agents_listAgents.

Request

This endpoint expects an object.
statusenumOptional

The live toggle. paused stops the bot answering while the snippet stays on the customer’s page; active also takes a draft agent live.

Allowed values:
allowed_originslist of stringsOptional

Sites permitted to embed the widget, as origins (https://shop.example). The whole list — to add one, send the existing entries alongside it. Empty allows any site that has the key. A browser-side check, not a spend control: the monthly cap is what bounds cost.

appearanceobjectOptional
How the widget looks and what it says first. Replaced wholesale on a write, so send every field being kept.
lead_formobjectOptional
What the widget asks a visitor for before the conversation. Replaced wholesale on a write.
handoverobjectOptional
Replaced wholesale on a write.
monthly_message_capinteger or nullOptional

Messages this bot may answer per calendar month. null is no cap; 0 answers nobody. Counted in messages, not credits.

Response

The updated bot.

Errors

400
Bad Request Error
404
Not Found Error