Genesys Cloud Analytics Details API: Cursor pagination not advancing for large datasets

I’m trying to pull conversation details for a specific queue using the /api/v2/analytics/conversations/details/query endpoint. The goal is to export data for a full week of interactions.

I’ve set up a Python script using the genesyscloud SDK. I’m using the get_conversations_details_query method with a nextPageToken in the loop. The first page returns 1000 records as expected. However, when I pass the nextPageToken from the first response into the second request, the API returns the exact same set of 1000 records. The token doesn’t seem to be advancing.

Here is the relevant snippet:

client = genesyscloud.ClientBuilder().build()
analytics = client.analytics_api

query = {
 'view': 'default',
 'interval': '2023-10-01T00:00:00.000Z,2023-10-08T00:00:00.000Z',
 'size': 1000
}

response = analytics.get_conversations_details_query(body=query)

while response.next_page_token:
 query['nextPageToken'] = response.next_page_token
 response = analytics.get_conversations_details_query(body=query)
 # Process records...
 print(response.next_page_token)

The output shows the token changes, but the data is identical. I’ve checked the documentation and it seems cursor-based pagination is standard here. Is there a limitation on the time range that causes this? Or am I missing a parameter in the body? The interval spans 7 days. Maybe the dataset is too large for a single cursor session? I’m stuck on this loop.