Resolido Docs
Chat widget

Update chat widget

PATCH
/agents/{agentId}/widget

Change the chat widget of an agent: colours, position, texts, languages, suggested questions and FAQ. Owner/admin.

Authorization

bearer agents:write
headerAuthorizationBearer <token>

API key (rsl_live_…) from Settings → Developers.

Scope: agents:write

Path Parameters

agentId*string

AI agent id. Never invent ids – list resources first.

Length1 <= length <= 64

Request Body

application/json
  1. body
primaryColor?string
Match^#[0-9a-fA-F]{6}$
position?string
Value in"bottom-left""bottom-right"
themeMode?string
Value in"light""dark""auto"
requireEmailBeforeChat?boolean
headerTitle?string
Lengthlength <= 100
headerStatus?string
Lengthlength <= 100
inputPlaceholder?string
Lengthlength <= 100
welcomeMessage?string
Lengthlength <= 2000
autoDetectLocale?boolean
defaultLocale?string
Lengthlength <= 10
supportedLocales?array<>
Items1 <= items <= 30
suggestions?array<>

Suggested first questions shown in the widget.

Itemsitems <= 5
faq?array<>

Answers shown for the suggested questions, same order.

Itemsitems <= 5
translations?

Per-language overrides keyed by locale.

Response Body

Success

application/json
  1. response
agentId*string
changed*array<string>
curl -X PATCH "https://example.com/agents/string/widget" \  -H "Content-Type: application/json" \  -d '{}'
{  "agentId": "string",  "changed": [    "string"  ]}