Partner API
Powerful REST API for seamless partner integrations. Build, connect, and automate with confidence.
v1.0 — stableOverview
The Partner API lets partner applications check stock, view account details, and purchase Telegram accounts automatically — all via HTTP requests.
BASE_URL/api/v1/. The base URL is shown in your bot profile under Hamkorlik API.
Base URL
https://api.vokky.uz
Authentication
Every request (except /api/v1/info) requires your personal API key. Get it from the bot: Profile → Hamkorlik API.
Pass your key via Header (recommended)
curl https://api.vokky.uz/api/v1/balance \ -H "X-API-Key: YOUR_API_KEY"
Or via query parameter
curl "https://api.vokky.uz/api/v1/balance?api_key=YOUR_API_KEY"
Rate Limits
Limits are per API key, per 60-second rolling window.
| Endpoint | Limit |
|---|---|
| All endpoints | 60 requests / minute |
| POST /api/v1/buy | 10 requests / minute |
429 Too Many Requests.Error Codes
All errors return JSON with a status, code, and message field.
{
"status": "error",
"code": 401,
"message": "Invalid API key."
}
Endpoints
Returns API metadata. Useful for checking if the server is alive.
Response
{
"status": "success",
"api": "Partner API",
"version": "1.0",
"endpoints": { ... },
"contact": "@support"
}
Returns your current bot balance, total spent, and order count.
Request
curl https://api.vokky.uz/api/v1/balance \ -H "X-API-Key: YOUR_API_KEY"
Response
{
"status": "success",
"user_id": 123456789,
"balance": 150000.0,
"balance_formatted": "150,000 so'm",
"total_spent": 80000.0,
"orders_count": 4
}
Returns the current number of available accounts for each country.
Request
curl https://api.vokky.uz/api/v1/stock \ -H "X-API-Key: YOUR_API_KEY"
Response
{
"status": "success",
"total_available": 247,
"countries": {
"UZ": 45,
"RU": 102,
"KZ": 31,
"UA": 69
}
}
Returns full details for a single LZT marketplace item including price in so'm.
Path Parameter
| Parameter | Type | Description |
|---|---|---|
| item_id | integer | LZT item ID required |
Request
curl https://api.vokky.uz/api/v1/item/123456 \ -H "X-API-Key: YOUR_API_KEY"
Response
{
"status": "success",
"item": {
"item_id": 123456,
"title": "Telegram | UZ | +998...",
"price_rub": 85.0,
"price_uzs": 12750,
"country": "UZ",
"premium": false,
"spam_block": false,
"contacts": 312,
"chats": 5,
"channels": 2
}
}
Purchases the cheapest available account for the given country. Balance is deducted automatically.
Request Body (JSON)
| Field | Type | Description |
|---|---|---|
| country | string | 2-letter country code (e.g. "UZ", "RU") required |
| max_price | integer | Max price in so'm optional |
| spam_allowed | boolean | Allow accounts with spam block. Default: false optional |
Request
curl -X POST https://api.vokky.uz/api/v1/buy \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"country": "UZ",
"max_price": 30000,
"spam_allowed": false
}'
Python example
import requests
response = requests.post(
"https://api.vokky.uz/api/v1/buy",
headers={"X-API-Key": "YOUR_API_KEY"},
json={"country": "UZ", "max_price": 30000}
)
data = response.json()
if data["status"] == "success":
print("Login:", data["login"])
print("Password:", data["password"])
Response
{
"status": "success",
"order_id": 42,
"item_id": 123456,
"title": "Telegram | UZ | +998...",
"country": "UZ",
"price_uzs": 12750,
"remaining_balance": 137250,
"login": "+998901234567",
"password": "SecretPass123"
}
Status codes
country field