> 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/start/sdk.md).

# SDK for Work with API

**The SDK** is a set of ready-made functions for calling the Trybit API: it handles request building, passing the authorization key and parsing responses. Using the SDK is optional — you can integrate directly via the API using the code examples in the API Reference V2 section.

### Where to download the SDK

The SDK archive is built for API V2.

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

### How to connect the SDK

1. **Download** the SDK.zip archive on this page.
2. **Add** the SDK files to your project and include them in your code.
3. **Specify** the API KEY, SHOP ID and SECRET KEY — preferably via environment variables. → [Getting API Keys](/start/get-api-keys.md)
4. **Check that it works:** create a test invoice and process the POSTBACK. → [Testing the Integration](/start/test-integration.md)

### How to integrate without the SDK

All API V2 methods are described with request examples in cURL, Python, JavaScript and PHP. Start with these pages:

* [Request Authorization](/api-reference-v2/authorization.md) — the Authorization header format.
* [Create Invoice](/api-reference-v2/create-invoice.md) — request and response parameters.
* [Automatic POSTBACK](/api-reference-v2/postback.md) — notification parameters and handler examples.

### Where to report an SDK error

If the SDK does not work correctly or you need an SDK for another language, contact our support chat on the website and in the dashboard, or reach us on Telegram. Support contacts are listed on our [website](https://trybit.com/support).


---

# 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/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.
