api.appstoreconnect.apple.com/v1/analyticsReportRequests Endpoint always returns 401 error

Hi all,

I am facing an issue with the api.appstoreconnect.apple.com/v1/analyticsReportRequests endpoint. I always get a 401 error when making POST requests to it. The JWT is generated with a team key having Admin access and it works when I make GET requests, so calling api.appstoreconnect.apple.com/v1/apps is successful for example. The body of the POST request is

  "data": {
    "type": "analyticsReportRequests",
    "attributes": {
          "accessType": "ONGOING"
    },
    "relationships": {
      "app": {
        "data": {
          "type": "apps",
          "id": "my_app_id"
        }
      }
    }
  }
}

Anyone else with the same problem or with some idea on what I might be doing wrong.

Many thanks in advance Symeon

Hi all, just as an update I am posting that I have also opened a case with Apple support for this. According to support since February 28 the engineers are looking into it and they will let me know once they have something. After going back end forth a couple of times to explain the issue, a dead end. A very disappointing experience I must say.

api.appstoreconnect.apple.com/v1/analyticsReportRequests Endpoint always returns 401 error
 
 
Q