Looking for some advice on troubleshooting this weird paging behavior with the Analytics API. I’m building a screen pop overlay that fetches historical queue metrics, but the paging object in the response doesn’t match my request parameters.
I’m using the JS SDK method analyticsApi.getAnalyticsConversationsQueuesQuery with this configuration:
const params = {
pageSize: 50,
pageNumber: 1,
aggregation: 'interval',
interval: 'PT1H'
};
const response = await platformClient.analytics.getAnalyticsConversationsQueuesQuery(params);
The response returns a paging object where pageSize is 50, but pageCount is 1. However, the entities array only contains 20 items. I expected 50. When I manually fetch via fetch('/api/v2/analytics/conversations/queues/query') with the same payload, I get the same result.
HTTP 200 OK
Is there a hard cap on the entities array regardless of pageSize? Or am I misinterpreting how pageCount works with time-series aggregations? The docs are vague on this intersection.