List Conversations
Retrieve a list of all conversations. In mock mode, returns sample conversation data.
GET https://developers.chatway.app/api/v1/conversations/allExample request
curl -G "https://developers.chatway.app/api/v1/conversations/all" \
-H "X-API-KEY: your_api_key" \
--data-urlencode "page=1"Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
limit | query | No | integer|null | |
page | query | No | integer|null | |
include_fields | query | No | string|null | Allowed: is_resolved, contact_id, unread_messages, latest_message, contact_name, agents, created_at. Example: `contact_name,is_resolved`. If both this and exclude_fields are sent, only include_fields is applied. |
exclude_fields | query | No | string|null | Allowed: is_resolved, contact_id, unread_messages, latest_message, contact_name, agents, created_at. Ignored when include_fields is also present (include takes precedence). |
Responses
200
application/json
data (array<object>, required)type (string, required)id (string, required)attributes (object, required)is_resolved (boolean, required)contact_id (string, required)unread_messages (integer, required)created_at (string|null, required)
meta (object, required)pagination (object, required)total (integer, required)count (integer, required)per_page (integer, required)current_page (integer, required)total_pages (integer, required)
links (object, required)self (string, required)first (string, required)next (string|null, required)last (string, required)
422
403
Pagination
Paginated list responses include data, meta.pagination, and links. Use the page and limit query parameters to walk results. Follow links.next until it is null, or increment page until current_page >= total_pages.
| Field | Description |
|---|---|
meta.pagination.total | Total records across all pages |
meta.pagination.count | Records returned on this page |
meta.pagination.per_page | Page size used for this response (matches limit) |
meta.pagination.current_page | Current page number (1-based) |
meta.pagination.total_pages | Total number of pages |
links.next | URL for the next page, or null on the last page |
links.first / links.last | First and last page URLs |
Examples
Response 200 example
{
"data": [
{
"type": "conversations",
"id": "0f46c0a1-8938-40e3-b2b5-bb56f569fcab",
"attributes": {
"is_resolved": false,
"contact_id": "9b0c5fe6-35ad-459d-b6ba-4288191f84f1",
"unread_messages": 0,
"created_at": "2026-02-04T10:30:00Z"
}
}
],
"meta": {
"pagination": {
"total": 10,
"count": 10,
"per_page": 10,
"current_page": 1,
"total_pages": 1
}
},
"links": {
"self": "self",
"first": "first",
"next": "next",
"last": "last"
}
}