Genesys Cloud - Developer Community!

 View Only

Sign Up

  • 1.  Getting the agent average time on Queue and Off-Queue

    Posted 08-15-2025 07:26

    Hi, 

    I am using /api/v2/analytics/users/details/query to calculate on-queue , off-queue averages, minimum and maximum for the agent. There is no aggregate query, which means that I get detailed status information for an x-period of time. The issue is that when you have a very active call center with a thousand agents, to calculate this I end up issuing over 100 API requests to retrieve a period of a day, for example. And every time I need to refresh that value, I need to issue another 100 to 200 API requests. The majority of API requests are required to retrieve the next page in the response (100 records per page and there are sometimes 100 pages in one response!)

    1. Is there a way to retrieve an aggregated value for the total, max, min, ave on queue, off queue without blowing through API limits?
    2. When you issue a follow up API request for the next page in the response, does it still count toward the maximum free API quota per month?

    #PlatformAPI

    ------------------------------
    Amit Abdul
    ------------------------------


  • 2.  RE: Getting the agent average time on Queue and Off-Queue

    Posted 08-19-2025 12:47

    Hi Amit, 

    You may find `POST /api/v2/analytics/users/aggregates/query` to offer a solution. 

    This endpoint doesn't directly offer minimum and maximum values but can offer total on-queue and off-queue time and averages derived from totals. If these are essential, alternative approaches may need to be considered. 



    ------------------------------
    Ewomazino Onokpise
    Software Engineer
    ------------------------------