I am using some private key to extract the sales report from apple app store using API https://api.appstoreconnect.apple.com/v1/salesReports which is working fine however when I am using same private key and generate JWT token and tried using this token to invoke customerRview endpoint https://api.appstoreconnect.apple.com/v1/apps/{id}/customerReviews
to get the all the app reviews, I am experiencing the 401-Unauthorized error.
I tried creating different key ids with different roles like Developer, App Manager, Admin but all resulted into the same error. Could you please help me to fix this issue.