I have a similar issue and created feedback ticket FB16416984. For me the token works when calling the api.appstoreconnect.apple.com/v1/apps endpoint but always returns a 401 when calling api.appstoreconnect.apple.com/v1/analyticsReportRequests.
Topic:
App & System Services
SubTopic:
StoreKit
Tags: