Why does the Analytics API ignore pageSize when I try to paginate queue performance data? I’m pulling /api/v2/analytics/queues/summary to build a dashboard, but the response keeps returning the default 25 records even though I explicitly set pageSize to 100. I’ve tried passing pageNumber as well, but pageCount stays at 1, which breaks my loop for fetching all pages. The docs are vague on whether pageSize applies to the summary endpoint or just the interaction detail ones. Here’s the fetch call I’m using:
const response = await fetch(
'https://mycompany.mypurecloud.com/api/v2/analytics/queues/summary'
+ '?divisionId=' + divisionId
+ '&dateFrom=2023-10-01T00:00:00Z'
+ '&dateTo=2023-10-02T00:00:00Z'
+ '&pageSize=100'
+ '&pageNumber=1',
{ headers: { 'Authorization': 'Bearer ' + token } }
);
The response JSON has pageSize: 25 and pageCount: 1 regardless of the query params. Am I missing a header or is this endpoint hardcoded to ignore pagination limits? Need to know if I have to chunk the date range instead of relying on page numbers.