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, …).
| Setting | Value |
|---|---|
| Method | GET |
| Path | /api/v1/accounts/{account_id}/conversations/search |
| Authorization | User 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
| Name | Type | Required | Description |
|---|---|---|---|
account_id | integer | Yes | Account ID. |
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
q | string | Yes | Text to search for in message content. |
page | integer | No | Page number (25 per page). |
| Other | No | Any 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
GETURL under/conversationscan be called at most 10 times per minute from one IP address; above that the answer is429. See Rate limits.
Request
Responses
- 200
- 401
- 403
- 429
The matching 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.