CXone Reporting API v2: Real-time queue stats query failing with 400

What’s the correct OData query structure to pull current queue stats for a specific queue ID using the CXone Reporting API v2? I’m trying to build a real-time dashboard widget in our custom agent desktop that shows the current number of calls waiting in a specific queue. The goal is to hit the /api/v2/analytics/queues/realtime/queues endpoint. I’ve set up the OAuth client credentials flow, which works fine for other endpoints, but this one keeps rejecting my query parameters. Here’s the code snippet I’m using in Python:

import requests

headers = {
 'Authorization': f'Bearer {access_token}',
 'Content-Type': 'application/json'
}

params = {
 'from': '2023-10-27T10:00:00.000Z',
 'to': '2023-10-27T10:01:00.000Z',
 'groupBy': 'none',
 'interval': 'PT1M',
 'queueIds': 'abc123-def456-ghi789'
}

response = requests.get('https://{org_id}.mypurecloud.com/api/v2/analytics/queues/realtime/queues', headers=headers, params=params)
print(response.status_code)
print(response.json())

The response is a 400 Bad Request with the message “Invalid query parameters.” I’ve double-checked the queue ID and the time range. The interval seems standard. I don’t see what’s wrong with the groupBy or queueIds format. Is there a specific requirement for the from and to fields when querying real-time data? I’ve tried removing groupBy but that didn’t help either. The docs are a bit sparse on exact parameter validation rules for this endpoint. Any idea what I’m missing?