Communication ID for Message Interactions

In the past I have been told that the communcationID is the sessionId for the first customer participant in a interaction, this has worked for pulling transcripts for voice interactions but I am seeing this is not the case for our digital interactions.

In some conversations I see the sessionId of the customer participant being used as anticipated, and others I see that the peerId (sessionId of another participant) being used instead.

If I want to pull the correct communicationID for our sms interactions what logic should I apply to know when to I should refer to the peerid of the customer participant instead of the sessionId and vice versa?

Thank you.

Hi @MLuong
The alternative to using the sessionId would be to use the id of any of the objects in the "messages" array within the "participants" array in the response to GET /api/v2/conversations/{conversationId}. I think this will eliminate any discrepancy between "peerId" and "sessionId"

Thank you Jacob this answers my question!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.