Creating API Keys for App Store Connect API
Create API keys to sign JSON Web Tokens (JWTs) and authorize API requests.
Overview
The App Store Connect API requires a JSON Web Token (JWT) to authorize each request you make to the API. You generate JWTs using an API key downloaded from App Store Connect.
An API key has two parts: a public portion that Apple keeps, and a private key that you download. You can use the private key to sign tokens that authorize access to your data in App Store Connect and the Apple Developer website.
There are two types of API keys:
- Team
Access to all apps, with varying levels of access based on selected roles.
- Individual
Access and roles of the associated user. Individual keys aren’t able to use Provisioning endpoints, access Sales and Finance, or
notaryTool.
App Store Connect API keys are unique to the App Store Connect API and you can’t use them for other Apple services.
Generate a Team Key and Assign It a Role
When you create an API key, assign it a role that determines the key’s access to areas of the App Store Connect API and permissions for performing tasks. For example, keys with the Admin role have broad permissions and can do things like create new users and delete users. Team API keys can access all apps, regardless of their role. The roles that apply to keys are the same roles that apply to users on your team; for more information, see Program Roles.
To generate team keys, you must have an Admin account in App Store Connect. You can generate multiple API keys with any roles you choose.
To generate a team API key to use with the App Store Connect API, log in to App Store Connect and:
Select Users and Access, and then select the Integrations tab.
Select App Store Connect API in the left column.
Make sure the Team Keys tab is selected.
Click Generate API Key or the Add (+) button.
Enter a name for the key. The name is for your reference only and isn’t part of the key itself.
Under Access, select the role for the key.
Click Generate.
The new key’s name, key ID, a download link, and other information appears on the page.
Download and Store a Team Private Key
Once you generate your API key, you can download the private half of the key. The private key is available for download a single time, to begin log in to App Store Connect and:
Select Users and Access, and then select the Integrations tab.
Select App Store Connect API in the left column.
Select Team Keys if it is not already selected.
Click Download API Key link next to the new API key.
The download link only appears if you haven’t downloaded the private key. Apple doesn’t keep a copy of the private key.
Generate an Individual Key
To generate an individual API key, which has access and permissions of the associated user, for the App Store Connect API, log in to App Store Connect and:
Go to your user profile.
Scroll down to Individual API Key.
Click Generate API Key.
The key ID, a download link, and other information appears on the page.
Download and Store an Individual Private Key
Once you’ve generated your API key, you can download the private half of the key. The private key is available for download a single time, to begin log in to App Store Connect and:
Go to your user profile.
Scroll down to Individual API Key.
Click Download API Key link.
The download link only appears if you haven’t downloaded the private key. Apple doesn’t keep a copy of the private key.