API Key 403 Detected

I'm using Expo EAS to try and submit a build to Test Flight. During the submission, there's two paths I've tried and both fail with the same error:

"This request is forbidden for security reasons - The API key in use does not allow this request"

The first way, it asks "Generate a new App Store Connect API Key" which I respond yes and it fails with the above message. The second way, I respond no to the above question and specify a path to the API Key that I manually created under "Individual API Key" in my Apple Connect account.

Is this the correct place to have created this API Key? Is there a different type of API Key I should be using? Or is this a permission issue with my Apple account? I am not the account owner but it looks like I have the correct permissions as far as I can tell. TIA!

Hey @slindauer,

Thanks for posting this on the forums!

Would it be possible for you to share the link to the specific App Store Connect API that you are using? I would like to try and re-create the error that you are experiencing. Below are some items that would be helpful to know:

  • Do you have a sample body to share?
  • What permission does your API Key have?
  • Are you including a scope in your Token?

I am also running into a similar error, and posted on the Apple Developer Forums at the below location.

https://forums.developer.apple.com/forums/thread/758518

With the same API Key that I receive an error for above, I am able to use the Submit an App for Beta Review API without encountering any issues.

https://developer.apple.com/documentation/appstoreconnectapi/submit_an_app_for_beta_review

Hopefully this helps and happy coding!

API Key 403 Detected
 
 
Q