Answered

How do I get conversations of a contact?

  • 3 February 2021
  • 3 replies
  • 95 views

How do I get conversations of a contact? There are methods for getting all conversations and all contacts? Should I loop through all conversations to filter the ones that belong to a given contact?

icon

Best answer by Roy 3 February 2021, 19:34

View original

3 replies

Userlevel 1
Badge

Hello @user876​ ,

Q - How do I get conversations of a contact?

A - You want to get conversations from the Intercom app or via API?

 

From Intercom App:

  1. You can open a contact profile to see all conversations
  2. You can use the search option:

Inbox _ Platform Test _ Intercom (3)Let me know if you want to get conversations via API to provide further instructions.

 

via API

Userlevel 1
Badge

@user876​ , In this case, you should use Conversation Search API.

 

Sending post request to "https://api.intercom.io/conversations/search/b>"

Request:

======================

{

 "query": {

  "field": "contact_ids",

  "operator": "=",

  "value": "Intercom Contact ID"

 }

}

======================

🦄 I hope this will be helpful, Let me know if you have any further questions.

Reply