Conversation API returning wrong type of conversation part | Community
Skip to main content
Answered

Conversation API returning wrong type of conversation part

  • January 23, 2025
  • 5 replies
  • 222 views

Has anyone ever seen an issue with the conversations API returning the wrong type for a conversation part? I’m working with a customer and we’re seeing an issue where sometimes the API returns conversation parts with a type = “assignment” but it should be a “comment” or a “note”. I have an example I can share if that is helpful.

Best answer by Elijahstownton

Looks like the Intercom API is returning "assignment" as the conversation part type when it shouldn’t. Could be how the API handles certain events. Try logging the full payload to spot any patterns. Also, check Intercom’s docs on conversation parts—sometimes the types aren’t super intuitive.

5 replies

  • January 27, 2025

Hey Matthew! 

Shaq from the Support Engineering team! 😀

 

I’d like to take a closer look at this. Would you like to share that information here or would you want to create a ticket with us here in Support to review it closer? Let me know! 


  • Author
  • New Participant
  • January 27, 2025

Sure I can share it here. I’m working with our customer and one of their conversations you can see this message was sent:

But in the API the conversation part says it is type = assignment


Hello Shaq, any updates on this one? 

Thanks!


Forum|alt.badge.img+1
  • Active User
  • Answer
  • February 17, 2025

Looks like the Intercom API is returning "assignment" as the conversation part type when it shouldn’t. Could be how the API handles certain events. Try logging the full payload to spot any patterns. Also, check Intercom’s docs on conversation parts—sometimes the types aren’t super intuitive.


Nurit
Forum|alt.badge.img+2
  • Active User
  • February 17, 2025

I’ve noticed this happens in conversations where no teammate has been assigned before a comment is made, whether manually or automatically.
 When a teammate replies to a conversation that isn’t assigned to anyone, the system automatically assigns the conversation to that teammate. In the API response, these cases are marked as "assignment" type.