Trying to build a custom interval report using the Analytics Conversations Aggregates query (GET /api/v2/analytics/conversations/aggregates). The goal is to get data for specific 5-minute intervals within a single day.
I’m passing the dateFrom and dateTo in the query parameters, but the response always returns the full day’s data aggregated into hourly buckets, ignoring the intervals filter I’m trying to apply. Here’s the JSON body I’m sending:
{
"groupBy": ["interval"],
"interval": "5m",
"metrics": ["callsHandled"],
"dateFrom": "2023-10-27T00:00:00.000Z",
"dateTo": "2023-10-27T23:59:59.999Z"
}
I also tried adding filter objects to narrow down the time, but the API just seems to ignore the interval granularity and gives me the standard hourly summary. Is there a specific parameter I’m missing to force it to return 5-minute buckets? Or is this endpoint simply designed to only return hourly aggregates for date ranges larger than 24 hours?