curl --request GET \
--url https://services.leadconnectorhq.com/conversations/search \
--header 'Authorization: Bearer <token>' \
--header 'Version: <version>'{
"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",
"email": "johndoe@mailingdomain.com",
"phone": "+15550001234"
}
],
"total": 100
}Returns a list of all conversations matching the search criteria along with the sort and filter options selected.
curl --request GET \
--url https://services.leadconnectorhq.com/conversations/search \
--header 'Authorization: Bearer <token>' \
--header 'Version: <version>'{
"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",
"email": "johndoe@mailingdomain.com",
"phone": "+15550001234"
}
],
"total": 100
}Use the Access Token generated with user type as Sub-Account (OR) Private Integration Token of Sub-Account.
API Version
2021-04-15 Location Id
"ABCHkzuJQ8ZMd4Te84GK"
Contact Id
"9VEmS0si86GW6gXWU89b"
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.
"ABCHkzuJQ8ZMd4Te84GK,fGiae4CHkzoskh8thsik"
User IDs of followers to filter conversations by. Multiple IDs can be provided as comma-separated values.
"ABCHkzuJQ8ZMd4Te84GK,fGiae4CHkzoskh8thsik"
User Id of the mention. Multiple values are comma separated.
"ABCHkzuJQ8ZMd4Te84GK,fGiae4CHkzoskh8thsik"
Search paramater as a string
"Search string"
Sort paramater - asc or desc
asc, desc "asc"
Search to begin after the specified date - should contain the sort value of the last document
Show child attributes
Id of the conversation
"ABCHkzuJQ8ZMd4Te84GK"
Limit of conversations - Default is 20
20
Type of the last message in the conversation as a string
TYPE_CALL, TYPE_SMS, TYPE_EMAIL, TYPE_SMS_REVIEW_REQUEST, TYPE_WEBCHAT, TYPE_SMS_NO_SHOW_REQUEST, TYPE_CAMPAIGN_SMS, TYPE_CAMPAIGN_CALL, TYPE_CAMPAIGN_EMAIL, TYPE_CAMPAIGN_VOICEMAIL, TYPE_FACEBOOK, TYPE_CAMPAIGN_FACEBOOK, TYPE_CAMPAIGN_MANUAL_CALL, TYPE_CAMPAIGN_MANUAL_SMS, TYPE_GMB, TYPE_CAMPAIGN_GMB, TYPE_REVIEW, TYPE_INSTAGRAM, TYPE_WHATSAPP, TYPE_CUSTOM_SMS, TYPE_CUSTOM_EMAIL, TYPE_CUSTOM_PROVIDER_SMS, TYPE_CUSTOM_PROVIDER_EMAIL, TYPE_IVR_CALL, TYPE_ACTIVITY_CONTACT, TYPE_ACTIVITY_INVOICE, TYPE_ACTIVITY_PAYMENT, TYPE_ACTIVITY_OPPORTUNITY, TYPE_LIVE_CHAT, TYPE_LIVE_CHAT_INFO_MESSAGE, TYPE_ACTIVITY_APPOINTMENT, TYPE_FACEBOOK_COMMENT, TYPE_INSTAGRAM_COMMENT, TYPE_CUSTOM_CALL, TYPE_INTERNAL_COMMENT, TYPE_ACTIVITY_EMPLOYEE_ACTION_LOG "TYPE_SMS"
Action of the last outbound message in the conversation as string.
automated, manual "manual"
Direction of the last message in the conversation as string.
inbound, outbound "inbound"
The status of the conversation to be filtered - all, read, unread, starred
all, read, unread, starred, recents "all"
The sorting of the conversation to be filtered as - manual messages or all messages
last_manual_message_date, last_message_date, score_profile "last_message_date"
Id of score profile on which sortBy.ScoreProfile should sort on
"ABCHkzuJQ8ZMd4Te84GK"
Id of score profile on which conversations should get filtered out, works with scoreProfileMin & scoreProfileMax
"ABCHkzuJQ8ZMd4Te84GK"
Minimum value for score
"ABCHkzuJQ8ZMd4Te84GK"
Maximum value for score
"ABCHkzuJQ8ZMd4Te84GK"
Was this page helpful?