Running into a wall with the /api/v2/analytics/conversations/queries/summary endpoint. The requirement is to pull summary stats for a specific view over the last 90 days. I’m constructing the JSON payload with fromDate and toDate covering that range, but the server immediately returns a 413 Entity Too Large error.
I’ve verified the payload size is well under standard limits, so it seems the API is rejecting the date span itself rather than the byte count. Here’s the basic structure I’m sending:
{
"viewId": "my-view-id",
"metrics": ["tHandle", "tAcw"],
"groupBy": ["queueId"],
"fromDate": "2023-10-01T00:00:00.000Z",
"toDate": "2023-12-30T00:00:00.000Z"
}
The docs mention chunking for large datasets, but they don’t explicitly state a max date range for a single request. I’ve tried splitting it into three 30-day chunks using Calendar.getInstance().add(Calendar.DAY_OF_YEAR, -30) in Kotlin to adjust the fromDate and toDate dynamically. That works, but it feels messy and risks missing data if the intervals overlap incorrectly.
Is there a hard limit on the date range for summary queries? Or is there a better way to paginate these results without manually managing date windows? I’d prefer not to hit the API 10 times for a single report.