Sell proxies from your own app — automatically.
Order every proxy, sub-user and CD key available in the GateProxy bot over a simple HTTPS JSON API. Orders are paid from your bot balance and delivered in seconds.
🤖 Building an integration with an AI assistant? Give it these three links — they fully describe every endpoint, the sandbox and the balance API.
Get API access
API access is invite-only and approved manually to keep the platform safe.
/api.Authentication
Send your key in the Authorization header on every request.
Authorization: Bearer gpk_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
- Keys are
gpk_live_…(live),gpk_test_…(test/sandbox), orgpk_read_…(read-only).X-API-Key: <key>is also accepted. - Read-only key
gpk_read_…(generate it in the bot): reads balance, products, orders and transactions, but can never buy (403 read_only_key). Use it for dashboards and monitoring. - Never put the key in a URL — requests with
?api_key=or?token=are rejected withkey_in_url. - We only store a fingerprint of your key. If you lose it, generate a new one (the old one stops working instantly).
- Too many invalid keys from one IP automatically blocks that IP for 1 hour.
Quick start
Check your balance, list products, then buy a 1 GB plan.
# 1. who am I + balance curl https://api.gateproxy.store/v1/me \ -H "Authorization: Bearer $GATEPROXY_API_KEY" # 2. available products and your prices curl https://api.gateproxy.store/v1/products \ -H "Authorization: Bearer $GATEPROXY_API_KEY" # 3. place an order (Idempotency-Key makes retries safe) curl -X POST https://api.gateproxy.store/v1/orders \ -H "Authorization: Bearer $GATEPROXY_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: order-1001" \ -d '{"product":"dataimpulse","plan":"1"}'
import os, uuid, requests API = "https://api.gateproxy.store/v1" S = requests.Session() S.headers["Authorization"] = f"Bearer {os.environ['GATEPROXY_API_KEY']}" print(S.get(f"{API}/me", timeout=20).json()) products = S.get(f"{API}/products", timeout=20).json()["products"] r = S.post(f"{API}/orders", json={"product": "dataimpulse", "plan": "1"}, headers={"Idempotency-Key": str(uuid.uuid4())}, timeout=120) data = r.json() if r.status_code == 201: print("delivered:", data["order"]["delivery"]) elif r.status_code == 202: print("processing / under review:", data["order"]["id"]) else: print("failed:", data["error"]["code"], data["error"]["message"])
const API = "https://api.gateproxy.store/v1"; const headers = { Authorization: `Bearer ${process.env.GATEPROXY_API_KEY}` }; const me = await (await fetch(`${API}/me`, { headers })).json(); console.log(me.balance_usd); const res = await fetch(`${API}/orders`, { method: "POST", headers: { ...headers, "Content-Type": "application/json", "Idempotency-Key": crypto.randomUUID() }, body: JSON.stringify({ product: "dataimpulse", plan: "1" }), }); const data = await res.json(); if (res.status === 201) console.log(data.order.delivery); else if (res.status === 202) console.log("poll", data.order.id); else console.error(data.error.code, data.error.message);
<?php $api = "https://api.gateproxy.store/v1"; $ch = curl_init("$api/orders"); curl_setopt_array($ch, [ CURLOPT_POST => true, CURLOPT_RETURNTRANSFER => true, CURLOPT_TIMEOUT => 120, CURLOPT_HTTPHEADER => [ "Authorization: Bearer " . getenv("GATEPROXY_API_KEY"), "Content-Type: application/json", "Idempotency-Key: " . bin2hex(random_bytes(12)), ], CURLOPT_POSTFIELDS => json_encode(["product" => "dataimpulse", "plan" => "1"]), ]); $body = json_decode(curl_exec($ch), true); $code = curl_getinfo($ch, CURLINFO_HTTP_CODE); if ($code === 201) print_r($body["order"]["delivery"]); else echo $body["error"]["code"] ?? "processing";
Conventions
| Topic | Rule |
|---|---|
| Base URL | https://api.gateproxy.store/v1 — HTTPS only. |
| Bodies | JSON, Content-Type: application/json, max 16 KB. |
| Money | All prices and balances are in USD (same balance as the bot). |
| Plans | A plan is the size in GB as a string: "1", "5", "0.12" (120 MB). |
| Times | ISO-8601 in UTC, e.g. 2026-10-02T08:15:00+00:00. |
| Request ID | Every response has an X-Request-Id header — include it when contacting support. |
| Errors | Non-2xx responses return {"error": {"code", "message", "request_id"}}. |
Sandbox — test everything safely before going live
Every endpoint has a sandbox mode. Use a test key and nothing real happens — no balance is charged and no real proxy is created, so you can build and test your whole integration first.
gpk_test_.201 completed with fake delivery and "sandbox": true.gpk_live_ key. Nothing else changes.Live key gpk_live_ | Test key gpk_test_ (sandbox) |
|---|---|
| Charges your real balance | Never charges — /me shows a fixed sandbox balance |
| Creates a real proxy / CD key at the provider | Returns fake credentials (sandbox.gateproxy.store) |
| Orders appear in your history & the dashboard | Orders are in-memory only (kept ~1 hour), never in production data |
| Balance API returns real provider usage | Balance API returns simulated usage |
curl -X POST https://api.gateproxy.store/v1/orders \ -H "Authorization: Bearer gpk_test_xxxxxxxx" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: sandbox-0001" \ -d '{"product":"dataimpulse","plan":"1"}' # 201 Created { "order": { "id": "ord_test_54925293a1fde17a3209fe5f", "status": "completed", "charged": false, "sandbox": true, "delivery": { "type": "subuser", "server": "sandbox.gateproxy.store", "port": 10000, "username": "sandbox_…", "password": "…" } } }
Selectable scenarios
Send X-Sandbox-Scenario with a test key only; live keys ignore it. Unknown values return 400 invalid_sandbox_scenario with allowed.
| Scenario | Result |
|---|---|
success | 201 completed. |
processing | 202 processing; completes by itself after about 15 seconds—poll GET order. |
review | 202 manual review. |
provider_error | 502, failed, nothing charged. |
out_of_stock / product_unavailable / price_changed | 409. |
insufficient_balance | 402. |
rate_limited | 429 with Retry-After: 5. |
curl -X POST https://api.gateproxy.store/v1/orders \
-H "Authorization: Bearer $GATEPROXY_TEST_KEY" \
-H "X-Sandbox-Scenario: processing" \
-H "Idempotency-Key: sandbox:demo:001" \
-H "Content-Type: application/json" \
-d '{"product":"dataimpulse","plan":"1"}'Order safety guarantees
You are never charged for an order you did not receive, and you never get a proxy you did not pay for.
The price was deducted and the credentials are in order.delivery.
Nothing was charged (or it was refunded instantly). error.code and error.message explain why.
The provider did not answer in time. Your payment is held while an admin verifies — you get the proxy or a full refund.
Rarely an order cannot even be started after your balance was reserved. You then get 500 internal_error and the price is refunded at once — the message says so. If that refund also fails you get 500 refund_pending: the order is held in review and an admin refunds it. Both include order_id.
GET /v1/orders/{id} instead. A new key creates a second, separate order.Idempotency
Send a unique Idempotency-Key header (8–64 chars: letters, digits, _ - : .) with every POST /v1/orders. If your network drops and you retry with the same key, you receive the original order instead of buying twice ("idempotent_replay": true). Reusing a key with a different product/plan returns 409 idempotency_conflict — also when both requests arrive at the same moment.
- A replay returns
200when the original order is finished and202while it is still processing. - Without a key, a retried request is a new order and can buy twice.
- Batch keys are also bound to
quantity.
Rate limits
| Limit | Default | Response when exceeded |
|---|---|---|
| Requests per API key | 60 / minute | 429 rate_limited + Retry-After |
| Orders per account | 10 / minute | 429 order_rate_limited |
| Orders processing at once | 3 | 429 too_many_inflight_orders |
| Requests per IP | 10 / second (burst 30) | 429 rate_limited |
| Daily spend (optional) | set by admin | 403 daily_limit_reached — exact, parallel orders cannot pass it together |
| Orders refused for low balance | 5 within 10 min | next orders get 402 with Retry-After for 60 s (or until you top up) |
| Deposit checks | 6 / minute | 429 rate_limited |
Each authenticated response includes X-RateLimit-Limit and X-RateLimit-Remaining. Need higher limits? Ask support — limits are set per account.
Endpoints
Health check
/v1/healthno auth{ "status": "ok", "time": "2026-10-02T08:15:00+00:00", "version": "1.0" }Account
/v1/meAPI key{
"user_id": 123456789,
"status": "approved",
"balance_usd": 25.4,
"pricing_tier": "standard", // standard | reseller | custom
"key": { "id": "key_4f1a9c2b7e01", "hint": "gpk_live_Ab3x…9QzK" },
"ip_whitelist": ["203.0.113.10"],
"limits": { "requests_per_minute": 60, "orders_per_minute": 10, "max_inflight_orders": 3, "daily_spend_limit_usd": null }
}Balance
/v1/balanceAPI key{ "balance_usd": 25.4, "currency": "USD" }List products
/v1/productsAPI keyReturns only products that are currently on sale, with your prices in USD and BDT (price_bdt). CD-key products include live stock. "custom_pricing": true means an admin set a special price for you on that product.
{
"products": [
{
"id": "dataimpulse", "name": "DataImpulse Proxy", "type": "subuser", "refundable": false,
"plans": [ { "plan": "1", "label": "1 GB", "price_usd": 1.1, "in_stock": true } ]
},
{
"id": "9proxy-cdkey", "name": "9 Proxy CD Key", "type": "cdkey", "refundable": false,
"plans": [ { "plan": "1", "label": "1 GB", "price_usd": 1, "in_stock": true, "stock": 14 } ]
}
]
}Get one product
/v1/products/{product_id}API keySame object as one item of the list above, under "product".
Create an order
/v1/ordersAPI key| Field | Type | Description |
|---|---|---|
product required | string | Product id from /v1/products, e.g. dataimpulse. |
plan required | string | Plan size in GB, e.g. "1". |
max_price_usd | number | Optional. If your price is now higher, the order is refused with 409 price_changed and nothing is charged. |
Idempotency-Key header | string | Strongly recommended. Makes retries safe. |
The request waits until the proxy is delivered (usually 2–15 s, up to 90 s). Use a client timeout of at least 120 seconds.
{
"order": {
"id": "ord_5c1f0b9a2e7d43a1b6c8d901",
"status": "completed",
"product": "dataimpulse", "plan": "1", "plan_label": "1 GB",
"price_usd": 1.1, "charged": true,
"created_at": "2026-10-02T08:15:02+00:00", "completed_at": "2026-10-02T08:15:06+00:00",
"delivery": {
"type": "subuser", "protocol": "HTTP/SOCKS5",
"server": "gw.dataimpulse.com", "port": 824,
"username": "a1b2c3d4_cr.ye", "password": "Xy7…", "subuser_id": "884512"
}
}
}{
"error": {
"code": "insufficient_balance",
"message": "Your balance is too low for this order. Nothing was charged.",
"balance_usd": 0.4, "price_usd": 1.1,
"order_id": "ord_…", "request_id": "req_9b2c4f1d0a6e7b38"
}
}{
"error": { "code": "provider_error", "message": "Traffic package unavailable", "refunded": true, "request_id": "req_…" },
"order": { "id": "ord_…", "status": "failed", "charged": false, … }
}List orders
/v1/orders?limit=20&status=completed&before=ord_…API keylimit 1–100 (default 20), optional status (processing, completed, failed, review, refunded), and before = the next_before value of the previous page.
{ "orders": [ { "id": "ord_…", "status": "completed", … } ], "next_before": "ord_…" }Get an order
/v1/orders/{order_id}API keyUse it to poll orders that returned 202 — or set a webhook instead. Completed orders always include the credentials again in delivery.
Buy several at once
/v1/orders/batchAPI keyBuys up to 10 of the same plan in one call. Orders run one after another; the first one that fails stops the rest (they come back as not_started). The Idempotency-Key header is required (8–56 chars); each order uses <key>:<index>, so retrying the same batch never buys twice. Returns 200 when every order completed, otherwise 207.
- The key is bound to product, plan and quantity. Retrying with another quantity gets
409 idempotency_conflicton the first item and buys nothing — use a new key for a new batch. - If an item failed on an earlier try, the retry returns that failed order and stops there; later items stay
not_started(withreason). completedcounts only orders whose status iscompleted.- A read-only key gets
403 read_only_key.
{ "product": "9proxy-cdkey", "plan": "1", "quantity": 3, "max_price_usd": 1.0 }{
"requested": 3, "completed": 2, "charged_usd": 2.0,
"orders": [
{ "index": 0, "http_status": 201, "order": { "id": "ord_…", "status": "completed", … } },
{ "index": 1, "http_status": 201, "order": { "id": "ord_…", "status": "completed", … } },
{ "index": 2, "http_status": 402, "error": { "code": "insufficient_balance", … } }
]
}Transactions
/v1/transactions?limit=50&type=purchase&before=…API keyEvery movement of your balance, newest first: purchase, refund, deposit, referral_commission, admin_credit, admin_debit, bonus. amount_usd is negative when money left your balance. Page with before = next_before.
{
"transactions": [
{ "id": "6f1c…", "type": "purchase", "amount_usd": -1.1, "balance_before_usd": 25.4, "balance_after_usd": 24.3,
"created_at": "2026-11-21T08:15:02+00:00" }
],
"next_before": "6f1c…"
}Top up with Binance Pay
/v1/deposits/infoAPI key/v1/deposits/verifylive keySend USDT or USDC with Binance Pay to the receiver_binance_id from /v1/deposits/info, then post the Binance Pay order ID. The amount is added to your balance in USD. Each payment can be credited once. Up to 6 checks per minute.
{ "method": "binance", "reference": "373856329861287936" }{ "deposit": { "status": "credited", "credited": true, "method": "binance", "amount_usd": 10.0, "reference": "…", "balance_usd": 35.4 } }404 not_found_yet: the payment is not visible yet — retry after Retry-After seconds. 409 reference_used: already credited.
Restock alerts
/v1/restock-alertsAPI keyFor CD-key products that are out of stock. Body { "product": "9proxy-cdkey", "plan": "1" }. When codes are added you get a Telegram message and, if you set a webhook, a stock.restocked event. A read-only key gets 403 read_only_key.
Webhooks
/v1/webhooklive key/v1/webhook/v1/webhooklive key/v1/webhook/testlive keySet an HTTPS URL on a public host: { "url": "https://example.com/gateproxy" }. The response contains a secret (whsec_…) that is shown only once; setting the URL again makes a new one. Setting, removing and testing the webhook need your live key (test keys get 403 live_key_required, read-only keys 403 read_only_key); any key can read it with GET. We POST JSON to your URL when:
order.updated— an order completed, failed, went to review, or an admin resolved it.data.orderis the same object asGET /v1/orders/{id}.stock.restocked— a plan you asked to watch is back.data={ "product", "plan" }.ping— sent byPOST /v1/webhook/test.
Answer with any 2xx within 10 s. Otherwise we retry up to 6 times (30 s, 1 min, 2 min, …). Redirects are not followed. Use the id field (evt_…) to ignore duplicates.
import hmac, hashlib, time
def verify(secret: str, header: str, body: bytes) -> bool:
# header = request.headers["X-GateProxy-Signature"] -> "t=1763712000,v1=5f2c…"
parts = dict(p.split("=", 1) for p in header.split(","))
if abs(time.time() - int(parts["t"])) > 300: # reject old deliveries
return False
expected = hmac.new(secret.encode(), parts["t"].encode() + b"." + body, hashlib.sha256).hexdigest()
return hmac.compare_digest(expected, parts["v1"])v1.2 order fields and asynchronous mode
client_reference: optional 1–64 characters matching letters, digits and_ - : . # / @. It is your id and part of the idempotency fingerprint.metadata: optional object, at most 10 keys matching[A-Za-z0-9_-]{1,40}; values are strings up to 200 characters, numbers, booleans or null; total JSON is at most 2,000 bytes. The first idempotent request is stored as sent.- Both fields return on the order and appear in webhooks and order CSV. Invalid values return
invalid_client_referenceorinvalid_metadata. ?wait=falseorPrefer: respond-asyncreturns 202 immediately with processing; poll the order or use webhooks.- Batch accepts client_reference, metadata and quote_id for every item; quote quantity N covers N items.
Order listing filters: client_reference, product, from, and inclusive to. Dates are Dhaka YYYY-MM-DD days or ISO-8601 times; a bad date returns invalid_request.
Products
Live availability and prices always come from GET /v1/products.
| Product id | Name | Type |
|---|---|---|
dataimpulse | DataImpulse Proxy | Sub-user |
9proxy | 9Proxy | Sub-user |
nodemaven | NodeMaven | Sub-user |
abc | ABC Proxy | Sub-user |
mesh | Mesh Proxy | Sub-user |
kafka | Kafka Proxy | Sub-user |
iproyal | iProyal Residential | Sub-user |
rapid | Rapid Proxy | Sub-user |
cli | CLI Proxy | Sub-user |
9proxy-cdkey | 9 Proxy CD Key | CD key |
rapid-cdkey | Rapid Proxy CD Key | CD key |
cli-cdkey | CLI Proxy CD Key | CD key |
rocket-cdkey | Rocket Proxy | CD key |
rapid and cli logins use the United States by default. The note field in the delivery explains how to switch country by changing the end of the username.
Delivery formats
{
"type": "subuser",
"protocol": "HTTP",
"server": "host.example",
"port": 1234,
"username": "…",
"password": "…",
"subuser_id": "…", // when available
"setup_guide": "https://…",
"note": "…" // e.g. how to change country, when available
}{
"type": "cdkey",
"code": "XXXX-XXXX-XXXX",
"server": "host.example",
"port": 1234,
"setup_guide": "https://…"
}NodeMaven returns ports: {"http": …, "socks5": …} instead of a single port. Fields that do not apply are omitted.
Errors
| HTTP | code | Meaning · what to do |
|---|---|---|
| 400 | invalid_json invalid_request invalid_plan | Fix the request body. |
| 400 | key_in_url | Move the key to the Authorization header. |
| 401 | missing_api_key invalid_api_key | Check / regenerate your key in the bot. |
| 402 | insufficient_balance | Top up in the bot. Nothing was charged. |
| 403 | account_not_approved account_suspended | Contact support. |
| 403 | ip_not_allowed ip_blocked | Call from a whitelisted IP / contact support. |
| 403 | daily_limit_reached | Daily spend cap reached. |
| 404 | product_not_found plan_not_found order_not_found | Check ids against /v1/products. |
| 409 | out_of_stock product_unavailable | Try later or another product. Nothing was charged. |
| 409 | idempotency_conflict | This key was used for a different order (or a batch with another quantity). Use a new key. |
| 409 | price_changed | Your price is above max_price_usd. Check /v1/products. Nothing was charged. |
| 403 | read_only_key | Use your live key to buy, deposit, add restock alerts or change the webhook. |
| 403 | live_key_required | Webhook set / remove / test need the live key. |
| 400 | invalid_max_price invalid_quantity invalid_reference invalid_webhook_url | Fix the request body. |
| 400 | restock_not_supported deposit_rejected | Read message for the reason. |
| 404 | not_found_yet | Deposit not visible yet — retry after Retry-After. |
| 409 | reference_used no_webhook | Already credited / set a webhook first. |
| 429 | rate_limited order_rate_limited too_many_inflight_orders | Wait Retry-After seconds. |
| 502 | provider_error | Provider rejected the order — refunded, safe to retry with a new key. |
| 500 | internal_error | Nothing was charged or the price was refunded (see message). Safe to retry with a new key; share the request_id with support if it repeats. |
| 500 | refund_pending | The order could not start and the automatic refund failed. Your payment is held; an admin refunds it. Do not re-order with the same key. |
| 202 | under_review / processing | Not an error: poll the order, do not re-order. |
| 400 | invalid_client_reference invalid_metadata | Fix the reference pattern/length or metadata limits. |
| 400 | invalid_sandbox_scenario | Use a value from the returned allowed list. |
| 400 | invalid_quote | Fix the quote id or request. |
| 400 | not_a_subuser usage_not_supported action_not_supported | Use a supported completed sub-user order; action errors include supported_products. |
| 400 | proxy_builder_not_supported session_not_supported | Use a supported product/session combination. |
| 404 | quote_not_found | Check the quote id. |
| 409 | quote_mismatch quote_expired quote_used_up | Create a matching active quote or omit quote_id. |
| 409 | order_not_completed subuser_changed | Wait for completion; do not manage externally changed credentials. |
| 409 | too_many_keys | Revoke an active key before creating another. |
Security best practices
Call the API from your backend. Never ship the key in a website, mobile app or browser extension.
Restrict the key to your server IPs in the bot — a leaked key is then useless elsewhere.
Regenerate the key in the bot if it may have leaked. The old key stops immediately.
Keep the key in environment variables or a secrets manager, never in git.
Full example — buy with safe retries
import os, time, uuid, requests API = "https://api.gateproxy.store/v1" HEAD = {"Authorization": f"Bearer {os.environ['GATEPROXY_API_KEY']}"} def buy(product, plan): idem = str(uuid.uuid4()) # one key per logical order, reused on retries for attempt in range(3): try: r = requests.post(f"{API}/orders", json={"product": product, "plan": plan}, headers={**HEAD, "Idempotency-Key": idem}, timeout=120) except requests.RequestException: time.sleep(2 ** attempt); continue # same idem key -> never double charged body = r.json() if r.status_code == 201: return body["order"]["delivery"] if r.status_code == 202: return wait_for(body["order"]["id"]) if r.status_code == 429: time.sleep(int(r.headers.get("Retry-After", "2"))); continue raise RuntimeError(f"{body['error']['code']}: {body['error']['message']}") def wait_for(order_id): while True: o = requests.get(f"{API}/orders/{order_id}", headers=HEAD, timeout=20).json()["order"] if o["status"] == "completed": return o["delivery"] if o["status"] in ("failed", "refunded"): raise RuntimeError(o["error"]["message"]) time.sleep(10) # "processing" or "review" print(buy("dataimpulse", "1"))
Balance API — check a sub-user's remaining data
A separate service that returns how much data a proxy sub-user has left, straight from each provider. It is isolated from the ordering API so a slow provider never affects your orders.
gpk_live_… key as the ordering API — no second key needed. This API only reads usage; it never changes orders or balances. Results are cached for ~60 seconds.Check usage
/v1/usage?product=<id>&username=<login>API keyAlso accepts POST /v1/usage with a JSON body {"product": "...", "username": "..."}.
| Field | Description |
|---|---|
product required | One of the supported products below, e.g. dataimpulse, mesh, 9proxy. |
username required | The proxy login / username you received when the sub-user was created. The structured part (e.g. -country-US, _cr.ye) is handled automatically. |
curl "https://balance.gateproxy.store/v1/usage?product=dataimpulse&username=abc123_cr.ye" \ -H "Authorization: Bearer $GATEPROXY_API_KEY"
import os, requests r = requests.get( "https://balance.gateproxy.store/v1/usage", params={"product": "dataimpulse", "username": "abc123_cr.ye"}, headers={"Authorization": f"Bearer {os.environ['GATEPROXY_API_KEY']}"}, timeout=30, ) print(r.json()["usage"])
const p = new URLSearchParams({ product: "dataimpulse", username: "abc123_cr.ye" }); const r = await fetch(`https://balance.gateproxy.store/v1/usage?${p}`, { headers: { Authorization: `Bearer ${process.env.GATEPROXY_API_KEY}` }, }); console.log((await r.json()).usage);
{
"usage": {
"product": "dataimpulse",
"name": "DataImpulse Proxy",
"username": "abc123_cr.ye",
"status": "active",
"total": "1GB",
"used": "87.16MB",
"remaining": "936.84MB",
"unlimited": false,
"checked_at": "2026-10-02T10:58:00+00:00"
}
}A repeated check within ~60s returns the cached value with "cached": true. Some providers report "remaining": "Unlimited" for uncapped plans.
Supported products
/v1/productsAPI key| product id | Name | Username to send |
|---|---|---|
dataimpulse | DataImpulse Proxy | Login, e.g. abc123_cr.ye |
mesh | Mesh Proxy | Sub-user username |
9proxy | 9Proxy | Sub-user username (with or without -country-…) |
nodemaven | NodeMaven | Proxy username |
abc | ABC Proxy | Account username (without -zone-…) |
kafka | Kafka Proxy | Username (with or without _custom_…) |
CD-key products (Rocket / 9Proxy CD Key / Rapid / CLI) do not expose a usage API and are not listed here.
Balance errors
| HTTP | code | Meaning |
|---|---|---|
| 400 | invalid_request invalid_username | Send both product and username. |
| 401 | missing_api_key invalid_api_key | Use your gpk_live_… key in the Authorization header. |
| 403 | ip_not_allowed ip_blocked account_suspended | Same access rules as the ordering API. |
| 404 | product_not_found | Unknown product id — see the list above. |
| 404 | subuser_not_found | No sub-user with that username at the provider. |
| 409 | ambiguous_username | Several sub-users matched — send the exact login. |
| 429 | rate_limited | Slow down; wait the Retry-After seconds. |
| 502 | provider_error | The provider's own API was unreachable — retry shortly. |
Quotes
Lock a product price for ten minutes before placing one or more orders.
POST /v1/quotes accepts product, plan, and quantity 1–10 (default 1). Live and test keys work; read-only keys get 403. The quote id is qt_… live or qt_test_… in sandbox. Retrieve it with GET /v1/quotes/{id}.
Pass quote_id to an order; product and plan become optional, but supplied values must match or you get quote_mismatch. You pay the quoted price or the current price when lower. Each order uses one unit; an idempotent retry does not. A unit returns when balance refusal prevents the order or the order never starts.
curl -X POST https://api.gateproxy.store/v1/quotes \
-H "Authorization: Bearer $GATEPROXY_API_KEY" -H "Content-Type: application/json" \
-d '{"product":"dataimpulse","plan":"1","quantity":2}'
curl -X POST https://api.gateproxy.store/v1/orders?wait=false \
-H "Authorization: Bearer $GATEPROXY_API_KEY" -H "Content-Type: application/json" \
-H "Idempotency-Key: invoice:1042:1" -d '{"quote_id":"qt_xxx","client_reference":"invoice_1042"}'Errors: quote_not_found, quote_expired, quote_used_up, quote_mismatch, invalid_quote, invalid_quantity. Limit: 30 quote creations/minute.
Sub-user management
The order must be yours and completed; otherwise order_not_found or order_not_completed. CD keys return not_a_subuser. Test keys work only on sandbox orders.
| Route | Products and behavior |
|---|---|
GET /orders/{id}/usage | rapid, cli, mesh, 9proxy, kafka, abc, nodemaven, dataimpulse. Cached 60 s; 30/min. Returns order_id, product, username, status, optional enabled, traffic totals, optional unlimited, checked_at and cached. |
POST …/reset-password | rapid, cli. New password appears in API order delivery; Telegram My proxies keeps the original. External changes can return subuser_changed. |
POST …/disable / …/enable | rapid, cli. Returns order_id and enabled. These three actions share 10/min. |
GET …/proxies | rapid, cli, iproyal (sticky), abc, nodemaven (country only). Built locally. |
curl https://api.gateproxy.store/v1/orders/ord_xxx/usage \ -H "Authorization: Bearer $GATEPROXY_API_KEY" curl "https://api.gateproxy.store/v1/orders/ord_xxx/proxies?country=US&session=sticky&session_minutes=30&count=5&format=url&output=json" \ -H "Authorization: Bearer $GATEPROXY_API_KEY"
Builder formats: host:port:user:pass, user:pass@host:port, url, socks5; output is JSON or text. Errors include usage_not_supported, action_not_supported (with supported_products), proxy_builder_not_supported, session_not_supported, and provider_error.
Webhook deliveries & settings
GET webhook now includes subscribed_events, low_balance_usd, and low_traffic_percent.
PATCH with a live key changes only subscriptions and thresholds: events array or null for all, low_balance_usd ≥ 0 or null, and low_traffic_percent 1–90 (default 10). ping is always delivered.
order.review_resolved: data has order and resolutionrefundedordelivered.balance.low: sent once when balance falls below your threshold; data has balance_usd and threshold_usd.order.low_trafficandorder.traffic_exhausted: Rapid/CLI, checked every 30 minutes; data has order and usage.
curl -X PATCH https://api.gateproxy.store/v1/webhook \
-H "Authorization: Bearer $GATEPROXY_API_KEY" -H "Content-Type: application/json" \
-d '{"events":["order.completed","balance.low"],"low_balance_usd":5,"low_traffic_percent":10}'
curl "https://api.gateproxy.store/v1/webhook/deliveries?limit=50&status=failed&before=evt_N" \
-H "Authorization: Bearer $GATEPROXY_API_KEY"
curl -X POST https://api.gateproxy.store/v1/webhook/deliveries/evt_xxx/resend \
-H "Authorization: Bearer $GATEPROXY_API_KEY"Deliveries return id, event, status, attempts, last_status, last_error, created_at, delivered_at, next_try, payload and next_before. Resend accepts delivered or failed events and returns 202 with queued and id.
API keys
Manage up to ten active live, test and read-only keys. Every create, rotate and revoke sends a Telegram message.
GET works with any key. POST with a live key takes mode, name (1–40 chars), and optional expires_in_days (1–365); the secret is shown once. Rotation takes grace_hours 0–72 (default 24), and the old key works until grace ends. Expired keys receive invalid_api_key. Bot regeneration still revokes every key of that mode. /v1/me key data includes name and expires_at.
curl -X POST https://api.gateproxy.store/v1/keys \
-H "Authorization: Bearer $GATEPROXY_API_KEY" -H "Content-Type: application/json" \
-d '{"mode":"test","name":"CI sandbox","expires_in_days":30}'
curl -X POST https://api.gateproxy.store/v1/keys/key_xxx/rotate \
-H "Authorization: Bearer $GATEPROXY_API_KEY" -H "Content-Type: application/json" -d '{"grace_hours":24}'
curl -X DELETE https://api.gateproxy.store/v1/keys/key_xxx -H "Authorization: Bearer $GATEPROXY_API_KEY"Reports
Dates accept a Dhaka YYYY-MM-DD day (to is inclusive) or an ISO-8601 time.
GET /stats supports from, to, group_by day|product and channel api|all; it defaults to 30 days and allows at most 366. Totals include orders, completed, failed, review, refunded, processing and spent_usd.
Order and transaction CSV exports allow 10,000 rows. Cells beginning with =, +, - or @ are prefixed with an apostrophe; order CSV includes client_reference and metadata. Monthly statements return opening/closing balances, deposits, purchases, refunds, other and transactions.
curl "https://api.gateproxy.store/v1/stats?from=2026-11-01&to=2026-11-27&group_by=product&channel=all" \ -H "Authorization: Bearer $GATEPROXY_API_KEY" curl "https://api.gateproxy.store/v1/orders/export.csv?from=2026-11-01&to=2026-11-27" \ -H "Authorization: Bearer $GATEPROXY_API_KEY" curl https://api.gateproxy.store/v1/statements/2026-11 -H "Authorization: Bearer $GATEPROXY_API_KEY"
Status
GET /v1/status needs no key and allows CORS from every origin.
It returns overall operational, degraded or outage (nothing can be bought) status and product entries that may be operational, degraded, unavailable or out_of_stock. See the status page.
curl https://api.gateproxy.store/v1/status
Versioning & deprecation
Every response carries X-API-Version: 1.2 (you do not need to send it). Version 1 only receives additive changes.
Additive changes include new endpoints, optional fields, enum values and webhook events. Clients must ignore unknown fields and events. A breaking change uses a new /v2.
A deprecated route sends Deprecation: @<unix>, Sunset: <HTTP-date>, and Link: <https://docs.gateproxy.store/#versioning>; rel="deprecation" for at least 90 days before removal. Nothing is deprecated today.
curl -i https://api.gateproxy.store/v1/me \ -H "Authorization: Bearer $GATEPROXY_API_KEY" # response headers include: X-API-Version: 1.2
SDKs
Dependency-light, single-file clients. Keep the key in GATEPROXY_API_KEY on your server.
Place gateproxy.py beside your app; import GateProxy, GateProxyError and verify_webhook. Create asynchronously with wait=False, poll processing/review, then use order_proxies.
Import GateProxy, GateProxyError and verifyWebhook by relative path. createOrder accepts idempotencyKey, clientReference and wait; timeout values are milliseconds.
Require GateProxy.php, construct the client from getenv, create with an idempotency key and poll until the order leaves processing/review.
curl -O https://docs.gateproxy.store/sdk/python/gateproxy.py curl -O https://docs.gateproxy.store/sdk/node/gateproxy.mjs curl -O https://docs.gateproxy.store/sdk/php/GateProxy.php
Tools
API portal · Status page · OpenAPI · Postman collection
Browser CORS is allowed only from https://docs.gateproxy.store (the portal). If a key has an IP whitelist, your browser IP must be whitelisted. Keep production keys server-side.
curl -O https://docs.gateproxy.store/openapi.json curl -O https://docs.gateproxy.store/gateproxy.postman_collection.json
Changelog
Changes 2026-11-27 (v1.2)
- Re-audit fixes: an HTTP 408 timeout from a provider now puts the order in review instead of an automatic refund;
metadatais part of the idempotency fingerprint; usage and sub-user actions refuse a sub-user that changed outside the API (subuser_changed); an unconfirmed password reset returns 502provider_uncertain(retry it); rotated keys keep the original key's lifetime;/v1/statuscan reportoutage. - Version header and additive-only v1/deprecation policy; health reports 1.2.
- Orders add client_reference, metadata, quote_id, immediate 202 mode, list filters and CSV inclusion.
- Test keys add selectable sandbox scenarios.
- Ten-minute, quantity-aware price-lock quotes.
- Sub-user usage, password reset, enable/disable and local proxy builder.
- Webhook subscriptions, balance/traffic thresholds, new events, delivery history and resend.
- Multi-key listing, creation, rotation, expiry and revocation.
- Statistics, safe CSV exports and monthly statements.
- Public API/product status endpoint and status page.
- Portal, SDK downloads, browser CORS/IP-whitelist guidance and SDK quick starts.
- Deposits are unchanged.
2026-11-27
- An order that cannot start after your balance was reserved is refunded at once (
500 internal_error), or held for an admin refund (500 refund_pending). - An Idempotency-Key reused with a different body always gets
409, even when both requests arrive together. - Batch keys are bound to
quantity; a replayed failed item stops the batch;completedcounts only completed orders. - The daily spend limit is exact under parallel orders.
- Removing or testing the webhook needs the live key; read-only keys cannot add restock alerts.
- A webhook body that is not a JSON object gets
400 invalid_request;GET /v1/healthreports version1.2.
Support
Questions, higher limits or a stuck order? Message GateProxy support and include the X-Request-Id or order id. Machine-readable spec: openapi.json.