Get all chatbots

GET/v1/chatbots

List the chatbots in your workspace with the legacy v1 API, one page at a time, using the page and size parameters.

Working draft. These docs are illustrative: names, endpoints and examples describe the intended behaviour and can change before launch.

Returns the chatbots in your workspace. Call it to find a chatbotId, or to sync the list of chatbots with another system.

Request

GET /v1/chatbots

Query parameters:

Name Type Required Description
page integer No Page number, starting at 1. Defaults to 1.
size integer No Number of chatbots per page. Defaults to 20.

Every chatbot of the workspace is returned, whatever its type or status. Use the id of a chatbot in calls such as Chat with a chatbot.

v1 uses page numbers. v2 uses cursors, see Pagination and List agents.

Example request

curl "https://api.askocto.co/v1/chatbots?page=1&size=20" \
  -H "Authorization: Bearer $OCTO_API_KEY"
const url = new URL("https://api.askocto.co/v1/chatbots")
url.searchParams.set("page", "1")
url.searchParams.set("size", "20")

const response = await fetch(url, {
  headers: { Authorization: `Bearer ${process.env.OCTO_API_KEY}` },
})

const { data, total } = await response.json()
console.log(`${data.length} chatbots on this page, ${total} in total`)

Example response

A successful call returns 200 OK.

{
  "data": [
    {
      "id": "agt_8f3k2m",
      "name": "Store support",
      "type": "support",
      "status": "live",
      "model": "octo-balanced",
      "instructions": "Answer questions about orders, shipping and returns.",
      "language": "en",
      "createdAt": "2026-03-14T09:30:00Z",
      "updatedAt": "2026-03-20T14:05:00Z",
      "settings": {
        "visibility": "public",
        "initialMessages": ["Hi, how can I help?"],
        "suggestedMessages": ["Where is my order?"]
      }
    },
    {
      "id": "agt_2q7w5n",
      "name": "Sales assistant",
      "type": "sales",
      "status": "draft",
      "model": "octo-balanced",
      "instructions": "Help visitors pick the right plan.",
      "language": "en",
      "createdAt": "2026-03-18T11:00:00Z",
      "updatedAt": "2026-03-18T11:00:00Z",
      "settings": {
        "visibility": "private",
        "initialMessages": [],
        "suggestedMessages": []
      }
    }
  ],
  "page": 1,
  "size": 20,
  "total": 2
}

Response fields

Name Type Description
data array The chatbots on this page.
data[].id string The chatbot ID, starting with agt_.
data[].type string support, sales or guidance.
data[].status string draft or live.
data[].settings object visibility, initialMessages and suggestedMessages.
page integer The page you asked for.
size integer The page size in use.
total integer How many chatbots exist in the workspace.

When data is empty, you are past the last page.

Errors

Status Code When
400 invalid_request page or size is not a positive integer.
401 unauthorized The API key is missing, malformed or revoked.
429 rate_limited Too many requests. Wait for the number of seconds in the Retry-After header.

Something unclear or missing? Tell us and we will fix the page.