Endpoints
Get conversations for a chatbot
List an agent's conversations in a date range with the query_conversations tool
API v1 has no conversations endpoint. List an agent's conversations with the Tools API's query_conversations tool: 20 per page, newest first, from every channel, with each conversation's AI summary. Read a conversation's messages with get_conversation_detail. The full reference is List conversations.
https://api.qwryai.com/public/v1/tools/query_conversationsAuthentication
Send your API key as Authorization: Bearer YOUR_API_KEY. The key needs Manage conversations and helpdesk. See Authentication.
Body parameters
| Name | Type | Required | Description |
|---|---|---|---|
chatbotId | string | Yes | The agent's id, from list_agents. |
startDate | string | Yes | First creation day, YYYY-MM-DD (UTC). |
endDate | string | Yes | Last creation day, YYYY-MM-DD (UTC). The range can span at most 184 days. |
page | integer | Yes | Page number, starting at 1. |
sources | array | No | Only these channels, as get_conversation_facets names them. |
The tool also filters by topics, sentiment, activity state, feedback, contact and escalation. See List conversations for each filter and the response fields.
Request example
curl -X POST 'https://api.qwryai.com/public/v1/tools/query_conversations' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"chatbotId": "YOUR_AGENT_ID",
"startDate": "2026-11-01",
"endDate": "2026-11-30",
"page": 1
}'The response holds items, total, page and hasMore. Raise page until hasMore is false; see Pagination.
Errors
| HTTP status | code | When |
|---|---|---|
| 400 | INVALID_ARGUMENTS | A date, page or filter is missing or badly written. |
| 403 | INSUFFICIENT_PERMISSION | The key doesn't hold Manage conversations and helpdesk. |
| 409 | VALIDATION_INVALID_BODY | The range is over 184 days or endDate is before startDate. |
See Error Handling for authentication and rate-limit errors.