Trying to pull real-time queue stats for a custom agent desktop widget using POST /api/v2/analytics/queues/summary. The data is consistently 5-10 minutes behind the live dashboard, even with interval: 1m and dateFrom set to now.
- Node.js 18 backend
- OAuth2 client credentials flow
- Payload:
{ interval: '1m', groupBy: ['queueId'], metrics: ['queue.talk.duration'] } - Response 200 OK, but values don’t match the UI
Checked the docs and the endpoint seems to be the right one. Any idea why the aggregation is lagging?