> For the complete documentation index, see [llms.txt](https://help.cleverapp.pro/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.cleverapp.pro/dlya-razrabotchikov/dokumentaciya-i-rabota-s-api/osnovy.md).

# Основы

Для доступа к API необходимо подключить **тарифный план PRO**.&#x20;

В каждом запросе API необходимо отправлять токен в GET-параметре `api_token`.Токен вы можете получить в [разделе](https://app.cleverapp.pro/account/api) <https://app.cleverapp.pro/account/api>

```http
https://app.cleverapp.pro/api/v1/method?api_token=Ваш API token
```

Так же необходимо передавать следующий заголовок:

```
X-Requested-With:XMLHttpRequest
```

## ID бота

В некоторых методах API необходимо отправлять ID бота, на рисунке изображено где его найти.

<figure><img src="/files/goTqp5f7iMRUqz81Ts5v" alt=""><figcaption><p>В данном случае ID Бота = 29454</p></figcaption></figure>

## Лимиты

К API сервиса CleverApp разрешено делать не более 2 запросов в секунду (120 запросов в минуту). Иначе API будет возвращать ошибку `429 Too Many Requests`&#x20;

Так же на некоторые методы могут накладываться свои ограничения.

{% hint style="danger" %}
Запрещено хранить токен в открытом виде, например в клиентских приложениях, где любой желающий может посмотреть этот токен.
{% endhint %}

{% content-ref url="/pages/nhgDnXcuiEjiOLm6dur1" %}
[Аккаунт](/dlya-razrabotchikov/dokumentaciya-i-rabota-s-api/akkaunt.md)
{% endcontent-ref %}

{% content-ref url="/pages/qsp1qSUYiO9rhokMtwzw" %}
[Контакты](/dlya-razrabotchikov/dokumentaciya-i-rabota-s-api/kontakty.md)
{% endcontent-ref %}

{% content-ref url="/pages/LHPkPZvEMHUCiX6jkRrA" %}
[Списки](/dlya-razrabotchikov/dokumentaciya-i-rabota-s-api/spiski.md)
{% endcontent-ref %}

{% content-ref url="/pages/fuFmIv64zU4AwcObRbt9" %}
[Сообщения](/dlya-razrabotchikov/dokumentaciya-i-rabota-s-api/soobsheniya.md)
{% endcontent-ref %}

{% content-ref url="/pages/tlPpEiJK9kf1urRFLCuY" %}
[Рассылка](/dlya-razrabotchikov/dokumentaciya-i-rabota-s-api/rassylka.md)
{% endcontent-ref %}


---

# 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:

```
GET https://help.cleverapp.pro/dlya-razrabotchikov/dokumentaciya-i-rabota-s-api/osnovy.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.
