Analytics API paging object returning inconsistent pageCount values

The GET request to /api/v2/analytics/queues/summary keeps dropping records after the second page. The response header shows pageCount: 3, but setting pageNumber=3 in the next call returns an empty dataset. We’ve built a simple fetch loop to pull queue wrap-up time metrics for the dashboard. Here’s the payload structure we’re sending:

{
 "pageSize": 50,
 "pageNumber": 2,
 "dateRange": {"startDate": "2023-10-01T00:00:00.000Z", "endDate": "2023-10-31T23:59:59.999Z"}
}

Tried adjusting pageSize to 25 and 100. Same issue. The admin UI loads the full report without pagination errors, so the data exists. It’s definitely a paging mismatch on our end. We’re calculating the total pages by dividing the totalCount from the first response by the pageSize, but the API seems to ignore pageNumber after index 2. Should we be using pageToken instead, or is there a specific way to map pageCount correctly in the request body? The docs mention offset-based paging but leave totalCount behavior completely vague.