Update widget settings
curl --request PATCH \
--url https://api.totebot.ai/v1/agents/{agentId}/chat-interface \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"displayName": "<string>",
"headerColor": "#FFFFFF",
"userMessageColor": "#000000",
"userMessageFontColor": "#FFFFFF",
"assistantMessageColor": "#F3F4F6",
"assistantMessageFontColor": "#111827",
"chatBubbleButtonColor": "#000000",
"chatIconButtonColor": "#FFFFFF",
"chatBubbleDelay": 300,
"initialMessages": [
"Hi! How can I help?"
],
"initialMessagesDelay": 300,
"suggestedMessages": [
"Where is my order?"
],
"suggestedMessagesLabel": "<string>",
"messagePlaceholder": "<string>",
"feedbackEnabled": true,
"copyEnabled": true,
"attachmentsEnabled": true,
"voiceInputEnabled": true,
"showStatusIndicator": true,
"statusLabel": "<string>"
}
'import requests
url = "https://api.totebot.ai/v1/agents/{agentId}/chat-interface"
payload = {
"displayName": "<string>",
"headerColor": "#FFFFFF",
"userMessageColor": "#000000",
"userMessageFontColor": "#FFFFFF",
"assistantMessageColor": "#F3F4F6",
"assistantMessageFontColor": "#111827",
"chatBubbleButtonColor": "#000000",
"chatIconButtonColor": "#FFFFFF",
"chatBubbleDelay": 300,
"initialMessages": ["Hi! How can I help?"],
"initialMessagesDelay": 300,
"suggestedMessages": ["Where is my order?"],
"suggestedMessagesLabel": "<string>",
"messagePlaceholder": "<string>",
"feedbackEnabled": True,
"copyEnabled": True,
"attachmentsEnabled": True,
"voiceInputEnabled": True,
"showStatusIndicator": True,
"statusLabel": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
displayName: '<string>',
headerColor: '#FFFFFF',
userMessageColor: '#000000',
userMessageFontColor: '#FFFFFF',
assistantMessageColor: '#F3F4F6',
assistantMessageFontColor: '#111827',
chatBubbleButtonColor: '#000000',
chatIconButtonColor: '#FFFFFF',
chatBubbleDelay: 300,
initialMessages: ['Hi! How can I help?'],
initialMessagesDelay: 300,
suggestedMessages: ['Where is my order?'],
suggestedMessagesLabel: '<string>',
messagePlaceholder: '<string>',
feedbackEnabled: true,
copyEnabled: true,
attachmentsEnabled: true,
voiceInputEnabled: true,
showStatusIndicator: true,
statusLabel: '<string>'
})
};
fetch('https://api.totebot.ai/v1/agents/{agentId}/chat-interface', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.totebot.ai/v1/agents/{agentId}/chat-interface",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'displayName' => '<string>',
'headerColor' => '#FFFFFF',
'userMessageColor' => '#000000',
'userMessageFontColor' => '#FFFFFF',
'assistantMessageColor' => '#F3F4F6',
'assistantMessageFontColor' => '#111827',
'chatBubbleButtonColor' => '#000000',
'chatIconButtonColor' => '#FFFFFF',
'chatBubbleDelay' => 300,
'initialMessages' => [
'Hi! How can I help?'
],
'initialMessagesDelay' => 300,
'suggestedMessages' => [
'Where is my order?'
],
'suggestedMessagesLabel' => '<string>',
'messagePlaceholder' => '<string>',
'feedbackEnabled' => true,
'copyEnabled' => true,
'attachmentsEnabled' => true,
'voiceInputEnabled' => true,
'showStatusIndicator' => true,
'statusLabel' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.totebot.ai/v1/agents/{agentId}/chat-interface"
payload := strings.NewReader("{\n \"displayName\": \"<string>\",\n \"headerColor\": \"#FFFFFF\",\n \"userMessageColor\": \"#000000\",\n \"userMessageFontColor\": \"#FFFFFF\",\n \"assistantMessageColor\": \"#F3F4F6\",\n \"assistantMessageFontColor\": \"#111827\",\n \"chatBubbleButtonColor\": \"#000000\",\n \"chatIconButtonColor\": \"#FFFFFF\",\n \"chatBubbleDelay\": 300,\n \"initialMessages\": [\n \"Hi! How can I help?\"\n ],\n \"initialMessagesDelay\": 300,\n \"suggestedMessages\": [\n \"Where is my order?\"\n ],\n \"suggestedMessagesLabel\": \"<string>\",\n \"messagePlaceholder\": \"<string>\",\n \"feedbackEnabled\": true,\n \"copyEnabled\": true,\n \"attachmentsEnabled\": true,\n \"voiceInputEnabled\": true,\n \"showStatusIndicator\": true,\n \"statusLabel\": \"<string>\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.totebot.ai/v1/agents/{agentId}/chat-interface")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"displayName\": \"<string>\",\n \"headerColor\": \"#FFFFFF\",\n \"userMessageColor\": \"#000000\",\n \"userMessageFontColor\": \"#FFFFFF\",\n \"assistantMessageColor\": \"#F3F4F6\",\n \"assistantMessageFontColor\": \"#111827\",\n \"chatBubbleButtonColor\": \"#000000\",\n \"chatIconButtonColor\": \"#FFFFFF\",\n \"chatBubbleDelay\": 300,\n \"initialMessages\": [\n \"Hi! How can I help?\"\n ],\n \"initialMessagesDelay\": 300,\n \"suggestedMessages\": [\n \"Where is my order?\"\n ],\n \"suggestedMessagesLabel\": \"<string>\",\n \"messagePlaceholder\": \"<string>\",\n \"feedbackEnabled\": true,\n \"copyEnabled\": true,\n \"attachmentsEnabled\": true,\n \"voiceInputEnabled\": true,\n \"showStatusIndicator\": true,\n \"statusLabel\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.totebot.ai/v1/agents/{agentId}/chat-interface")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"displayName\": \"<string>\",\n \"headerColor\": \"#FFFFFF\",\n \"userMessageColor\": \"#000000\",\n \"userMessageFontColor\": \"#FFFFFF\",\n \"assistantMessageColor\": \"#F3F4F6\",\n \"assistantMessageFontColor\": \"#111827\",\n \"chatBubbleButtonColor\": \"#000000\",\n \"chatIconButtonColor\": \"#FFFFFF\",\n \"chatBubbleDelay\": 300,\n \"initialMessages\": [\n \"Hi! How can I help?\"\n ],\n \"initialMessagesDelay\": 300,\n \"suggestedMessages\": [\n \"Where is my order?\"\n ],\n \"suggestedMessagesLabel\": \"<string>\",\n \"messagePlaceholder\": \"<string>\",\n \"feedbackEnabled\": true,\n \"copyEnabled\": true,\n \"attachmentsEnabled\": true,\n \"voiceInputEnabled\": true,\n \"showStatusIndicator\": true,\n \"statusLabel\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"displayName": "<string>",
"theme": "Light",
"headerColor": "<string>",
"userMessageColor": "<string>",
"userMessageFontColor": "<string>",
"assistantMessageColor": "<string>",
"assistantMessageFontColor": "<string>",
"chatBubbleButtonColor": "<string>",
"chatIconButtonColor": "<string>",
"chatBubbleAlignment": "left",
"chatBubbleDelay": 123,
"initialMessages": [
"<string>"
],
"initialMessagesDelay": 123,
"suggestedMessages": [
"<string>"
],
"suggestedMessagesLabel": "<string>",
"messagePlaceholder": "<string>",
"feedbackEnabled": true,
"copyEnabled": true,
"attachmentsEnabled": true,
"voiceInputEnabled": true,
"showStatusIndicator": true,
"statusLabel": "<string>"
}{
"status": "error",
"error": {
"code": "NotFoundException",
"message": "Agent not found",
"details": {}
},
"path": "/v1/agents/clx123",
"timestamp": "2026-11-24T10:00:00.000Z"
}{
"status": "error",
"error": {
"code": "NotFoundException",
"message": "Agent not found",
"details": {}
},
"path": "/v1/agents/clx123",
"timestamp": "2026-11-24T10:00:00.000Z"
}{
"status": "error",
"error": {
"code": "NotFoundException",
"message": "Agent not found",
"details": {}
},
"path": "/v1/agents/clx123",
"timestamp": "2026-11-24T10:00:00.000Z"
}{
"status": "error",
"error": {
"code": "NotFoundException",
"message": "Agent not found",
"details": {}
},
"path": "/v1/agents/clx123",
"timestamp": "2026-11-24T10:00:00.000Z"
}{
"status": "error",
"error": {
"code": "NotFoundException",
"message": "Agent not found",
"details": {}
},
"path": "/v1/agents/clx123",
"timestamp": "2026-11-24T10:00:00.000Z"
}{
"status": "error",
"error": {
"code": "NotFoundException",
"message": "Agent not found",
"details": {}
},
"path": "/v1/agents/clx123",
"timestamp": "2026-11-24T10:00:00.000Z"
}Agent configuration
Update widget settings
Look, welcome messages, suggested questions and widget features. Only the fields you send change. Embedding (isPublic, allowedDomains) is on PATCH /v1/agents/.
PATCH
/
v1
/
agents
/
{agentId}
/
chat-interface
Update widget settings
curl --request PATCH \
--url https://api.totebot.ai/v1/agents/{agentId}/chat-interface \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"displayName": "<string>",
"headerColor": "#FFFFFF",
"userMessageColor": "#000000",
"userMessageFontColor": "#FFFFFF",
"assistantMessageColor": "#F3F4F6",
"assistantMessageFontColor": "#111827",
"chatBubbleButtonColor": "#000000",
"chatIconButtonColor": "#FFFFFF",
"chatBubbleDelay": 300,
"initialMessages": [
"Hi! How can I help?"
],
"initialMessagesDelay": 300,
"suggestedMessages": [
"Where is my order?"
],
"suggestedMessagesLabel": "<string>",
"messagePlaceholder": "<string>",
"feedbackEnabled": true,
"copyEnabled": true,
"attachmentsEnabled": true,
"voiceInputEnabled": true,
"showStatusIndicator": true,
"statusLabel": "<string>"
}
'import requests
url = "https://api.totebot.ai/v1/agents/{agentId}/chat-interface"
payload = {
"displayName": "<string>",
"headerColor": "#FFFFFF",
"userMessageColor": "#000000",
"userMessageFontColor": "#FFFFFF",
"assistantMessageColor": "#F3F4F6",
"assistantMessageFontColor": "#111827",
"chatBubbleButtonColor": "#000000",
"chatIconButtonColor": "#FFFFFF",
"chatBubbleDelay": 300,
"initialMessages": ["Hi! How can I help?"],
"initialMessagesDelay": 300,
"suggestedMessages": ["Where is my order?"],
"suggestedMessagesLabel": "<string>",
"messagePlaceholder": "<string>",
"feedbackEnabled": True,
"copyEnabled": True,
"attachmentsEnabled": True,
"voiceInputEnabled": True,
"showStatusIndicator": True,
"statusLabel": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
displayName: '<string>',
headerColor: '#FFFFFF',
userMessageColor: '#000000',
userMessageFontColor: '#FFFFFF',
assistantMessageColor: '#F3F4F6',
assistantMessageFontColor: '#111827',
chatBubbleButtonColor: '#000000',
chatIconButtonColor: '#FFFFFF',
chatBubbleDelay: 300,
initialMessages: ['Hi! How can I help?'],
initialMessagesDelay: 300,
suggestedMessages: ['Where is my order?'],
suggestedMessagesLabel: '<string>',
messagePlaceholder: '<string>',
feedbackEnabled: true,
copyEnabled: true,
attachmentsEnabled: true,
voiceInputEnabled: true,
showStatusIndicator: true,
statusLabel: '<string>'
})
};
fetch('https://api.totebot.ai/v1/agents/{agentId}/chat-interface', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.totebot.ai/v1/agents/{agentId}/chat-interface",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'displayName' => '<string>',
'headerColor' => '#FFFFFF',
'userMessageColor' => '#000000',
'userMessageFontColor' => '#FFFFFF',
'assistantMessageColor' => '#F3F4F6',
'assistantMessageFontColor' => '#111827',
'chatBubbleButtonColor' => '#000000',
'chatIconButtonColor' => '#FFFFFF',
'chatBubbleDelay' => 300,
'initialMessages' => [
'Hi! How can I help?'
],
'initialMessagesDelay' => 300,
'suggestedMessages' => [
'Where is my order?'
],
'suggestedMessagesLabel' => '<string>',
'messagePlaceholder' => '<string>',
'feedbackEnabled' => true,
'copyEnabled' => true,
'attachmentsEnabled' => true,
'voiceInputEnabled' => true,
'showStatusIndicator' => true,
'statusLabel' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.totebot.ai/v1/agents/{agentId}/chat-interface"
payload := strings.NewReader("{\n \"displayName\": \"<string>\",\n \"headerColor\": \"#FFFFFF\",\n \"userMessageColor\": \"#000000\",\n \"userMessageFontColor\": \"#FFFFFF\",\n \"assistantMessageColor\": \"#F3F4F6\",\n \"assistantMessageFontColor\": \"#111827\",\n \"chatBubbleButtonColor\": \"#000000\",\n \"chatIconButtonColor\": \"#FFFFFF\",\n \"chatBubbleDelay\": 300,\n \"initialMessages\": [\n \"Hi! How can I help?\"\n ],\n \"initialMessagesDelay\": 300,\n \"suggestedMessages\": [\n \"Where is my order?\"\n ],\n \"suggestedMessagesLabel\": \"<string>\",\n \"messagePlaceholder\": \"<string>\",\n \"feedbackEnabled\": true,\n \"copyEnabled\": true,\n \"attachmentsEnabled\": true,\n \"voiceInputEnabled\": true,\n \"showStatusIndicator\": true,\n \"statusLabel\": \"<string>\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.totebot.ai/v1/agents/{agentId}/chat-interface")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"displayName\": \"<string>\",\n \"headerColor\": \"#FFFFFF\",\n \"userMessageColor\": \"#000000\",\n \"userMessageFontColor\": \"#FFFFFF\",\n \"assistantMessageColor\": \"#F3F4F6\",\n \"assistantMessageFontColor\": \"#111827\",\n \"chatBubbleButtonColor\": \"#000000\",\n \"chatIconButtonColor\": \"#FFFFFF\",\n \"chatBubbleDelay\": 300,\n \"initialMessages\": [\n \"Hi! How can I help?\"\n ],\n \"initialMessagesDelay\": 300,\n \"suggestedMessages\": [\n \"Where is my order?\"\n ],\n \"suggestedMessagesLabel\": \"<string>\",\n \"messagePlaceholder\": \"<string>\",\n \"feedbackEnabled\": true,\n \"copyEnabled\": true,\n \"attachmentsEnabled\": true,\n \"voiceInputEnabled\": true,\n \"showStatusIndicator\": true,\n \"statusLabel\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.totebot.ai/v1/agents/{agentId}/chat-interface")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"displayName\": \"<string>\",\n \"headerColor\": \"#FFFFFF\",\n \"userMessageColor\": \"#000000\",\n \"userMessageFontColor\": \"#FFFFFF\",\n \"assistantMessageColor\": \"#F3F4F6\",\n \"assistantMessageFontColor\": \"#111827\",\n \"chatBubbleButtonColor\": \"#000000\",\n \"chatIconButtonColor\": \"#FFFFFF\",\n \"chatBubbleDelay\": 300,\n \"initialMessages\": [\n \"Hi! How can I help?\"\n ],\n \"initialMessagesDelay\": 300,\n \"suggestedMessages\": [\n \"Where is my order?\"\n ],\n \"suggestedMessagesLabel\": \"<string>\",\n \"messagePlaceholder\": \"<string>\",\n \"feedbackEnabled\": true,\n \"copyEnabled\": true,\n \"attachmentsEnabled\": true,\n \"voiceInputEnabled\": true,\n \"showStatusIndicator\": true,\n \"statusLabel\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"displayName": "<string>",
"theme": "Light",
"headerColor": "<string>",
"userMessageColor": "<string>",
"userMessageFontColor": "<string>",
"assistantMessageColor": "<string>",
"assistantMessageFontColor": "<string>",
"chatBubbleButtonColor": "<string>",
"chatIconButtonColor": "<string>",
"chatBubbleAlignment": "left",
"chatBubbleDelay": 123,
"initialMessages": [
"<string>"
],
"initialMessagesDelay": 123,
"suggestedMessages": [
"<string>"
],
"suggestedMessagesLabel": "<string>",
"messagePlaceholder": "<string>",
"feedbackEnabled": true,
"copyEnabled": true,
"attachmentsEnabled": true,
"voiceInputEnabled": true,
"showStatusIndicator": true,
"statusLabel": "<string>"
}{
"status": "error",
"error": {
"code": "NotFoundException",
"message": "Agent not found",
"details": {}
},
"path": "/v1/agents/clx123",
"timestamp": "2026-11-24T10:00:00.000Z"
}{
"status": "error",
"error": {
"code": "NotFoundException",
"message": "Agent not found",
"details": {}
},
"path": "/v1/agents/clx123",
"timestamp": "2026-11-24T10:00:00.000Z"
}{
"status": "error",
"error": {
"code": "NotFoundException",
"message": "Agent not found",
"details": {}
},
"path": "/v1/agents/clx123",
"timestamp": "2026-11-24T10:00:00.000Z"
}{
"status": "error",
"error": {
"code": "NotFoundException",
"message": "Agent not found",
"details": {}
},
"path": "/v1/agents/clx123",
"timestamp": "2026-11-24T10:00:00.000Z"
}{
"status": "error",
"error": {
"code": "NotFoundException",
"message": "Agent not found",
"details": {}
},
"path": "/v1/agents/clx123",
"timestamp": "2026-11-24T10:00:00.000Z"
}{
"status": "error",
"error": {
"code": "NotFoundException",
"message": "Agent not found",
"details": {}
},
"path": "/v1/agents/clx123",
"timestamp": "2026-11-24T10:00:00.000Z"
}Authorizations
Headers
Path Parameters
Body
application/json