So I’m hammering the /api/v2/analytics/conversations/queries endpoint to grab a custom report spanning the last 90 days. The Node.js SDK is throwing a 413 Entity Too Large error on the request body. I checked the payload size, it’s nowhere near the usual limits, but the date range seems to be the trigger.
Here’s the query object I’m passing:
{
"dateFrom": "2023-10-01T00:00:00+09:00",
"dateTo": "2023-12-30T23:59:59+09:00",
"groupings": [
{
"type": "dimension",
"dimension": "conversation:channelType"
}
],
"aggregates": [
{
"type": "sum",
"statistic": "duration"
}
]
}
Shrinking the range to 30 days works fine. The SDK’s analyticsQuery method doesn’t seem to have a built-in paginator for time ranges, so I’m stuck with a manual loop. I’ve tried chunking the dates in my Node script, but the 413 persists until the delta drops below a month.
The error response just says {"code":"entityTooLarge","message":"Request entity too large"}. No hints on the byte limit.