Guide
How to create an App Store Connect API key
An App Store Connect API key lets a tool work with your apps, prices and sales reports without your Apple password. Creating one takes about two minutes. You need three things at the end: the Issuer ID, the Key ID and the .p8 file.
Updated
What the key is and what it can do
The App Store Connect API is Apple's official way for software to do what you do by hand on the App Store Connect website: read your apps, change prices, download sales reports, manage TestFlight. A key is how that software proves it is allowed to act for your team.
A key has three parts:
- Issuer ID: identifies your team. It is the same for all team keys.
- Key ID: identifies this one key. It is a short code of letters and digits.
- Private key file: a file named AuthKey_<Key ID>.p8. The tool uses it to sign each request.
The key never leaves your side in a well-built tool. The tool signs a short-lived token on your device and sends only that token to Apple.
Create the key
- Sign in to App Store Connect and open Users and Access.
- Open the Integrations tab and choose App Store Connect API in the sidebar.
- Stay on Team Keys. If this is the first key for the team, the Account Holder has to press Request Access and accept Apple's terms once.
- Press Generate API Key (or the plus button next to "Active").
- Give the key a name that says what uses it, for example "Pricing Manager".
- Choose the access role (see the next section) and press Generate.
- Download the key file from the new row. You get one download only.
Only the Account Holder and Admins can create team keys. If you do not see the Generate button, ask one of them to create the key for you.
Which role to choose
The role decides what the key may do, exactly like the role of a person on your team. Give a key the smallest role that still does the job.
- App Manager: manages apps, prices and in-app purchases. This is enough for pricing tools.
- Admin: everything App Manager can do, plus users and agreements. Use it only when a tool really needs it.
- Developer: builds and TestFlight. Good for CI and upload tools such as fastlane. It cannot change prices.
- Finance and Sales: reports only. Good for analytics dashboards.
Where to find the Issuer ID and the Key ID
Both are on the same page where you created the key: Users and Access → Integrations → App Store Connect API → Team Keys.
- The Issuer ID is above the table of keys, with a Copy button next to it. It looks like 57246542-96fe-1a63-e053-0824d011072a.
- The Key ID is in the row of each key, in its own column. It looks like 2X9R4HXF34. The same code is in the name of the .p8 file.
Neither of the two is secret on its own. The private key file is.
The .p8 file: one download, and where to keep it
Apple does not keep a copy of the private key. After the first download the link disappears, and nobody can get the file again, not even Apple support. If the file is lost, revoke the key and create a new one.
Treat the file like a password:
- Do not commit it to a git repository, even a private one.
- Do not send it by email or chat.
- Keep it in a password manager or in the system keychain, not in Downloads.
- Paste it only into tools that say where the key is stored and where it is sent.
Team keys and individual keys
The same page has a second tab, Individual Keys. An individual key belongs to one person and carries that person's role and app access. Each user can have one.
Individual keys have no Issuer ID, and Apple limits what they can reach: for example, they cannot read Sales and Finance reports. A tool that asks for an Issuer ID, or that reads your sales, needs a team key.
How to revoke a key
On the Team Keys page, hover the row of the key, press Edit and then Revoke Key. The key stops working at once and cannot be turned back on. Tools that used it will report an authentication error until you give them a new key.
Revoke a key when a person with access to it leaves the team, when the file may have leaked, or when you stop using the tool it was made for.
Using the key in App Pricing Manager
App Pricing Manager is a Mac and iPad app that sets a local price for your products in every App Store country. It needs a team key with the App Manager role (Admin also works).
- Open the app and paste the Issuer ID and the Key ID.
- Press Import .p8 File and pick the downloaded file, or paste its text.
- Press Connect App Store.
The key is stored in your keychain and is sent only to Apple. With iCloud Keychain on, your iPad signs in by itself. The docs have the short version of these steps, and the privacy policy says exactly where the key lives.
Put the key to work
App Pricing Manager reads every territory's price and your sales with it, and pushes only the changes you approve.
More guides
- Localized pricing
- PPP pricing
- PPP calculator
- App Store pricing
- App Store fees
- Small Business Program
- App Store countries
- Apple Developer Program cost
- Subscription pricing
- Psychological pricing
- App monetization
- Cost of living index
- GDP per capita (PPP)
- Big Mac index
- Netflix price by country
- VAT rates by country