# API Authentication

Our API uses **API Key authentication** to ensure secure access. Only **Admin users** can generate API keys, while **Member users** do not have permission to create or manage keys. This ensures that only authorized users can access and integrate the API.

#### Generating an API Key

To obtain an API key:

1. Navigate to **Settings** in the UI.
2. Go to the **API Keys** section.
3. Click **+ Add**.
4. Input a label for the key, optionally set an expiration date and click **Add Key**.
5. Copy and securely store the key, as it will not be shown again.

<figure><img src="/files/0S6V62hMo7CutikGayyM" alt=""><figcaption><p>API Keys settings section</p></figcaption></figure>

#### Using the API Key

Once you have generated an API key, include it in the request header for authentication:

```
X-API-Key: YOUR_API_KEY
```

Example request using `curl`:

```
curl -X GET "https://partner.aboutyou.com/api/v1/products" \
     -H "X-API-Key: YOUR_API_KEY"
```


---

# 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.partner.aboutyou.com/api/getting-started/api-authentication.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.
