# Авторизация

Для авторизации каждого запроса к API в заголовке `Authorization` необходимо передать ваш API KEY следующим образом:

```
Authorization: Bearer <API KEY>
```

**Пример запроса с токеном**

Пример испольщования заголовка `Authorization` в запросе к API:

```bash
curl -X GET "https://api.hifivp.nl/v1/clients" \
  -H "Authorization: Bearer <API KEY>"
```

{% hint style="info" %}
Отправлять отдельный запрос на авторизацию не нужно.  API KEY необходимо передавать в заголовке Authorization каждого запроса.
{% endhint %}

**Возможные ошибки**

<table><thead><tr><th width="100">Код</th><th>Ошибка</th><th>Описание</th></tr></thead><tbody><tr><td>401</td><td>AUTHORIZATION_HEADER_REQUIRED</td><td>Требуется заголовок Authorization</td></tr><tr><td>401</td><td>INVALID_AUTHORIZATION_FORMAT</td><td>Недопустимый формат авторизации. Используется: Bearer &#x3C;API TOKEN></td></tr><tr><td>403</td><td>INVALID_TOKEN</td><td>Неверный токен</td></tr><tr><td>401</td><td>SIGNATURE_HEADER_REQUIRED</td><td>Для этой операции требуется заголовок X-Signature</td></tr><tr><td>403</td><td>INVALID_SIGNATURE</td><td>Неверный секретный ключ</td></tr></tbody></table>


---

# 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://help.hifivp.nl/nachalo-raboty/avtorizaciya.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.
