Skip to content
QwryAI
Documentation
Pages

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.

POSThttps://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.

Body parameters

NameTypeRequiredDescription
chatbotIdstringYesThe agent's id, from list_agents.
startDatestringYesFirst creation day, YYYY-MM-DD (UTC).
endDatestringYesLast creation day, YYYY-MM-DD (UTC). The range can span at most 184 days.
pageintegerYesPage number, starting at 1.
sourcesarrayNoOnly 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

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
  }'

The response holds items, total, page and hasMore. Raise page until hasMore is false; see Pagination.

Errors

HTTP statuscodeWhen
400INVALID_ARGUMENTSA date, page or filter is missing or badly written.
403INSUFFICIENT_PERMISSIONThe key doesn't hold Manage conversations and helpdesk.
409VALIDATION_INVALID_BODYThe range is over 184 days or endDate is before startDate.

See Error Handling for authentication and rate-limit errors.

Explore the documentation