# API документация

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

Для доступа к API Tribute необходимо получить API-ключ через панель автора.

### Как получить API-ключ

1. **Откройте Панель Автора**: Перейдите в свою панель автора Tribute
2. **Перейдите в Настройки**: Нажмите на три точки (⋯) в меню
3. **Откройте раздел API-ключи**: Выберите пункт "API Keys" в меню настроек
4. **Создайте новый ключ**: Нажмите кнопку "Generate API Key"
5. **Скопируйте и сохраните**: Скопируйте сгенерированный ключ и сохраните его в безопасном месте

### Использование API-ключа

API-ключ передаётся в заголовке `Api-Key` в каждом HTTPS-запросе к API.

#### Пример с использованием curl:

```bash
curl -X GET \
  'https://tribute.tg/api/v1/products' \
  -H 'Api-Key: your_api_key_here'
```


---

# 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://wiki.tribute.tg/ru/api-dokumentaciya.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.
