What is the logic to create a conversation URL from the fields returned in the Intercom conversations API? | Community
Skip to main content
Answered

What is the logic to create a conversation URL from the fields returned in the Intercom conversations API?

  • August 31, 2022
  • 1 reply
  • 450 views

I have an Intercom app, and I am pulling conversations in to my local storage for my customers to run additional analysis on. I want to be able to link them back to the original conversation in their Intercom dashboard.

 

I can't find documentation on the logic to construct a link back to the conversation. Can anyone help me find the right logic?

Best answer by Milan

In the URL of the conversation you have something like this:

https://app.intercom.com/a/inbox/b>[your_intercom_app_id]/inbox/shared/all/conversation/[conversation_id]

 

conversation_id should be the id you get when working with Intercom API and its Conversation model:

https://developers.intercom.com/intercom-api-reference/reference/conversation-model(the second parameter, after "type": "conversation" in the JSON response you get).

 

 

1 reply

Milan
Top Expert ✨
Forum|alt.badge.img+7
  • Top Expert
  • Answer
  • August 31, 2022

In the URL of the conversation you have something like this:

https://app.intercom.com/a/inbox/b>[your_intercom_app_id]/inbox/shared/all/conversation/[conversation_id]

 

conversation_id should be the id you get when working with Intercom API and its Conversation model:

https://developers.intercom.com/intercom-api-reference/reference/conversation-model(the second parameter, after "type": "conversation" in the JSON response you get).