Answered

Output when creating a conversation

  • 27 April 2021
  • 3 replies
  • 21 views

The documentation for Creating a Conversation (sample response below) says that the ID representing the conversation is returned as a response. (conversation_id). However, when testing this, I'm only seeing the ID of the specific message - rather than the conversation_id of the conversation.... only type through message are returned.

 

HTTP/1.1 200 OK

{

"type": "user_message",

"id": "2001",

"created_at": 1401917202,

"body" : "Hey, is the new thing in stock?",

"message_type": "inapp",

"conversation_id": "36000324324"

}

 

How can I find the ID of the conversation?

 

 

icon

Best answer by Roy 27 April 2021, 09:26

View original

3 replies

Userlevel 1
Badge

Hello @kevin g11​ , "conversation_id": "36000324324" this should be a Conversation ID.

 

Example:

{

  "type": "user_message",

  "id": "824004685",

  "created_at": 1619507956,

  "body": "Hello",

  "message_type": "inapp",

  "conversation_id": "298"

}

 

Intercom

Hi Roy - thanks for getting back to me. I should have clarified:

The response is NOT including conversation_id as a parameter. (We're also using a intermediary called tray.io - rather than interacting with intercom's apis directly.)

 

Userlevel 1
Badge

@kevin g11​ , I'm not familiar with Tray.io, I tried to open a trial account but afraid it's not available.

 

With Intercom API, it's working fine. The best way here will be to contact Tray.io support about this issue.

 

I hope this will be helpful.

Reply