Legacy Dev Forum Posts

 View Only

Sign Up

/api/v2/analytics/conversations/details/query participantName

  • 1.  /api/v2/analytics/conversations/details/query participantName

    Posted 06-05-2025 18:21

    Hampus_Nygren | 2022-03-29 05:58:26 UTC | #1

    Hi,

    I'm creating a new agent script on which I would like to show latest 10 interaction for the customer who contacts us. For this i'm trying to utlize the /api/v2/analytics/conversations/details/query endpoint and would like to end up with something like this which can be used in a markup field.

    { "mediaTypes": "chat", "mail", "participantNames": [ "[agent.1@example.com, agent.2@example.com", "agent.2@example.com" ], "conversationStarts": [ "2022-02-28 16:36", "2022-02-28 08:36" ], "conversationEnds": [ "2022-02-28 16:37", "2022-02-28 10:04" ] }

    The problem that I see is that rarly see the participantName of the agent which handled the interaction, instead only userId. Is there anything I'm missning or is there a easy way of translate the userID to participantName?


    anon11147534 | 2022-03-29 15:55:15 UTC | #2

    Hi,

    You can use https://developer.genesys.cloud/api/rest/v2/users/#get-api-v2-users--userId- to get a user by ID.


    Hampus_Nygren | 2022-04-01 07:56:22 UTC | #3

    Ok, thank you, I will check it out!


    system | 2022-05-02 07:57:13 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: 14063