Trying to pull agent utilization metrics broken down by 30-minute intervals. Specifically need tHandle, tAcw, and tHold. The standard /api/v2/analytics/agents/summary endpoint only gives me totals for the date range. I need the granular interval data.
I tried using the interval parameter in the query string, but the response doesn’t include the interval field in the data array. Just the aggregated totals again.
Here is the request I’m sending:
GET /api/v2/analytics/agents/summary?interval=PT30M&metric=tHandle&metric=tAcw&metric=tHold&dateFrom=2023-10-01T00:00:00.000Z&dateTo=2023-10-01T23:59:59.999Z
The response looks like this:
{
"data": [
{
"id": "agent-id-123",
"name": "John Doe",
"metrics": {
"tHandle": 14400,
"tAcw": 1800,
"tHold": 120
}
}
]
}
No interval breakdown. Is there a different endpoint or a specific group parameter I’m missing? The docs mention groupBy for some analytics calls, but it’s not clear if it applies here. Tried groupBy=agent but got the same result. Any pointers on how to get that 30-minute slice?