Genesys Cloud - Developer Community!

 View Only

Sign Up

  • 1.  Need Assistance with Agent Status API Returning Single Record

    Posted 07-22-2025 05:18

    I am using the following API to retrieve agent statuses for Break Time, Training, Meeting, and On Queue. However, it only returns information for a single agent ID. In the request body, we have specified only the date range (7 days) and have not provided any specific username, but the result still returns information for just one agent.

    Could you please confirm if there is another API available that can retrieve the status information for all agents within the specified date range?


    API name :  /api/v2/analytics/users/details/query


    #DataActions

    ------------------------------
    Mahesh B
    ------------------------------


  • 2.  RE: Need Assistance with Agent Status API Returning Single Record

    Posted 07-22-2025 16:28

    Mahesh,

    That API endpoint does return data for multiple users.  You could be running into a few things:

    • The account you are running your API call with does not have access to any other users because of division restrictions
    • You are encountering paginated results and need to iterate through the pages of data to see the other users.
      • You should be able to deduce this looking at the "totalHits" value returned.

    Hope that helps.



    ------------------------------
    Aaron Lael
    State of Utah - comments on this forum reflect my own personal opinions\observations and are separate from any entity I am otherwise involved in.
    ------------------------------