Trying to pull live queue stats like waiting and agentsAvailable using GET /api/v2/analytics/queues/realtime. The request returns 200 OK but the queueStats array is empty. I’m passing from and to as ISO-8601 strings with a 10-second window. Here’s the request header setup:
val url = "https://${baseUrl}/api/v2/analytics/queues/realtime"
val params = listOf(
"from" to now.minusSeconds(10).toString(),
"to" to now.toString(),
"intervalSize" to "10s"
)
Docs say this should work for real-time data. Am I missing a specific filter or is this endpoint actually just for historical aggregates?