# Авторизация клиента

#### Базовый URL

`https://external.api.nbcgate.tech`

#### Формат запросов

* Метод: `POST`
* Заголовок: `Content-Type: application/json`
* Авторизация: передавайте API-ключ в заголовке:
  * `X-API-Key: <ВАШ_ИНТЕГРАЦИОННЫЙ_КЛЮЧ>`

#### Ошибки авторизации

Запросы к API отклоняются, если ключ не передан или неактивен/просрочен:

* `401` — если заголовок `X-API-Key` отсутствует (`4016`)
* `401` — если ключ не найден / отключен / истёк (`4017`)

Текст ошибки возвращается в формате:

* `statusCode`
* `message`
* `errors[]` (с `code` и при необходимости `field`)


---

# 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://integration.nbcgate.com/avtorizaciya-klienta.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.
