# App Store Connect API

{% hint style="info" %}
This feature will be available soon
{% endhint %}

With Updraft you can distribute your iOS builds to TestFlight easily. To make this possible, you need to add an Apple Connect Key to your project.&#x20;

#### **Requirements:**

* Be an Admin or Account Holder on the App Store Connect website
* Be an Owner of the Project on Updraft

### Create a App Store Connect API Key

1. Log in to [App Store Connect](https://appstoreconnect.apple.com/)
2. **Check if the correct Team is selected in the top right corner**&#x20;
3. Select *Users and Access*.<br>

   <figure><img src="https://1499220200-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LDXK35bj42Hdun3u_Zb-165900098%2Fuploads%2FkkDzIeuYxClauZOZpuFu%2Fimage.png?alt=media&#x26;token=182eb739-e655-4312-a9d3-473212646a46" alt=""><figcaption></figcaption></figure>
4. Go to the *Integrations* tab.
5. Click on the Add (**+**) button.
6. Enter a name for the key. The name is for your reference only and is not part of the key itself.
7. Under *Access*, select the **role for the key**. The roles that apply to keys are the same roles that apply to users on your team.
8. Click *Generate*. The new key’s name, key ID, a download link, and other information appears on the page.
9. **Download and Store the Private Key**.&#x20;

{% hint style="warning" %}
The private key is available for download **only once**. Apple does not keep a copy of the private key. Store your private key in a safe place!
{% endhint %}

### Add the API Key to Updraft

1. Login with an Owner Account on [Updraft](https://u2.getupdraft.com/login)
2. Go to the *Profile* section on the left and then *Developer Accounts*<br>

   <figure><img src="https://1499220200-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LDXK35bj42Hdun3u_Zb-165900098%2Fuploads%2F4uXjkG7S4H0QL0r0eOgm%2Fimage.png?alt=media&#x26;token=b2a9fc2a-7ec8-46c7-bf74-0a5117ada414" alt=""><figcaption><p>The Integrations tab under Profile > Developer Accounts</p></figcaption></figure>
3. Now click on *App Store Connect API* under *new Integration*
4. Upload your **.p8** file which you just downloaded from the [App Store Connect page](https://appstoreconnect.apple.com/access/integrations/api)
5. Insert the Key Name, Issuer ID and Key ID from the [same App Store Connect page](https://appstoreconnect.apple.com/access/integrations/api)
6. Press Save

That's it, well done!&#x20;
