List Conversations
GET/accounts/:account_id/conversations
Returns conversations visible to the caller, 25 per page, sorted by last activity (pinned conversations first).
The response holds the conversations in data.payload and the counts for
the dashboard tabs in data.meta. Narrow the list with the query parameters
below; they can be combined. To get only the counts, use
Conversation Counts. To find
conversations by message text, use q here or
Search Conversations; for
conditions on any attribute, use
Filter Conversations.
| Setting | Value |
|---|---|
| Method | GET |
| Path | /api/v1/accounts/{account_id}/conversations |
| Authorization | User token (see Who can see a conversation). |
Permissions:
- User token: any agent of the account. Only the conversations the caller may see are returned.
- Agent-bot token: not allowed.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
account_id | integer | Yes | Account ID. |
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
status | string | No | open (Bot), pending (Manual), snoozed, resolved, !resolved (open + pending) or all. If omitted, all statuses are returned. |
assignee_type | string | No | me (assigned to the caller), unassigned, assigned, new (conversations with unread incoming messages), or all / omitted. |
inbox_id | integer | No | Only this inbox. |
team_id | integer | No | Only conversations of this team. |
labels[] | string[] | No | Conversations with any of these labels. |
source_id | string | No | Only conversations of the contact inbox with this source ID (e.g. a phone number in a WhatsApp inbox). |
conversation_type | string | No | mention (the caller was @mentioned; also marks those mentions as read), participating (the caller is a participant), unattended. |
q | string | No | Text that must appear in an incoming/outgoing message (same as Search Conversations). |
sort_by | string | No | last_activity_at_desc (default), last_activity_at_asc, created_at_desc, created_at_asc, priority_desc, priority_asc, waiting_since_desc, waiting_since_asc, snoozed_until_desc, snoozed_until_asc, latest. |
page | integer | No | Page number (25 per page). Default 1. |
The exact same GET URL under /conversations can be called at most 10
times per minute per IP. Above that you get 429. Polling
/conversations?status=open in a loop hits this limit quickly — use
webhook events instead.
Conversation Counts is not
limited this way. See Rate limits.
Example request
curl -X GET 'https://online.99digital.co.il/api/v1/accounts/12/conversations?inbox_id=31&status=all&assignee_type=all&page=1' \
-H 'api_access_token: <YOUR_API_ACCESS_TOKEN>'
Example response (200 OK). The conversations in payload are
shortened; each item is a full conversation object, as returned by
Get Conversation.
{
"data": {
"meta": {
"mine_count": 1,
"new_count": 1,
"assigned_count": 1,
"unassigned_count": 2,
"all_count": 3,
"active_status_count": 3,
"resolved_status_count": 0,
"pending_status_count": 1,
"snoozed_status_count": 0,
"all_status_count": 3,
"last_page": true,
"total": 3
},
"payload": [
{
"id": 1504,
"inbox_id": 31,
"status": "pending",
"priority": "high",
"labels": ["billing"],
"unread_count": 0,
"last_activity_at": 1794472200
},
{
"id": 1501,
"inbox_id": 31,
"status": "open",
"priority": null,
"labels": ["vip"],
"unread_count": 1,
"last_activity_at": 1794471300
},
{
"id": 1502,
"inbox_id": 31,
"status": "open",
"priority": null,
"labels": [],
"unread_count": 0,
"last_activity_at": 1794471060
}
]
}
}
Meta fields
| Field | Description |
|---|---|
mine_count, assigned_count, unassigned_count, all_count | Counts for the assignee tabs, using all filters except assignee_type. |
new_count | Conversations with unread incoming messages. |
active_status_count, resolved_status_count, pending_status_count, snoozed_status_count, all_status_count | Counts by status. active = open + pending. |
last_page | true on the last page. |
total | Number of items on this page — not the total number of matches. Page until last_page is true. |
Remarks
- Each item in
payloadis a full conversation object.messagesholds only the last message; use List of Messages for the history. - The status names differ from the dashboard:
openis Bot andpendingis Manual. See Statuses.
Request
Responses
- 200
- 401
- 403
- 429
The conversations on this page, and the counts.
The access token is missing or wrong, or its user does not belong to this account.
The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization.
The same URL was requested more than 10 times in a minute from this IP address. See Rate limits.