Legacy Dev Forum Posts

 View Only

Sign Up

Getting all calls last 24 hours

  • 1.  Getting all calls last 24 hours

    Posted 06-05-2025 18:04

    Stian | 2016-11-08 13:38:28 UTC | #1

    I'm trying to figure out what API's I'll need to use to get all calls and email last 24 hours. If somebody could point me in the right direction it would be great. the closes i have gotten is the GetQueuesQueueIdConversations which gives me some calls but i is this the one to use?


    anon31479118 | 2016-11-08 13:58:28 UTC | #2

    Did you try the analytics endpoints? https://developer.mypurecloud.com/api/rest/v2/analytics/index.html

    You can query historical data using analytics queries. If you need assistance building the queries or want to make the learning curve with analytics a bit easier you can first try out our Developer Tools (navigate to developer.mypurecloud.com, click on Resources at the top and select Developer Tools). You will be authenticated by your org's credentials and taken to a suite of Developer Tools. Check out the Analytics Query builder to help build the queries you desire.


    Stian | 2016-11-08 14:15:11 UTC | #3

    Hi i have now tried https://developer.mypurecloud.com/api/rest/client-libraries/csharp/latest/AnalyticsApi.html#postconversationsdetailsquery and get a result, but will this return all calls for all queues?

    I'm not able to log on to development tools for a reason.


    tim.smith | 2016-11-08 14:28:22 UTC | #4

    Stian, post:3, topic:593
    will this return all calls for all queues?

    It will return all conversations that match your filter criteria. If all you specify is a 24 hour interval, it will be all conversations on the system that existed at any point during that interval. If you add additional filters by queues or users, for example, then the result set will be refined.

    Stian, post:3, topic:593
    I'm not able to log on to development tools for a reason.

    Are you using your credentials for your mypurecloud.com org? What error are you seeing?


    Stian | 2016-11-08 14:57:13 UTC | #5

    Hi, ok so i can use this then. Is there anywhere that i can see an overview over the result of postconversationsdetailsquery, like a flowchart type? I see that i need to look at result.Conversations[0].Participants[0].Sessions[0].Segments to get all the data that i need.

    yes i uses the link i the menu to development tools, get this error: There was a problem logging you in. Please check your email address and password and try again.

    I have tried different organizations ( i got access to 3) but can't log on.


    KevinGlinski | 2016-11-08 15:00:25 UTC | #6

    Stian, post:5, topic:593
    I have tried different organizations ( i got access to 3) but can't log on.

    which geographical region are your users in? If you are not in the us (mypurecloud.com) then you need to change the url to your region

    https://developer.mypurecloud.com.au/developer-tools/ https://developer.mypurecloud.ie/developer-tools/ https://developer.mypurecloud.jp/developer-tools/


    Stian | 2016-11-09 10:10:30 UTC | #7

    Hi, .ie helped a lot. Thanks.


    system | 2017-08-28 19:28:31 UTC | #8


    This post was migrated from the old Developer Forum.

    ref: 593