PATCH
https://app.evoriqa.com/api/v1/chatbots/{chatbotId}/settingsUpdate widget settings
Updates any subset of the widget settings; omitted fields are left unchanged and nullable fields accept null to clear. A rejected value returns 422.
Requires scope chatbots:write
Warning:
Access is gated — enable it before your first call
The API is off by default. A request succeeds only when all three switches are on: the platform master switch (off by default), your organisation’s API toggle, and your plan or client entitlement. Any one off returns 403 API access is not enabled for this workspace.
Parameters
| Name | In | Type | Required | Default | Description |
|---|---|---|---|---|---|
| chatbotId | path | string uuid | Required | — | The chatbot's id. |
Request body
Content type: application/json
| Field | Type | Required | Description |
|---|---|---|---|
| primaryColor | string matches ^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$ | Optional | Widget accent colour. |
| secondaryColor | string matches ^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$, or null | Optional | Secondary colour. |
| backgroundColor | string matches ^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$, or null | Optional | Chat background colour. |
| textColor | string matches ^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$, or null | Optional | Message text colour. |
| bubbleColor | string matches ^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$, or null | Optional | Launcher bubble colour. |
| position | string one of bottom-right · bottom-left | Optional | Widget corner. |
| showPoweredBy | boolean | Optional | Show the “powered by” footer. |
| showSources | boolean | Optional | Show source citations under answers. |
| blockedTopics | array up to 25 items | Optional | Topics the bot declines across every channel (best-effort AI enforcement). Send [] to clear. |
| refusalMessage | string up to 300 chars, or null | Optional | Custom refusal wording for blocked topics; null falls back to the default fallback message. |
| collectLeads | boolean | Optional | Ask visitors for contact details. |
| leadCaptureMode | string one of before_chat · after_first_response · on_handoff · manual | Optional | When the lead form appears. |
| suggestedQuestions | array up to 10 items | Optional | Starter questions shown to visitors. |
| placeholderText | string up to 120 chars | Optional | Input placeholder. |
| avatarUrl | string up to 2000 chars, or null | Optional | Bot avatar URL. |
| proactiveEnabled | boolean | Optional | Open the widget proactively. |
| proactiveMessage | string up to 300 chars, or null | Optional | Proactive greeting. |
| proactiveDelaySeconds | integer 0–600 | Optional | Delay before the proactive open. |
| aiDisclosureEnabled | boolean | Optional | Show the AI-disclosure notice. |
| aiDisclosureText | string up to 300 chars, or null | Optional | AI-disclosure text. |
Request
curl
curl -X PATCH "https://app.evoriqa.com/api/v1/chatbots/{chatbotId}/settings" \
-H "x-api-key: $EVORIQA_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "collectLeads": true, "position": "bottom-right", "leadCaptureMode": "on_handoff" }'Node.js
const res = await fetch("https://app.evoriqa.com/api/v1/chatbots/{chatbotId}/settings", {
method: "PATCH",
headers: {
Authorization: `Bearer ${process.env.EVORIQA_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"collectLeads": true,
"position": "bottom-right",
"leadCaptureMode": "on_handoff"
}),
});
const responseBody = await res.json();Python
import os
import requests
res = requests.patch(
"https://app.evoriqa.com/api/v1/chatbots/{chatbotId}/settings",
headers={"Authorization": f"Bearer {os.environ['EVORIQA_API_KEY']}"},
json={
"collectLeads": True,
"position": "bottom-right",
"leadCaptureMode": "on_handoff"
},
)
body = res.json()Response
200 OK
{
"success": true,
"data": {
"primaryColor": "#4373fc",
"position": "bottom-right",
"showPoweredBy": true,
"collectLeads": true,
"leadCaptureMode": "on_handoff",
"suggestedQuestions": [
"What does it cost?",
"How do I get started?"
],
"placeholderText": "Ask a question...",
"proactiveEnabled": false,
"aiDisclosureEnabled": true
}
}