# Authentication

This section explains how to use the API key to verify access rights to the user API.

#### **Required headers** <a href="#id-9b4hjtvenr8n" id="id-9b4hjtvenr8n"></a>

Every API request must include the following header:

| **Title** | **Value**      | **Description**                         |
| --------- | -------------- | --------------------------------------- |
| X-API-Key | your\_API\_key | The API key obtained in your dashboard. |

If the header is not provided or is incorrect, the API will return an authentication error.

#### **Request example** <a href="#fsw4huxyofnh" id="fsw4huxyofnh"></a>

Here is a standard example of using this header in the command line:

curl -H "X-API-Key: your-api-key-here" \\

"<https://your-domain.com/api/v1/partner/referral-exchanges>"

In this example:

* curl — an HTTP client in the command line.<br>
* X-API-Key — the required header that passes your key.<br>
* <https://your-domain.com/api/v1/partner/referral-exchanges> — the endpoint being requested.
