Skip to main content

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.

SettingValue
MethodGET
Path/api/v1/accounts/{account_id}/conversations
AuthorizationUser 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

NameTypeRequiredDescription
account_idintegerYesAccount ID.

Query parameters

NameTypeRequiredDescription
statusstringNoopen (Bot), pending (Manual), snoozed, resolved, !resolved (open + pending) or all. If omitted, all statuses are returned.
assignee_typestringNome (assigned to the caller), unassigned, assigned, new (conversations with unread incoming messages), or all / omitted.
inbox_idintegerNoOnly this inbox.
team_idintegerNoOnly conversations of this team.
labels[]string[]NoConversations with any of these labels.
source_idstringNoOnly conversations of the contact inbox with this source ID (e.g. a phone number in a WhatsApp inbox).
conversation_typestringNomention (the caller was @mentioned; also marks those mentions as read), participating (the caller is a participant), unattended.
qstringNoText that must appear in an incoming/outgoing message (same as Search Conversations).
sort_bystringNolast_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.
pageintegerNoPage number (25 per page). Default 1.
Rate limit

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

FieldDescription
mine_count, assigned_count, unassigned_count, all_countCounts for the assignee tabs, using all filters except assignee_type.
new_countConversations with unread incoming messages.
active_status_count, resolved_status_count, pending_status_count, snoozed_status_count, all_status_countCounts by status. active = open + pending.
last_pagetrue on the last page.
totalNumber of items on this page — not the total number of matches. Page until last_page is true.

Remarks​

  • Each item in payload is a full conversation object. messages holds only the last message; use List of Messages for the history.
  • The status names differ from the dashboard: open is Bot and pending is Manual. See Statuses.

Request​

Responses​

The conversations on this page, and the counts.