Legacy Dev Forum Posts

 View Only

Sign Up

How to find communicationid in a conversations

  • 1.  How to find communicationid in a conversations

    Posted 06-05-2025 18:22

    Rune_Schau | 2022-06-15 12:46:33 UTC | #1

    I'm trying to do a PUT /api/v2/externalcontacts/conversations/{conversationId} to associate a known external contact to a voice conversation.

    Among required parameters is 'communicationId'.

    I found an earlier post from 2017: https://developer.genesys.cloud/forum/t/what-does-communicationid-refer-to/2016.

    Here it says for voice conversations, you should see it as the ID under "calls." I cannot find "calls" in my conversations.

    I hope anyone can guide me in the correct direction :slight_smile:


    Jerome.Saint-Marc | 2022-06-21 12:24:04 UTC | #2

    Hello,

    The communicationId value to be used in the PUT /api/v2/externalcontacts/conversations/{conversationId} request to associate an external contact with a conversation corresponds to:

    • the "sessionId" attribute (session with mediaType = voice in the sessions array) of a customer's participant (purpose = customer)

    i.e. in the result of an analytics conversation details request with GET /api/v2/analytics/conversations/{conversationId}/details

    • the "id" attribute (in the calls array - the calls array which is at the participant structure/object level) of a customer's participant (purpose = customer)

    i.e. in the result of a conversation request with GET /api/v2/conversations/{conversationId}

    As you can notice, the "sessionId"s from the Analytics request (customer's participant - sessions array) correspond to the "id"s from the Conversation request (customer's participant - messages array). Same values.

    Regards,


    Rune_Schau | 2022-06-16 10:37:21 UTC | #3

    Thanks Jerome for the fast response :-) :slight_smile:.

    Now I am to associate an external contact to a voice conversation.

    Regards Rune


    system | 2022-07-17 10:37:35 UTC | #4

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


    This post was migrated from the old Developer Forum.

    ref: 15159