Analytics API: Grouping by queue and media type returns empty results

Hitting a wall with POST /api/v2/analytics/conversations/queries. Need to aggregate handle time grouped by queue and media type. The query executes without error but returns zero data points. Checked GET /api/v2/analytics/conversations/queries and the query looks valid. Here is the payload:

{
 "filter": { "type": "or", "clauses": [...] },
 "groupings": ["queue", "mediaType"],
 "aggregations": [{ "name": "handleTime", "type": "sum" }]
}

Is the mediaType grouping field deprecated or handled differently now?

Check your filter clauses. If you’re filtering on queue.id, you can’t group by queue name or ID in the same query without a specific mapping. Try removing the queue filter and just grouping by queue and mediaType to see if data comes back.