curl
curl -X POST https://tglift.ru/api/v1 \ -H "X-API-Key: tgl_xxx" \ -H "Idempotency-Key: order-20260712-0001" \ -d "action=add" \ -d "service=631" \ -d "link=https://t.me/channel/1" \ -d "quantity=1000"
Reseller API
Key
Checking...
Do not share your API key. If it leaks, rotate it immediately.
Base URL
https://tglift.ru/api/v1 Header: X-API-Key: tgl_xxx Order creation: Idempotency-Key: unique_key Content-Type: application/x-www-form-urlencodedGet an API key after registration
Methods
| Method | Purpose | Parameters |
|---|---|---|
services | Available service catalog | locale, currency |
add | Create an order or request | service, link, quantity |
status | Check order status | order |
orders | Recent account orders | - |
balance | Account balance | - |
refill | Request refill if available | order |
cancel | Request cancellation if available | order |
curl -X POST https://tglift.ru/api/v1 \ -H "X-API-Key: tgl_xxx" \ -H "Idempotency-Key: order-20260712-0001" \ -d "action=add" \ -d "service=631" \ -d "link=https://t.me/channel/1" \ -d "quantity=1000"
const body = new URLSearchParams({
action: "status",
order: "RQ-..."
});
const res = await fetch("https://tglift.ru/api/v1", {
method: "POST",
headers: { "X-API-Key": "tgl_xxx" },
body
});
console.log(await res.json());
import requests
response = requests.post(
"https://tglift.ru/api/v1",
headers={"X-API-Key": "tgl_xxx"},
data={"action": "balance"},
)
print(response.json())
$ch = curl_init("https://tglift.ru/api/v1");
curl_setopt_array($ch, [
CURLOPT_POST => true,
CURLOPT_HTTPHEADER => ["X-API-Key: tgl_xxx"],
CURLOPT_POSTFIELDS => http_build_query([
"action" => "services"
]),
CURLOPT_RETURNTRANSFER => true
]);
echo curl_exec($ch);
Send the API key only in the X-API-Key header. Generate a unique Idempotency-Key for every new order and reuse that key for network retries. The API uses protection against excessive requests. Do not use the key in browser frontend code and do not publish it in repositories.