Running into a wall with the Genesys Cloud Analytics API. I’m trying to pull conversation metrics for the last 90 days in a single shot, but the server keeps throwing a 413 Entity Too Large error.
Here’s the JSON payload I’m sending to /api/v2/analytics/conversations/details/query:
{
"dateFrom": "2023-10-01T00:00:00.000Z",
"dateTo": "2023-12-30T23:59:59.999Z",
"groupings": [
{ "type": "time", "value": "hour" }
],
"metrics": [
{ "type": "numeric", "name": "duration" }
]
}
The docs mention a payload size limit, but they don’t give a hard number or a clear strategy for chunking time ranges. I’ve tried shrinking the window to 30 days and that works fine. The issue is stitching the results back together without losing granularity or hitting rate limits.
Has anyone built a wrapper to split large date ranges automatically? I’m using the Python SDK but open to raw HTTP examples. Just need to know how to handle the overlapping boundaries so I don’t double count or miss data.