Python SDK analytics query returning empty data for S3 export job

Running a daily script to pull conversation metrics via the Python SDK and push to S3. The query runs without error but returns an empty list for the data array.

Checked the date range and filters. The token has the right scopes. Here is the query payload:

{
“dateFrom”: “2023-10-01”,
“dateTo”: “2023-10-02”,
“groupings”: [{“type”: “queue”}]
}

You’re missing the interval field. Without it, the API defaults to a 24-hour bucket. Since your range is only one day, it might not align with your local time zone (Europe/London) or the data hasn’t aggregated yet. Try adding "interval": "P1D" to the payload.