Trying to pull real-time queue metrics from NICE CXone using the /api/v2/reporting/queues/realtime endpoint. The goal is to feed a custom dashboard, so I need the data to refresh every 5 seconds.
I’ve got the OAuth token sorted and can hit other endpoints fine, but this one keeps coming back with an empty data array. Here’s the request payload I’m sending via Postman:
{
"intervalStart": "2023-10-27T04:00:00.000Z",
"intervalEnd": "2023-10-27T04:05:00.000Z",
"groupBy": "queue",
"metrics": ["agentCount", "waitTime", "abandonRate"],
"filters": [
{
"type": "queue",
"ids": ["12345678-1234-1234-1234-123456789012"]
}
]
}
The response is a 200 OK, but the body is just {"data": []}. I’ve double-checked the queue ID and it’s definitely active with agents logged in. Tried removing the filters and just sending empty brackets, still nothing.
Is there a specific permission scope I’m missing beyond reporting:queue:read? The docs are pretty light on this endpoint compared to the historical ones. Feels like I’m hitting a wall on the auth side or the filter syntax is wrong.