Creating API Keys for Enterprise Program API
Create API keys to sign JSON Web Tokens (JWTs) and authorize API requests.
Overview
The Enterprise Program 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 the Apple Developer website.
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 the Apple Developer website.
Enterprise Program API keys are unique to the Enterprise Program API and you can’t use them for other Apple services.
Generate a Enterprise Program API 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 Enterprise Program 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. The other available role is Developer, which is restricted to provisioning actions, such as creating provisioning profiles and managing development certificates.
When you create an API key, assign it a role that determines the key’s access to areas of the Enterprise Program API and permissions for performing tasks. To learn more information about user roles and permissions, see the Apple Developer website.
To generate Enterprise Program API keys, you must have an Admin account for your developer team in the Apple Developer website. You can generate multiple API keys with the roles you choose.
To generate a key to use with the Enterprise Program API, log in to the Apple Developer website and:
Select Users and Access, and then select the Integrations tab.
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 Enterprise Program API 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 the Apple Developer website and:
Select Users and Access, and then select the Integrations tab.
Click Download 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.