Legacy Dev Forum Posts

 View Only

Sign Up

How to tell if Conversation returned from ConversationApi api/v2/conversations is a voice call?

  • 1.  How to tell if Conversation returned from ConversationApi api/v2/conversations is a voice call?

    Posted 06-05-2025 18:22

    Skyler_Keough | 2022-07-06 14:48:37 UTC | #1

    Hello,

    I am using https://developer.genesys.cloud/devapps/api-explorer#get-api-v2-conversations and I am getting a list of all the users conversations back. I want to loop through the list of conversations and only pull out the voice conversations. I am not seeing anything on the conversation object (in c#) that determines if its a voice call, an email, etc. I could potentially use the address field, but I believe trying to parse out a valid voice call address may be difficult due to all the possible types of calls and addresses. Does anyone have any advice?

    Thank you,

    Skyler


    Eos_Rios | 2022-07-06 15:23:06 UTC | #2

    A conversation may contain multiple media types. The media type is found within the segment.

    Conversation -> Participant -> Session -> Segment -> Media Type

    From that specific API you can apply the communicationType filter and only bring back Calls though;

    GET /api/v2/conversations?communicationType=Call


    system | 2022-08-06 15:11:57 UTC | #3

    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: 15407