curl --request PATCH \
--url https://sitegpt.ai/api/v2/chatbots/{chatbotId}/settings/{section} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"description": "<string>",
"supportEmail": "jsmith@example.com",
"disableSmartFollowUpPrompts": true,
"smartFollowUpPromptsCount": 3,
"disableLeadNotifications": true,
"enablePageContextAwareness": true,
"emailConversationToVisitor": true,
"rateLimits": {
"thread": {
"enabled": true,
"maxMessages": 500
}
},
"allowedDomains": [
"<string>"
],
"excludedPaths": [
"<string>"
]
}
'import requests
url = "https://sitegpt.ai/api/v2/chatbots/{chatbotId}/settings/{section}"
payload = {
"description": "<string>",
"supportEmail": "jsmith@example.com",
"disableSmartFollowUpPrompts": True,
"smartFollowUpPromptsCount": 3,
"disableLeadNotifications": True,
"enablePageContextAwareness": True,
"emailConversationToVisitor": True,
"rateLimits": { "thread": {
"enabled": True,
"maxMessages": 500
} },
"allowedDomains": ["<string>"],
"excludedPaths": ["<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({
description: '<string>',
supportEmail: 'jsmith@example.com',
disableSmartFollowUpPrompts: true,
smartFollowUpPromptsCount: 3,
disableLeadNotifications: true,
enablePageContextAwareness: true,
emailConversationToVisitor: true,
rateLimits: {thread: {enabled: true, maxMessages: 500}},
allowedDomains: ['<string>'],
excludedPaths: ['<string>']
})
};
fetch('https://sitegpt.ai/api/v2/chatbots/{chatbotId}/settings/{section}', 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://sitegpt.ai/api/v2/chatbots/{chatbotId}/settings/{section}",
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([
'description' => '<string>',
'supportEmail' => 'jsmith@example.com',
'disableSmartFollowUpPrompts' => true,
'smartFollowUpPromptsCount' => 3,
'disableLeadNotifications' => true,
'enablePageContextAwareness' => true,
'emailConversationToVisitor' => true,
'rateLimits' => [
'thread' => [
'enabled' => true,
'maxMessages' => 500
]
],
'allowedDomains' => [
'<string>'
],
'excludedPaths' => [
'<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://sitegpt.ai/api/v2/chatbots/{chatbotId}/settings/{section}"
payload := strings.NewReader("{\n \"description\": \"<string>\",\n \"supportEmail\": \"jsmith@example.com\",\n \"disableSmartFollowUpPrompts\": true,\n \"smartFollowUpPromptsCount\": 3,\n \"disableLeadNotifications\": true,\n \"enablePageContextAwareness\": true,\n \"emailConversationToVisitor\": true,\n \"rateLimits\": {\n \"thread\": {\n \"enabled\": true,\n \"maxMessages\": 500\n }\n },\n \"allowedDomains\": [\n \"<string>\"\n ],\n \"excludedPaths\": [\n \"<string>\"\n ]\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://sitegpt.ai/api/v2/chatbots/{chatbotId}/settings/{section}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"description\": \"<string>\",\n \"supportEmail\": \"jsmith@example.com\",\n \"disableSmartFollowUpPrompts\": true,\n \"smartFollowUpPromptsCount\": 3,\n \"disableLeadNotifications\": true,\n \"enablePageContextAwareness\": true,\n \"emailConversationToVisitor\": true,\n \"rateLimits\": {\n \"thread\": {\n \"enabled\": true,\n \"maxMessages\": 500\n }\n },\n \"allowedDomains\": [\n \"<string>\"\n ],\n \"excludedPaths\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sitegpt.ai/api/v2/chatbots/{chatbotId}/settings/{section}")
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 \"description\": \"<string>\",\n \"supportEmail\": \"jsmith@example.com\",\n \"disableSmartFollowUpPrompts\": true,\n \"smartFollowUpPromptsCount\": 3,\n \"disableLeadNotifications\": true,\n \"enablePageContextAwareness\": true,\n \"emailConversationToVisitor\": true,\n \"rateLimits\": {\n \"thread\": {\n \"enabled\": true,\n \"maxMessages\": 500\n }\n },\n \"allowedDomains\": [\n \"<string>\"\n ],\n \"excludedPaths\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"ok": true,
"data": {
"section": "general",
"settings": {
"title": "Example chatbot"
}
},
"meta": {
"requestId": "request-id"
}
}{
"ok": false,
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
},
"meta": {
"requestId": "<string>"
}
}{
"ok": false,
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
},
"meta": {
"requestId": "<string>"
}
}{
"ok": false,
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
},
"meta": {
"requestId": "<string>"
}
}{
"ok": false,
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
},
"meta": {
"requestId": "<string>"
}
}{
"ok": false,
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
},
"meta": {
"requestId": "<string>"
}
}Update settings section
Update one safe chatbot settings section.
Required scope: settings:write.
On success, data contains: section, settings.
curl --request PATCH \
--url https://sitegpt.ai/api/v2/chatbots/{chatbotId}/settings/{section} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"description": "<string>",
"supportEmail": "jsmith@example.com",
"disableSmartFollowUpPrompts": true,
"smartFollowUpPromptsCount": 3,
"disableLeadNotifications": true,
"enablePageContextAwareness": true,
"emailConversationToVisitor": true,
"rateLimits": {
"thread": {
"enabled": true,
"maxMessages": 500
}
},
"allowedDomains": [
"<string>"
],
"excludedPaths": [
"<string>"
]
}
'import requests
url = "https://sitegpt.ai/api/v2/chatbots/{chatbotId}/settings/{section}"
payload = {
"description": "<string>",
"supportEmail": "jsmith@example.com",
"disableSmartFollowUpPrompts": True,
"smartFollowUpPromptsCount": 3,
"disableLeadNotifications": True,
"enablePageContextAwareness": True,
"emailConversationToVisitor": True,
"rateLimits": { "thread": {
"enabled": True,
"maxMessages": 500
} },
"allowedDomains": ["<string>"],
"excludedPaths": ["<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({
description: '<string>',
supportEmail: 'jsmith@example.com',
disableSmartFollowUpPrompts: true,
smartFollowUpPromptsCount: 3,
disableLeadNotifications: true,
enablePageContextAwareness: true,
emailConversationToVisitor: true,
rateLimits: {thread: {enabled: true, maxMessages: 500}},
allowedDomains: ['<string>'],
excludedPaths: ['<string>']
})
};
fetch('https://sitegpt.ai/api/v2/chatbots/{chatbotId}/settings/{section}', 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://sitegpt.ai/api/v2/chatbots/{chatbotId}/settings/{section}",
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([
'description' => '<string>',
'supportEmail' => 'jsmith@example.com',
'disableSmartFollowUpPrompts' => true,
'smartFollowUpPromptsCount' => 3,
'disableLeadNotifications' => true,
'enablePageContextAwareness' => true,
'emailConversationToVisitor' => true,
'rateLimits' => [
'thread' => [
'enabled' => true,
'maxMessages' => 500
]
],
'allowedDomains' => [
'<string>'
],
'excludedPaths' => [
'<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://sitegpt.ai/api/v2/chatbots/{chatbotId}/settings/{section}"
payload := strings.NewReader("{\n \"description\": \"<string>\",\n \"supportEmail\": \"jsmith@example.com\",\n \"disableSmartFollowUpPrompts\": true,\n \"smartFollowUpPromptsCount\": 3,\n \"disableLeadNotifications\": true,\n \"enablePageContextAwareness\": true,\n \"emailConversationToVisitor\": true,\n \"rateLimits\": {\n \"thread\": {\n \"enabled\": true,\n \"maxMessages\": 500\n }\n },\n \"allowedDomains\": [\n \"<string>\"\n ],\n \"excludedPaths\": [\n \"<string>\"\n ]\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://sitegpt.ai/api/v2/chatbots/{chatbotId}/settings/{section}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"description\": \"<string>\",\n \"supportEmail\": \"jsmith@example.com\",\n \"disableSmartFollowUpPrompts\": true,\n \"smartFollowUpPromptsCount\": 3,\n \"disableLeadNotifications\": true,\n \"enablePageContextAwareness\": true,\n \"emailConversationToVisitor\": true,\n \"rateLimits\": {\n \"thread\": {\n \"enabled\": true,\n \"maxMessages\": 500\n }\n },\n \"allowedDomains\": [\n \"<string>\"\n ],\n \"excludedPaths\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sitegpt.ai/api/v2/chatbots/{chatbotId}/settings/{section}")
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 \"description\": \"<string>\",\n \"supportEmail\": \"jsmith@example.com\",\n \"disableSmartFollowUpPrompts\": true,\n \"smartFollowUpPromptsCount\": 3,\n \"disableLeadNotifications\": true,\n \"enablePageContextAwareness\": true,\n \"emailConversationToVisitor\": true,\n \"rateLimits\": {\n \"thread\": {\n \"enabled\": true,\n \"maxMessages\": 500\n }\n },\n \"allowedDomains\": [\n \"<string>\"\n ],\n \"excludedPaths\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"ok": true,
"data": {
"section": "general",
"settings": {
"title": "Example chatbot"
}
},
"meta": {
"requestId": "request-id"
}
}{
"ok": false,
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
},
"meta": {
"requestId": "<string>"
}
}{
"ok": false,
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
},
"meta": {
"requestId": "<string>"
}
}{
"ok": false,
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
},
"meta": {
"requestId": "<string>"
}
}{
"ok": false,
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
},
"meta": {
"requestId": "<string>"
}
}{
"ok": false,
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
},
"meta": {
"requestId": "<string>"
}
}Authorizations
Path Parameters
Body
- Option 1
- Option 2
- Option 3
- Option 4
- Option 5
- Option 6
- Option 7
- Option 8
Partial patch of the section the path names: the fields of its Settings schema (for example SettingsGeneral for /settings/general). Only public dashboard settings accepted by API v2 can be changed. You can send back a section as you read it with one field changed: a field sent as read is never refused, and a setting the chatbot owner’s plan does not include stays as saved. A field GET returns only for reading is never saved; a warning says so when the value sent differs. A write that changes nothing that is saved saves nothing and returns a warning.
Shows visitors an "Email me this conversation" button in the widget. Default: false. A HIPAA chatbot cannot turn it on: the write is refused with 403 HIPAA_CONVERSATION_EMAIL_DISABLED. Neither can a chatbot whose account deletes conversations on an agreed schedule: 403 RETENTION_CONVERSATION_EMAIL_DISABLED.
Was this page helpful?