> ## Documentation Index
> Fetch the complete documentation index at: https://docs.castled.io/llms.txt
> Use this file to discover all available pages before exploring further.

# iOS Authentication Key Setup

### 1. Sign-in to [apple developer center](https://idmsa.apple.com/IDMSWebAuth/signin?appIdKey=891bd3417a7776362562d2197f89480a8547b108fd934911bcbea0110d07f757\&path=%2Faccount%2F\&rv=1).

### 2. Select the **Keys** option in Certificates, Identifiers & Profiles tab

![Key Config](https://mintlify.s3-us-west-1.amazonaws.com/castled/images/ios-auth-2.png)

### 3. Click on **Create**.

![Key Create](https://mintlify.s3-us-west-1.amazonaws.com/castled/images/ios-auth-3.png)

### 4. Give a name for the key. Also, enable Apple Push Notifications service (APNs)

![Key New](https://mintlify.s3-us-west-1.amazonaws.com/castled/images/ios-auth-4.png)

### 5. Click **Register**.

### 6. Download the key. Note down the **Key ID** which will be later used when configuring APNS in Castled.

![](https://mintlify.s3-us-west-1.amazonaws.com/castled/images/ios-auth-6.png)

### 7. `Team ID` can be obtained by going to the **Membership details** tab after logging into the apple developer account.

![](https://mintlify.s3-us-west-1.amazonaws.com/castled/images/ios-auth-7.png)

### 8. `Bundle ID` can be obtained from Xcode by navigating to **Signing & Capabilities** tab.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.