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"
}