Python Analytics Export to S3: 403 Forbidden on /api/v2/analytics/conversations

Anyone know why the Python SDK returns a 403 when querying analytics data for S3 export?

The documentation states: “the access token must have the analytics:query scope” yet my token has it.

Environment:

  • Python 3.9
  • boto3 1.26
  • Genesys Cloud SDK 2.0.0

Code:

client = gen.cloud.platform.client.create(...)
resp = client.analytics.get_conversations_data(...)

Error: {'status': 403, 'message': 'Forbidden'}. Why?