API Reports & Questions

Does anyone know which API call can retrieve the same reports available in Genesys (Performance > Workspace)?

I’ve been exploring the POST api/v2/analytics/conversations/aggregates/query endpoint, but I’m not getting data that matches the reports, even though I’ve applied the same filters. Any guidance on what might be missing or if there’s a different API I should be using would be greatly appreciated.

This is the JSON I am using to make the POST HTTP:

{
  "interval": "2024-09-02T00:00:00/2024-09-05T23:30:00",
  "granularity": "P1D",
  "timeZone": "America/Denver",
  "groupBy": [
    "userId"
  ],
  "filter": {
    "type": "and",
    "clauses": [
      {
        "type": "or",
        "predicates": [
          {
            "type": "dimension",
            "dimension": "mediaType",
            "operator": "matches",
            "value": "email"
          },
          {
            "type": "dimension",
            "dimension": "mediaType",
            "operator": "matches",
            "value": "chat"
          }
        ]
      }
    ]
  },
  "metrics": [
    "nOffered",
    "nTransferred",
    "tAbandon",
    "tAgentResponseTime",
    "tAnswered"
  ],
  "flattenMultivaluedDimensions": true,
  "views": [],
  "alternateTimeDimension": "eventTime"
}

Refer to this recent conversation

Same concept applies to all the reports in Workspaces.
You can always look in your browser's Network diagnostics in F12 to see the exact combinations of APIs each workspace is starting from.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.