Get conversations for a chatbot
GET/v1/chatbots/{chatbotId}/conversations
List the conversations of a chatbot with the legacy v1 API, filtered by status, channel, user or date range, one page at a time.
Working draft. These docs are illustrative: names, endpoints and examples describe the intended behaviour and can change before launch.
Returns the conversations of a chatbot, newest first. Call it to feed a report, sync conversations to a data warehouse, or find the conversations that were handed to your team.
Request
GET /v1/chatbots/{chatbotId}/conversations
Path parameters:
| Name | Type | Required | Description |
|---|---|---|---|
chatbotId |
string | Yes | The ID of the chatbot, starting with agt_. |
Query parameters:
| Name | Type | Required | Description |
|---|---|---|---|
page |
integer | No | Page number, starting at 1. Defaults to 1. |
size |
integer | No | Number of conversations per page. Defaults to 20. |
status |
string | No | open, resolved or handoff. |
channel |
string | No | Return only conversations from one channel, for example widget or whatsapp. |
userId |
string | No | Return only conversations of this user, starting with usr_. |
from |
string | No | Only conversations created at or after this ISO 8601 UTC time. |
to |
string | No | Only conversations created before this ISO 8601 UTC time. |
Combine filters to narrow the list, for example status=handoff with a from date to see what your team had to pick up this week. The messages of a conversation are not part of this list. The shared v1 conventions are in the v1 overview.
Note: In v2 this is List conversations, with cursor pagination.
Example request
curl "https://api.askocto.co/v1/chatbots/agt_8f3k2m/conversations?status=handoff&size=20" \
-H "Authorization: Bearer $OCTO_API_KEY"
const url = new URL("https://api.askocto.co/v1/chatbots/agt_8f3k2m/conversations")
url.searchParams.set("status", "handoff")
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} of ${total} conversations`)
Example response
A successful call returns 200 OK.
{
"data": [
{
"id": "conv_5n2p8w",
"chatbotId": "agt_8f3k2m",
"userId": "usr_3b6t0z",
"channel": "widget",
"status": "handoff",
"messageCount": 6,
"createdAt": "2026-03-20T13:58:00Z",
"updatedAt": "2026-03-20T14:05:00Z"
},
{
"id": "conv_8h4v1y",
"chatbotId": "agt_8f3k2m",
"userId": "usr_6k9d2r",
"channel": "whatsapp",
"status": "handoff",
"messageCount": 9,
"createdAt": "2026-03-19T09:12:00Z",
"updatedAt": "2026-03-19T09:31:00Z"
}
],
"page": 1,
"size": 20,
"total": 2
}
Response fields
| Name | Type | Description |
|---|---|---|
data |
array | The conversations on this page. |
data[].id |
string | The conversation ID, starting with conv_. |
data[].chatbotId |
string | The chatbot that handled it. v2 calls this field agentId. |
data[].status |
string | open, resolved or handoff. |
page, size, total |
integer | Paging details, as in all v1 lists. |
Errors
| Status | Code | When |
|---|---|---|
| 400 | invalid_request |
A filter has an unknown value, or from or to is not an ISO 8601 time. |
| 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. |