Hey folks,
Trying to build a simple dashboard that shows real-time queue status (waiting calls, agents available) using the Statistics API. I figured /api/v2/analytics/queues/realtime would be the way to go, but the response payload isn’t giving me what I need.
I’m hitting the endpoint with interval=now/now and filtering by a specific queue ID. The response comes back with a 200 OK, but the metrics array only seems to contain acw and talk data. There’s no waiting or available metric in the JSON. I’ve checked the docs, and it says these should be included for realtime queries.
Here’s a snippet of the response I’m getting:
{
"results": [
{
"entity": {
"id": "12345-67890-abcdef",
"name": "Support Queue"
},
"metrics": [
{
"id": "acw",
"value": 12
},
{
"id": "talk",
"value": 45
}
]
}
]
}
Am I missing a query parameter or is there a different endpoint for agent availability? The routingApi.getRoutingQueues() call doesn’t give realtime stats, so I’m stuck. Any ideas?