# App Store In-app Purchase API key

1. Open **App Store Connect**. Proceed to [**Users and Access** → **Integrations** → **In-App Purchase**](https://appstoreconnect.apple.com/access/integrations/api/subs) section. *If you don't see In-app purchase section then ask your App Store admin to help you.*&#x20;
2. Then click the **Plus (+)** button next to the **Active** title. The **Generate&#x20;*****App Store Connect** API*  **Key** window will open.
3. Enter the name of the key for your future reference (this name is not used in SurgeGrowth).
4. Set Access level to **App Manager**\ <br>

   <figure><img src="/files/8rIrRe0HMnEvmHpGRo5J" alt=""><figcaption></figcaption></figure>
5. Click the **Generate** button. Once the **Generated,** window closes, you'll see the created key in the **Active** list.<br>
6. After generating your API key, click the **Download App Store Connect API Key** button to get the key as a file.\
   \&#xNAN;*Keep this file safe to later upload it to SurgeGrowth. Please keep in mind that the generated file can be downloaded only once, so store it safely until you upload it to SurgeGrowth.*&#x20;
7. Copy the values of **Issuer ID** and **Key ID** fields from this screen as well. Later you will use them in SurgeGrowth.

<figure><img src="/files/RDRfZQOHbuKoSeUDNu5h" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.surgegrowth.io/miscellaneous/app-store-in-app-purchase-api-key.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
