> For the complete documentation index, see [llms.txt](https://docs.trybit.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.trybit.com/ru/start/sdk.md).

# SDK для работы с API

Готовый архив для работы с API Trybit V2 и интеграция без SDK.

**SDK** — набор готовых функций для обращения к API Trybit: он берет на себя формирование запросов, передачу ключа авторизации и разбор ответов. Использовать SDK необязательно — интеграцию можно провести напрямую по API, пользуясь примерами кода из раздела API Reference V2.

### Где скачать SDK

Архив SDK собран под API V2.

{% file src="/files/MxTStgOejeMj7FYTPqEv" %}

### Как подключить SDK

1. **Скачайте архив** SDK.zip на этой странице.
2. **Добавьте файлы SDK в проект** и подключите их в коде.
3. **Укажите ключи** API KEY, SHOP ID и SECRET KEY — лучше через переменные окружения. → [Получение API ключей](/ru/start/get-api-keys.md)
4. **Проверьте работу:** создайте тестовый счет и обработайте POSTBACK. → [Тестирование интеграции](/ru/start/test-integration.md)

### Как провести интеграцию без SDK

Все методы API V2 описаны с примерами запросов на cURL, Python, JavaScript и PHP. Начните со страниц:

* [Авторизация запросов](/ru/api-reference-v2/authorization.md) — формат заголовка Authorization.
* [Создание счета](/ru/api-reference-v2/create-invoice.md) — параметры запроса и ответа.
* [Автоматический POSTBACK](/ru/api-reference-v2/postback.md) — параметры уведомления и примеры обработчиков.

### Куда сообщить об ошибке в SDK

Если SDK работает некорректно или нужен SDK для другого языка, вы можете обратиться в наш чат поддержки на сайте и в личном кабинете, а также связаться с нами в Telegram. Контакты поддержки указаны [на нашем сайте](https://trybit.com/support).

> Мы регулярно работаем над улучшением документации сервиса для разработчиков. Пожалуйста, оцените качество и полезность материалов [по ссылке](https://survey.zohopublic.eu/zs/G6TdRh).


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.trybit.com/ru/start/sdk.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
