CXone Reporting API v2: 400 Bad Request on real-time queue stats

Hey folks,

I’m hitting a wall trying to pull real-time queue stats from CXone using the Reporting API v2. The endpoint is /api/v2/reporting/queues/{queueId}/stats.

I’ve got the auth sorted, but every request returns a 400 Bad Request. The error message is pretty vague:

{
 "status": 400,
 "message": "Invalid query parameter format."
}

I’m using Python requests and passing the standard query params for real-time data. Here’s the call:

params = {
 'interval': 'realtime',
 'startTime': '2023-10-27T10:00:00Z',
 'endTime': '2023-10-27T11:00:00Z'
}
response = requests.get(url, headers=headers, params=params)

I’ve tried removing the startTime and endTime since it’s realtime, but that just gives me a 200 OK with empty data. The docs say realtime doesn’t need a time range, but if I don’t pass them, I get nothing. If I do pass them, I get a 400.

Is there a specific format for the timestamps I’m missing? Or is this endpoint actually broken for realtime queries? The queue ID is definitely valid, I can see the stats in the UI right now.

Appreciate any pointers.