Genesys Cloud - Developer Community!

 View Only

Sign Up

Expand all | Collapse all

Create API connections to match front end report - Agent Status Detail Report

  • 1.  Create API connections to match front end report - Agent Status Detail Report

    Posted 05-19-2025 10:04
      |   view attached

    We need some help in getting the correct API connections that will recreate the Agent Status Detail report, by Duration, like we use in the UI. Support has told me they cannot help and pointed me here.  Is there anyone that can help us to get connected with the correct API's needed to re-create that front end report?


    #PlatformAPI

    ------------------------------
    Aaron Becraft
    Sr. Director of Offline Operations
    ------------------------------


  • 2.  RE: Create API connections to match front end report - Agent Status Detail Report

    Posted 06-04-2025 10:46

    Hi Aaron,
    the API being used by that report is `POST /api/v2/analytics/users/aggregates/query`

    With a request payload like this:

    {
        "filter": {
            "type": "and",
            "clauses": [
                {
                    "type": "or",
                    "predicates": [
                        {
                            "dimension": "userId",
                            "value": "fec34eaa-818e-4617-b317-9360a00089fc"
                        }
                    ]
                }
            ]
        },
        "metrics": [
            "tSystemPresence",
            "tAgentRoutingStatus",
            "tOrganizationPresence"
        ],
        "groupBy": [
            "userId"
        ],
        "interval": "2025-06-04T05:00:00.000Z/2025-06-04T14:30:00.000Z"
    }


    ------------------------------
    Jacob Shaw
    Sr. Software Engineer
    ------------------------------