We are attempting to pull historical wrap-up code statistics via the Genesys Cloud Analytics API. The current requirement is to fetch data for the last 90 days. When the request spans this full range, the server responds with HTTP 413 Entity Too Large. The payload size exceeds the limit defined in the platform documentation.
The endpoint in use is /api/v2/analytics/interactions/queues/summary. The query parameters include interval, metric, and group-by. We have tried reducing the granularity, but the data volume remains too high for a single call. The error response is straightforward and provides no guidance on pagination for large intervals.
The question is how to properly split this query into smaller chunks. Should we break the date range into weekly or monthly segments and aggregate the results client-side? Or is there a specific parameter to handle large datasets? We want to avoid manual iteration if possible, but the current approach is failing. The code snippet below shows the basic request structure. Any advice on handling this constraint would be appreciated.