Legacy Dev Forum Posts

 View Only

Sign Up

C# HttpRequest Get call history

  • 1.  C# HttpRequest Get call history

    Posted 06-05-2025 18:29

    corcoranj | 2024-01-18 09:46:53 UTC | #1

    Hi. In very new to Genesys and it's api. I'm a C# developer and trying to obtain all phone conversations for all users for the last 30 days. Thus far I've been able to create client credentials (oauth) and create a simple c# program that will connect and return an access token but that's about it. I plan on using HttpClient to make the request since I'm unable to get the .net sdk working..

    Could someone please point me to the correct endpoint to get this data and if possible a small example of how to make the rest call?

    Thanks


    IntegrationsRUs | 2024-01-18 14:48:52 UTC | #2

    Using the C# SDK make things so much easier so I highly suggest working to get that working. If you share the problem you are having, I can help you get that working.

    On the REST call for getting call conversations, here are some details which I built using the developer tools page. https://developer.genesys.cloud/devapps/api-explorer

    POST /api/v2/analytics/conversations/details/query HTTP/1.1
    {"segmentFilters":[{"predicates":[{"type":"dimension","dimension":"mediaType","operator":"matches","value":"voice"}],"type":"and"}],"interval":"2024-01-01T00:00:00/2024-01-15T00:00:00"}

    system | 2024-02-17 14:49:13 UTC | #3

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


    This post was migrated from the old Developer Forum.

    ref: 24180