Running a daily cron job to pull conversation/metrics analytics via the Genesys Cloud Python SDK and push to S3 using boto3. The script works fine for general reporting but throws a 403 Forbidden specifically when querying interval data for the last 30 days. We’ve verified the OAuth token has analytics:read scope. Here’s the chunk failing:
analytics_api = gen_api.AnalyticsApi(api_client)
body = gen_api.AnalyticsGetConversationMetricsRequest(
group_by=['queueId'],
interval='PT1H',
view='conversation'
)
response = analytics_api.post_analytics_conversations_metrics(body)
- Environment: Python 3.9,
genesys-cloud-pythonv1.0.22 - Error:
genesys_cloud_python.client.exceptions.ApiException: (403) - Tried: Switching to
genesyscloudv2.0 SDK, same result.
Any idea why interval queries are blocked while summary views work?