Cursor pagination failing on /api/v2/analytics/conversations/details/query

  • python-sdk 3.0.12
  • Genesys Cloud EU region
  • custom Teams bot for presence sync

Why does this setting cause a 500 error when i pass a valid cursor from the previous response to /api/v2/analytics/conversations/details/query? the docs say to use cursor for details but it keeps failing with “invalid cursor format” even though i’m copying it straight from the response header.

client = PureCloudPlatformClientV2(client_id, client_secret)
analytics = analytics_api.AnalyticsApi(client)

# first call works
resp = analytics.post_analytics_conversations_details_query(body=body)
next_cursor = resp.next_page_token

# second call fails
time.sleep(1)
resp2 = analytics.post_analytics_conversations_details_query(body={**body, "next_page_token": next_cursor})