Skip to main content
Answered

The response of admin_initiated_message with create_conversation as true is missing "conversation_id" from response. "https://developers.intercom.com/intercom-api-reference/reference/admin-initiated-conversation".


I'm trying to send a new message using "https://developers.intercom.com/intercom-api-reference/reference/admin-initiated-conversation" api and i'm sending `create_conversation_without_contact_reply` key as true in the payload but the response received doesn't contain any conversation_id in it as described in api_documentation.

What i trying to do is to get the conversation_id and then instead of sending a new message every time, Send a message as reply to this conversation.

Am i missing something here? Or is there any work around available to handle my scenario?

Best answer by Lisa B11

Hey @user1784​ 👋

 

Where is it you are seeing "conversation ID" will be returned in our documentation? The conversation ID isn't returned, you would need to search for the contacts conversations using the Message ID returned in the call.

 

Image 2022-04-12 at 7.40.02 a.m.

View original
Did this topic help you find an answer to your question?

4 replies

Forum|alt.badge.img+5
  • Employee
  • 250 replies
  • Answer
  • April 12, 2022

Hey @user1784​ 👋

 

Where is it you are seeing "conversation ID" will be returned in our documentation? The conversation ID isn't returned, you would need to search for the contacts conversations using the Message ID returned in the call.

 

Image 2022-04-12 at 7.40.02 a.m.


  • Author
  • New Participant
  • 2 replies
  • April 12, 2022

Here in the message model, conversation_id is given when creating a new convo and i was sending the key "create_conversation_without_customer_reply" as true so i was expecting there would be a conversation_id in response. I've found a work around for it by searching for conversation by matching the "source.id" key to the returned newly created message id in response.

Screenshot 2022-04-12 at 12.57.43 PM


  • New Participant
  • 2 replies
  • June 21, 2022

Is this a bug, or is the documentation out of date? The documentation for Create a conversation says "This will return the Message model that has been created", and the Message model documentation says the the conversation_id is "Only returned when creating a conversation."

 

In any case, i'll use the same workaround as Grey Diamond.


  • New Participant
  • 2 replies
  • June 21, 2022

It turns out my API version was what was out of date. I needed to upgrade it to 2.5 in the app settings.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings