Running into a weird issue with the Analytics Conversations Aggregates API. I’m building a custom interval report to track Data Action latency, but the query returns zero results even though I know calls happened in that window.
Here’s the payload I’m sending to POST /api/v2/analytics/conversations/aggregates:
{
"dateFrom": "2023-10-27T00:00:00.000Z",
"dateTo": "2023-10-27T23:59:59.999Z",
"interval": "PT1H",
"groupings": [
{ "type": "metric", "name": "wrapup" }
],
"selection": {
"type": "queue",
"id": "12345-6789-0abc-defg-hijklmnop"
},
"filter": {
"type": "equals",
"path": "customAttributes.dataActionLatency",
"value": "true"
}
}
The endpoint returns a 200 OK, but the results array is empty. I’ve verified the queue ID and the date range. If I remove the filter, I get data back for the queue, just not filtered by that custom attribute. Is the filter syntax for custom attributes different in aggregates? Or am I missing a grouping requirement?
Also, the trace context seems fine on the initial Data Action call, so it’s not a propagation issue. Just stuck on why the analytics query ignores the filter.