Queue stats API returning stale data in OTel export loop

Hit a weird delay where the queue observation data doesn’t update for 30 seconds even though I’m polling POST /api/v2/analytics/queues/observations/query every 5s. The trace spans show the request completes instantly but the waitingCount is always lagging behind the actual IVR queue.

  • Using Node.js purecloud-platform-client with standard OAuth2 token refresh
  • Endpoint: POST /api/v2/analytics/queues/observations/query
  • Response JSON returns 200 but values are static

Is there a caching header I’m missing or should I be using a different endpoint for sub-second granularity?

1 Like