We are attempting to build a custom interval report using the Analytics Conversations Aggregates query via the Genesys Cloud REST API. The goal is to retrieve conversation data segmented by specific time intervals for our internal dashboard. However, every POST request to /api/v2/analytics/conversations/aggregates/query returns a 400 Bad Request error. The JSON payload seems valid according to the documentation, but the response body indicates an issue with the interval configuration. Here is the request body:
{
"queryType": "interval",
"groupBy": ["interval"],
"dateFrom": "2024-01-01T00:00:00.000Z",
"dateTo": "2024-01-02T00:00:00.000Z"
}
The error message states: Invalid interval configuration. We have tried adjusting the dateFrom and dateTo values, but the issue persists. Any insights on what might be causing this?