Contact Center api for analytics - api is looping through the same 10 records when using the next_page_token

I setup this api and when I run it, it returns a next_page_token and shows several thousand records returned and 10 per page.

/contact_center/analytics/historical/details/metrics?from={from_date}&to={to_date}&channel={channel}&queue_ids={queue_ids}&next_page_token{next_page_token}&page_size{page_size}

When I update the next_page_token to the original value returned and keep the other parameters the same, it continues to return the same 10 records from the 1st iteration, and goes into a continuous loop.

  • total_records: 4110,
  • page_size: 10,
  • next_page_token: "jcVu7LK6Qk3perC…

Is there anything special that needs to be done to have this loop through results instead of repeating the same 10 records each time?

Thanks