Analytics API v2/query/conversations/aggregates returning empty data for custom intervals

Running into a weird issue with the Analytics API. I’m trying to build a custom interval report using POST /api/v2/analytics/query/conversations/aggregates. The goal is to get minute-by-minute queue stats for a specific division to feed into our custom agent desktop widget.

The request works fine for standard intervals like PT1H or PT1D. But when I try to set a custom interval of PT1M, the response comes back with an empty data array. No error, just empty.

Here’s the JSON payload I’m sending:

{
 "query": {
 "dateFrom": "2023-10-25T08:00:00Z",
 "dateTo": "2023-10-25T09:00:00Z",
 "interval": "PT1M",
 "groupBy": ["queueId"],
 "filter": {
 "queueIds": ["abc123-xyz789"]
 }
 },
 "metrics": {
 "queue": ["occupancy", "wrapUpTime"]
 }
}

I’ve double-checked the dateFrom and dateTo timestamps. They’re in UTC and cover a period where we definitely had activity. The queueId is correct. I’ve also tried removing the filter block and just querying all queues, but still get an empty data array for PT1M.

Tried increasing the interval to PT5M. That works. So it seems like there’s a limit or a quirk with PT1M intervals. Is there a minimum data threshold required for the API to return results for such short intervals? Or is there a specific header I’m missing?

Using the Node.js SDK @genesyscloud/analytics-client. The getAnalyticsQueryConversationsAggregates method is what I’m calling. The response code is 200, but the data field is [].

Any ideas? This is blocking our real-time stats feature.