# App Store credentials

How to create an App Store Connect API key and store it in the platform together with the team ID and team name.

> Source: https://www.application-platform.com/en/docs/app-store-credentials/

The platform uploads iOS and macOS builds through the App Store Connect API; for that you store an API key of your team once. You need access to App Store Connect that may manage API keys; the registration is described under [Apple developer account]({{< relref "app-store-developer-account" >}}).

## Create the API key in App Store Connect

1. Sign in to [App Store Connect](https://appstoreconnect.apple.com/).
2. Open **Users and Access** → **Integrations** → **App Store Connect API**.
3. Create a new **key** with a role for builds and releases, usually **App Manager** or **Developer**.
4. Download the private key file (`.p8`); Apple offers the download only once.

From the same screen, note the **Key ID** and the **Issuer ID** at the top of the API page.

## Team ID and team name

1. In the [Apple Developer portal](https://developer.apple.com/account), open the **Membership** details of your account.
2. Copy the **Team ID**, an identifier of ten characters.
3. Note the **team name** as the Developer portal displays it.

## Enter the values in the platform

Open **Store accounts**, click **Add access**, and choose the App Store account:

| Platform field | Source |
|---|---|
| App Store key ID | Key ID from App Store Connect |
| App Store issuer ID | Issuer ID from App Store Connect |
| App Store key value | full contents of the `.p8` file including `-----BEGIN PRIVATE KEY-----` |
| Developer team ID | Team ID from the Developer portal |
| Team name | display name of the team |

Click **Verify credentials** first. On success the platform shows the key ID and the apps it found, and only then can the entry be saved; if the check fails, verify the copied values and the role of the key.

## Replacing the key

If you suspect misuse, revoke the key in App Store Connect, create a new one, and update the entry in the platform.

After saving, you select the account on an app and with it the [bundle identifier]({{< relref "app-store-bundle-identifiers" >}}) from the list of your team.

