> For the complete documentation index, see [llms.txt](https://docs.iexexchanger.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.iexexchanger.com/get-started/exchanger-api/nachalo-raboty/roles-and-responsibilities.md).

# Кто что делает: администратор, клиент, разработчик

Подключение API обычно проходит через три роли: администратор обменника, клиент и разработчик интеграции. Если эти роли не разделить, легко потерять ключ, выдать лишние права или не понять, почему запрос получает `403`.

## Коротко

| Роль          | Что делает                                                                                                    |
| ------------- | ------------------------------------------------------------------------------------------------------------- |
| Администратор | Включает API, разрешает клиенту доступ, задает scopes, лимиты, HMAC и IP allow-list.                          |
| Клиент        | Создает API-ключ в личном кабинете, сохраняет Bearer token и HMAC secret, передает их разработчику безопасно. |
| Разработчик   | Подключает API в своем приложении, отправляет запросы, подписывает HMAC, обрабатывает ошибки и webhooks.      |

## Общий порядок подключения

1. Администратор включает API в настройках обменника.
2. Администратор разрешает API конкретному клиенту.
3. Администратор назначает клиенту или ключу нужные права.
4. Клиент заходит в личный кабинет и создает API-ключ.
5. Клиент сразу сохраняет Bearer token и HMAC secret.
6. Разработчик добавляет ключи в безопасное хранилище своего приложения.
7. Разработчик проверяет `GET /ping` и `GET /private/health/client`.
8. Интеграция получает направления обмена и создает тестовую заявку.
9. Перед production включаются webhooks, HMAC и idempotency.

## Что нельзя делать

* Нельзя отправлять Bearer-токен в браузер, мобильное приложение или frontend-код.
* Нельзя хранить token и HMAC secret в GitHub.
* Нельзя давать ключу все scopes “на всякий случай”.
* Нельзя создавать заявки без `Idempotency-Key`.
* Нельзя доверять webhook без проверки подписи.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.iexexchanger.com/get-started/exchanger-api/nachalo-raboty/roles-and-responsibilities.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
