# Authentication

All Aterio API endpoints require an API key for access. This key must be included in the request header using the `x-api-key` field. API keys are issued to verified partners and customers.

#### EXAMPLE

To authenticate a request, include the following header:

```bash
x-api-key: your-api-key
```

#### SAMPLE REQUEST

{% tabs %}
{% tab title="Bash" %}

```bash
curl --request GET \
  --url https://api.aterio.io/v1/selected-endpoint?param1=value1&param2=value2 \
  --header 'x-api-key: your-api-key'
```

{% endtab %}

{% tab title="Javascript" %}

```javascript

fetch("https://api.aterio.io/v1/selected-endpoint?param1=value1&param2=value2", {
  method: "GET",
  headers: {
    "x-api-key": "your-api-key"
  }
})
  .then(response => response.json())
  .then(data => console.log(data))
  .catch(error => console.error("Error:", error));
```

{% endtab %}

{% tab title="Python" %}

```python
import requests

response = requests.get(
    "https://api.aterio.io/v1/selected-endpoint",
    headers={"x-api-key": "your-api-key"},
    params={"param1": "value1"}
)

data = response.json()
print(data)
```

{% endtab %}
{% endtabs %}

#### GETTING THE API KEY

To request access to the API and receive your unique key, please contact our [sales team](https://www.aterio.io/contact-us). Pricing details will also be provided during this process.


---

# 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://knowledge.aterio.io/data-integrations/general-api-guide/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.
