Reseller API

TGLift API

API

Key

Your API key

Checking...

Do not share your API key. If it leaks, rotate it immediately.

Base URL

Connection

https://tglift.ru/api/v1
Header: X-API-Key: tgl_xxx
Order creation: Idempotency-Key: unique_key
Content-Type: application/x-www-form-urlencoded
Get an API key after registration

Methods

API methods

MethodPurposeParameters
servicesAvailable service cataloglocale, currency
addCreate an order or requestservice, link, quantity
statusCheck order statusorder
ordersRecent account orders-
balanceAccount balance-
refillRequest refill if availableorder
cancelRequest cancellation if availableorder

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"

Node.js

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());

Python

import requests

response = requests.post(
    "https://tglift.ru/api/v1",
    headers={"X-API-Key": "tgl_xxx"},
    data={"action": "balance"},
)
print(response.json())

PHP

$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);

Errors

401API key is missing or invalid.
409Idempotency-Key was already used with different parameters.
400Invalid request parameters.
402Not enough funds when balance deduction is enabled.
502The provider did not respond or returned an error.

Limits and processing

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.