Skip to main content

Search Conversations

GET 

/accounts/:account_id/conversations/search

Returns conversations that have an incoming or outgoing message whose text contains the search text (case-insensitive).

The search text is the q parameter. You can narrow the search with the filters of List Conversations (status, inbox_id, …).

SettingValue
MethodGET
Path/api/v1/accounts/{account_id}/conversations/search
AuthorizationUser token.

Permissions:

  • User token: any agent of the account. Only the conversations the caller may see are returned — see Who can see a conversation.
  • Agent-bot token: not allowed.

Path parameters

NameTypeRequiredDescription
account_idintegerYesAccount ID.

Query parameters

NameTypeRequiredDescription
qstringYesText to search for in message content.
pageintegerNoPage number (25 per page).
OtherNoAny filter of List Conversations (status, inbox_id, ...).

Example request

curl -X GET 'https://online.99digital.co.il/api/v1/accounts/12/conversations/search?q=where%20is%20my%20order&page=1' \
-H 'api_access_token: <YOUR_API_ACCESS_TOKEN>'

Example response (200 OK): {"meta": {...same counts as in List Conversations...}, "payload": [ ...conversation objects... ]}. Here it returned one conversation, 1501. Unlike List Conversations, the response is not wrapped in data: meta and payload are at the top level. The conversation is shortened; each item is a full conversation object.

{
"meta": {
"mine_count": 0,
"new_count": 1,
"assigned_count": 0,
"unassigned_count": 1,
"all_count": 1,
"active_status_count": 1,
"resolved_status_count": 0,
"pending_status_count": 0,
"snoozed_status_count": 0,
"all_status_count": 1,
"last_page": true,
"total": 1
},
"payload": [
{
"id": 1501,
"inbox_id": 31,
"status": "open",
"priority": null,
"labels": ["vip"],
"unread_count": 1,
"last_activity_at": 1794471300
}
]
}

Remarks​

  • The same GET URL under /conversations can be called at most 10 times per minute from one IP address; above that the answer is 429. See Rate limits.

Request​

Responses​

The matching conversations on this page, and the counts.