Quick question about a recurring timeout issue when pulling analytics data for a legal discovery request. We are using the /api/v2/analytics/wem/data endpoint to retrieve interaction metrics for digital channels over a 90-day period. The request payload includes standard filters for queue and date range, but the server returns a 504 Gateway Timeout after approximately 60 seconds of processing.
The environment is Genesys Cloud EU West, and we are using the Python SDK version 1.12.0. This specific batch involves over 50,000 digital channel interactions, which is within the documented limits for bulk data retrieval. Smaller date ranges under 14 days complete successfully without any latency issues.
Chain of custody requirements mean we cannot simply split the date range arbitrarily without a clear audit trail of the aggregation logic. We need to ensure the final dataset is mathematically consistent with the source recording metadata. Has anyone found a reliable method to paginate these large WEM analytics requests without hitting the gateway timeout?
We have tried increasing the SDK timeout configuration, but the underlying API seems to enforce a server-side limit. Any guidance on best practices for handling high-volume digital channel analytics exports for legal holds would be appreciated.