# Проверка баланса

API `get_balance` предоставляет возможность получения баланса пользователя на платформе `paysync.bot`. Для доступа к этому API необходимо использовать ваш уникальный API-ключ, который вы можете получить, следуя указанным ниже инструкциям.

Пример запроса

Выполните GET-запрос к следующему URL, подставив ваш API-ключ вместо `{api_key}`:

```url
https://paysync.bot/get_balance/{api_key}
```

Пример ответа

**JSON**

Успешная оплата

```
{
"balance": 100.50
}
```

Если при выполнении запроса возникнут ошибки, API вернет соответствующий статус и описание ошибки в формате JSON.

Пример ошибки

```
{"error":"Неправильный API ключ"}
```


---

# 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://docs.paysync.bot/obshee/proverka-balansa.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.
