Python SDK Analytics API returns 500 on Prophet forecasting setup

Trying to pull historical queue metrics through the Genesys Python SDK so Prophet can catch the seasonal spikes. Documentation states “analytics queries require a properly formatted JSON body with explicit date ranges and metric filters.” It’s bombing out with a 500 Internal Server Error on /api/v2/analytics/interactions/queues/query even though the payload matches the schema. Don’t know why the SDK wrapper drops the viewId parameter.

  • Python 3.10 with genesys-cloud-py-client==3.12.0
  • Prophet 1.1.4 installed locally
  • Request body includes dateFrom, dateTo, and metrics: [“total-handled”]
  • CSV export endpoint /api/v2/analytics/interactions/queues/export returns {“errors”:[{“code”:“INVALID_REQUEST”,“message”:“Missing required field: viewId”}]