Hitting the CXone reporting API to get real-time queue stats. Using the standard GET request to /api/v2/analytics/queues/realtime/summary. The response comes back with a 200 OK, but the state field for active queues is lagging by about 15-20 seconds compared to the actual IVR.
I’ve tried setting the Cache-Control: no-cache header and passing the since parameter in the query string, but the payload looks identical. Here’s the snippet:
const response = await fetch('https://{{domain}}/api/v2/analytics/queues/realtime/summary', {
headers: {
'Authorization': `Bearer ${token}`,
'Cache-Control': 'no-cache'
}
});
Is there a specific header or query param I’m missing to force a fresh query from the backend? The docs mention a sliding window but don’t specify how to bypass the cache for live monitoring scripts. The data is too stale for our alerting logic.