Update chatbot settings
PATCH/v1/chatbots/{chatbotId}/settings
Change the visibility, initial messages and suggested messages of a chatbot with the legacy v1 API.
Working draft. These docs are illustrative: names, endpoints and examples describe the intended behaviour and can change before launch.
Changes the settings of a chatbot: who can open it, the greeting it shows and the suggested messages. Call it when you manage these from your own tooling.
Request
PATCH /v1/chatbots/{chatbotId}/settings
Path parameters:
| Name | Type | Required | Description |
|---|---|---|---|
chatbotId |
string | Yes | The ID of the chatbot, starting with agt_. |
Body fields. Send only the ones you want to change:
| Name | Type | Required | Description |
|---|---|---|---|
visibility |
string | No | public or private. A private chatbot is not reachable from public pages. |
initialMessages |
array of strings | No | Messages the chatbot shows when a chat opens. |
suggestedMessages |
array of strings | No | Starter questions shown as buttons. |
Arrays replace the stored list in full. To remove all suggested messages, send an empty array. Learn how the messages look to visitors in Suggested messages.
Example request
curl -X PATCH https://api.askocto.co/v1/chatbots/agt_8f3k2m/settings \
-H "Authorization: Bearer $OCTO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"visibility": "public",
"initialMessages": ["Hi, how can I help?"],
"suggestedMessages": ["Where is my order?", "How do returns work?"]
}'
const response = await fetch("https://api.askocto.co/v1/chatbots/agt_8f3k2m/settings", {
method: "PATCH",
headers: {
Authorization: `Bearer ${process.env.OCTO_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
visibility: "public",
initialMessages: ["Hi, how can I help?"],
suggestedMessages: ["Where is my order?", "How do returns work?"],
}),
})
console.log(await response.json())
Example response
A successful call returns 200 OK.
{
"chatbotId": "agt_8f3k2m",
"settings": {
"visibility": "public",
"initialMessages": ["Hi, how can I help?"],
"suggestedMessages": ["Where is my order?", "How do returns work?"]
},
"updatedAt": "2026-03-21T08:15:00Z"
}
Response fields
| Name | Type | Description |
|---|---|---|
chatbotId |
string | The chatbot that was changed. |
settings |
object | All settings after the change, including the ones you did not send. |
updatedAt |
string | ISO 8601 UTC time of the change. |
In v2, settings are part of the agent. See Update agent.
Errors
| Status | Code | When |
|---|---|---|
| 400 | invalid_request |
visibility is not public or private, or a message list holds something other than strings. |
| 401 | unauthorized |
The API key is missing, malformed or revoked. |
| 404 | not_found |
No chatbot with this ID exists in your workspace. |
| 429 | rate_limited |
Too many requests. Wait for the number of seconds in the Retry-After header. |