Search Conversations
GET/conversations/search
Returns a list of all conversations matching the search criteria along with the sort and filter options selected.
Request
API Version
2021-04-15Location Id
Contact Id
User IDs that conversations are assigned to. Multiple IDs can be provided as comma-separated values. Use "unassigned" to fetch conversations not assigned to any user.
User IDs of followers to filter conversations by. Multiple IDs can be provided as comma-separated values.
User Id of the mention. Multiple values are comma separated.
Search paramater as a string
Sort paramater - asc or desc
ascdescSearch to begin after the specified date - should contain the sort value of the last document
Id of the conversation
Limit of conversations - Default is 20
Type of the last message in the conversation as a string
TYPE_CALLTYPE_SMSTYPE_EMAILTYPE_SMS_REVIEW_REQUESTTYPE_WEBCHATTYPE_SMS_NO_SHOW_REQUESTTYPE_CAMPAIGN_SMSTYPE_CAMPAIGN_CALLTYPE_CAMPAIGN_EMAILTYPE_CAMPAIGN_VOICEMAILTYPE_FACEBOOKTYPE_CAMPAIGN_FACEBOOKAction of the last outbound message in the conversation as string.
automatedmanualDirection of the last message in the conversation as string.
inboundoutboundThe status of the conversation to be filtered - all, read, unread, starred
allreadunreadstarredrecentsThe sorting of the conversation to be filtered as - manual messages or all messages
last_manual_message_datelast_message_datescore_profileId of score profile on which sortBy.ScoreProfile should sort on
Id of score profile on which conversations should get filtered out, works with scoreProfileMin & scoreProfileMax
Minimum value for score
Maximum value for score
Successfully fetched the conversations
- application/json
- Schema
- Example (auto)
Schema
The list of all conversations found for the given query
Total Number of results found for the given query
{
"conversations": [
{
"id": "ABCHkzuJQ8ZMd4Te84GK",
"contactId": "ABCHkzuJQ8ZMd4Te84GK",
"locationId": "ABCHkzuJQ8ZMd4Te84GK",
"lastMessageBody": "This is a sample message body",
"lastMessageType": "TYPE_SMS",
"type": "TYPE_PHONE",
"unreadCount": 1,
"fullName": "John Doe",
"contactName": "John Doe Company",
"phone": "+15550001234"
}
],
"total": 100
}