# Подключение к API

Для генерации нового токена перейдите во вкладку **«API»** из Главного меню и нажмите кнопку **«Создать»**.

Чтобы безвозвратно сбросить токен нажмите **«Отозвать»**.

{% hint style="danger" %}
**Внимание!** В токене *НЕ* используется ваш личный *Telegram ID*, это случайное число, которое генерируется при регистрации, необходимое для обеспечения более высокого уровня конфиденциальности и безопасности ряда систем.
{% endhint %}

<figure><img src="/files/atNuKjEnaDLsKMQiVg0k" alt="" width="375"><figcaption><p>Скриншот 1. Управление токеном.</p></figcaption></figure>

Вы также можете установить Webhook-сервер, что делать *необязательно*, если вы не планируете использовать соответствующие функции, но мы настоятельно рекомендуем взаимодействовать с API вместе с Webhook-сервером.

#### Документация к API доступна по [ссылке](https://api.kservers.pro).


---

# 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://info.kservers.pro/cp/api.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.
