# 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](/docs/api-reference/v2/conversations/list-conversations). ```http POST https://api.qwryai.com/public/v1/tools/query_conversations ``` ## Authentication Send your API key as `Authorization: Bearer YOUR_API_KEY`. The key needs **Manage conversations and helpdesk**. See [Authentication](/docs/api-reference/v2/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](/docs/api-reference/v2/conversations/list-conversations) for each filter and the response fields. ## Request example ```bash 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 }' ``` > [!NOTE] > > The list doesn't include messages. For one conversation's messages, call `get_conversation_detail` with its `_id`; see [Get a conversation](/docs/api-reference/v2/conversations/get-a-conversation). The response holds `items`, `total`, `page` and `hasMore`. Raise `page` until `hasMore` is `false`; see [Pagination](/docs/api-reference/v2/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](/docs/api-reference/v2/error-handling) for authentication and rate-limit errors.