API is returning error 9300 - User session has expired

Hi all, enterprise customer here.

I’m attempting to do an API call to Spectrum Analytics, specifically https://api.cloudflare.com/api/v4/zones/:zone_id/spectrum/analytics/events/summary?metrics=bytesEgress&dimensions=appID (where zone_id is my zone ID), but every time I do I get a weird 400 Bad Request response…

{
    "success": false,
    "errors": [
        {
            "code": 9300,
            "message": "User session has expired. Please log in again"
        }
    ],
    "messages": [],
    "result": null
}

I’m not exactly sure how to login again, for an API request? Other API requests seem to work fine with my credentials, just this one fails. I’m also able to use the dashboard with no issues.

Please advise on what I need to do, or if this is out of my control. Thank you!