Legacy Dev Forum Posts

 View Only

Sign Up

  • 1.  User Aggregate API

    Posted 06-05-2025 19:07

    kothariviralPFG | 2021-07-14 13:04:27 UTC | #1

    Hi Team,

    We are using api-https://api.mypurecloud.com/api/v2/analytics/users/aggregates/query to get data from 1st Jan 2020. We are able to get data for one user and one TimeInterval. But when trying multiple times with multiple users (less than 100), it is giving frequent 503 error. Can we use this API to get history data? If yes then till how many days? Is there any async api for same to get the history data.


    tim.smith | 2021-07-14 13:11:13 UTC | #2

    kothariviralPFG, post:1, topic:11463
    it is giving frequent 503 error

    503 responses are considered retryable. See documentation here: https://developer.genesys.cloud/api/rest/rate_limits#retrying-other-responses

    kothariviralPFG, post:1, topic:11463
    Can we use this API to get history data?

    You can use it to get aggregate presence information for a user. See information here: https://developer.genesys.cloud/api/rest/v2/analytics/user_aggregate

    kothariviralPFG, post:1, topic:11463
    Is there any async api for same to get the history data.

    Not in aggregate, see the user detail job: https://developer.genesys.cloud/api/rest/v2/analytics/user_details_job


    kothariviralPFG | 2021-07-14 13:56:14 UTC | #3

    Thank you for your response smith. We know that we can use it to get aggregate presence information for a user. Our case is to bring data from this api from 1st Jan 2020 using this API and API is giving error while fetching that information. It is first giving 504 error and then we wait for 1 minute to call api again and it is giving 503 error. Question here is : Can this API get us data from 1 Jan 2020 ? Some APIs like conversation detail, they can only fetch data till 558 days backwards as mentioned here- Analytics Conversation Detail Endpoint API query interval change - Genesys Cloud Resource Center (mypurecloud.com) . is it same with this APi?


    tim.smith | 2021-07-14 13:59:55 UTC | #4

    kothariviralPFG, post:3, topic:11463
    Can this API get us data from 1 Jan 2020 ?

    yes

    quote="kothariviralPFG, post:3, topic:11463"] Some APIs like conversation detail, they can only fetch data till 558 days backwards as mentioned here- [Analytics Conversation Detail Endpoint API query interval change - Genesys Cloud Resource Center (mypurecloud.com) . is it same with this APi? [/quote]

    No, that post is about /api/v2/analytics/conversations/details/query, which is not the resource you've mentioned in your post.

    kothariviralPFG, post:3, topic:11463
    It is first giving 504 error and then we wait for 1 minute to call api again and it is giving 503 error.

    If you feel these errors are abnormal, please open a case with Genesys Cloud Care to investigate; server-side errors and customer-specific data cannot be investigated via the forum.


    kothariviralPFG | 2021-07-14 14:07:56 UTC | #5

    tim.smith, post:4, topic:11463
    No, that post is about /api/v2/analytics/conversations/details/query , which is not the resource you've mentioned in your post.
    Thank you Smith. Conversation API example here is only for reference to get information about user aggregate API meaning if user aggregate api has any logic like 558 days backwards only we can get data from user aggregate API

    system | 2021-08-13 14:17:33 UTC | #6

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