GateProxy developer API · v1.2

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.

Base URL https://api.gateproxy.store/v1 Auth Bearer API key Version X-API-Version: 1.2 Format JSON Currency USD

🤖 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.

1Open the botStart @gateproxy_bot and send /api.
2Request accessTap Request API Access. An admin reviews it.
3Generate a keyAfter approval open 🔌 API → Generate API Key. It is shown once.
4Lock it to your IPRecommended: add your server IP under IP Whitelist.
💡
Orders are paid from your normal GateProxy balance. Top up in the bot with Deposit Money. Reseller accounts automatically get reseller prices through the API too.

Authentication

Send your key in the Authorization header on every request.

Header
Authorization: Bearer gpk_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  • Keys are gpk_live_… (live), gpk_test_… (test/sandbox), or gpk_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 with key_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"}'

Conventions

TopicRule
Base URLhttps://api.gateproxy.store/v1 — HTTPS only.
BodiesJSON, Content-Type: application/json, max 16 KB.
MoneyAll prices and balances are in USD (same balance as the bot).
PlansA plan is the size in GB as a string: "1", "5", "0.12" (120 MB).
TimesISO-8601 in UTC, e.g. 2026-10-02T08:15:00+00:00.
Request IDEvery response has an X-Request-Id header — include it when contacting support.
ErrorsNon-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.

1Generate a test keyIn the bot: 🔌 API → Generate Test Key. It starts with gpk_test_.
2Use it like a live keySame base URLs, same endpoints — just send the test key.
3Get simulated resultsOrders return 201 completed with fake delivery and "sandbox": true.
4Switch to liveWhen ready, swap the test key for your gpk_live_ key. Nothing else changes.
Live key gpk_live_Test key gpk_test_ (sandbox)
Charges your real balanceNever charges — /me shows a fixed sandbox balance
Creates a real proxy / CD key at the providerReturns fake credentials (sandbox.gateproxy.store)
Orders appear in your history & the dashboardOrders are in-memory only (kept ~1 hour), never in production data
Balance API returns real provider usageBalance API returns simulated usage
Sandbox order — POST /v1/orders with a test key
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": "…" }
  }
}
✓
Rate limits, IP whitelist, validation and idempotency all behave exactly like live — only the money and the provider call are simulated.

Selectable scenarios

Send X-Sandbox-Scenario with a test key only; live keys ignore it. Unknown values return 400 invalid_sandbox_scenario with allowed.

ScenarioResult
success201 completed.
processing202 processing; completes by itself after about 15 seconds—poll GET order.
review202 manual review.
provider_error502, failed, nothing charged.
out_of_stock / product_unavailable / price_changed409.
insufficient_balance402.
rate_limited429 with Retry-After: 5.
cURL
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.

✓ Completed — 201

The price was deducted and the credentials are in order.delivery.

✕ Failed — 4xx / 502

Nothing was charged (or it was refunded instantly). error.code and error.message explain why.

⏳ Review — 202

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.

⚠️
Never retry a 202 with a new Idempotency-Key. Poll 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 200 when the original order is finished and 202 while 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

LimitDefaultResponse when exceeded
Requests per API key60 / minute429 rate_limited + Retry-After
Orders per account10 / minute429 order_rate_limited
Orders processing at once3429 too_many_inflight_orders
Requests per IP10 / second (burst 30)429 rate_limited
Daily spend (optional)set by admin403 daily_limit_reached — exact, parallel orders cannot pass it together
Orders refused for low balance5 within 10 minnext orders get 402 with Retry-After for 60 s (or until you top up)
Deposit checks6 / minute429 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

GET/v1/healthno auth
200 Response
{ "status": "ok", "time": "2026-10-02T08:15:00+00:00", "version": "1.0" }

Account

GET/v1/meAPI key
200 Response
{
  "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

GET/v1/balanceAPI key
200 Response
{ "balance_usd": 25.4, "currency": "USD" }

List products

GET/v1/productsAPI key

Returns 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.

200 Response
{
  "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

GET/v1/products/{product_id}API key

Same object as one item of the list above, under "product".

Create an order

POST/v1/ordersAPI key
FieldTypeDescription
product requiredstringProduct id from /v1/products, e.g. dataimpulse.
plan requiredstringPlan size in GB, e.g. "1".
max_price_usdnumberOptional. If your price is now higher, the order is refused with 409 price_changed and nothing is charged.
Idempotency-Key headerstringStrongly 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.

201 Created — delivered
{
  "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"
    }
  }
}
402 — not enough balance (nothing charged)
{
  "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"
  }
}
502 — provider rejected (refunded)
{
  "error": { "code": "provider_error", "message": "Traffic package unavailable", "refunded": true, "request_id": "req_…" },
  "order": { "id": "ord_…", "status": "failed", "charged": false, … }
}

List orders

GET/v1/orders?limit=20&status=completed&before=ord_…API key

limit 1–100 (default 20), optional status (processing, completed, failed, review, refunded), and before = the next_before value of the previous page.

200 Response
{ "orders": [ { "id": "ord_…", "status": "completed", … } ], "next_before": "ord_…" }

Get an order

GET/v1/orders/{order_id}API key

Use 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

POST/v1/orders/batchAPI key

Buys 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_conflict on 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 (with reason).
  • completed counts only orders whose status is completed.
  • A read-only key gets 403 read_only_key.
Request
{ "product": "9proxy-cdkey", "plan": "1", "quantity": 3, "max_price_usd": 1.0 }
207 — the third order could not be paid
{
  "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

GET/v1/transactions?limit=50&type=purchase&before=…API key

Every 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.

200 Response
{
  "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

GET/v1/deposits/infoAPI key
POST/v1/deposits/verifylive key

Send 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.

Request
{ "method": "binance", "reference": "373856329861287936" }
200 — credited
{ "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

POST/v1/restock-alertsAPI key

For 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

POST/v1/webhooklive key
GET/v1/webhook
DELETE/v1/webhooklive key
POST/v1/webhook/testlive key

Set 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.order is the same object as GET /v1/orders/{id}.
  • stock.restocked — a plan you asked to watch is back. data = { "product", "plan" }.
  • ping — sent by POST /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.

Verify the signature (Python)
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_reference or invalid_metadata.
  • ?wait=false or Prefer: respond-async returns 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 idNameType
dataimpulseDataImpulse ProxySub-user
9proxy9ProxySub-user
nodemavenNodeMavenSub-user
abcABC ProxySub-user
meshMesh ProxySub-user
kafkaKafka ProxySub-user
iproyaliProyal ResidentialSub-user
rapidRapid ProxySub-user
cliCLI ProxySub-user
9proxy-cdkey9 Proxy CD KeyCD key
rapid-cdkeyRapid Proxy CD KeyCD key
cli-cdkeyCLI Proxy CD KeyCD key
rocket-cdkeyRocket ProxyCD 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

Sub-user type "subuser"
{
  "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
}
CD key type "cdkey"
{
  "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

HTTPcodeMeaning · what to do
400invalid_json invalid_request invalid_planFix the request body.
400key_in_urlMove the key to the Authorization header.
401missing_api_key invalid_api_keyCheck / regenerate your key in the bot.
402insufficient_balanceTop up in the bot. Nothing was charged.
403account_not_approved account_suspendedContact support.
403ip_not_allowed ip_blockedCall from a whitelisted IP / contact support.
403daily_limit_reachedDaily spend cap reached.
404product_not_found plan_not_found order_not_foundCheck ids against /v1/products.
409out_of_stock product_unavailableTry later or another product. Nothing was charged.
409idempotency_conflictThis key was used for a different order (or a batch with another quantity). Use a new key.
409price_changedYour price is above max_price_usd. Check /v1/products. Nothing was charged.
403read_only_keyUse your live key to buy, deposit, add restock alerts or change the webhook.
403live_key_requiredWebhook set / remove / test need the live key.
400invalid_max_price invalid_quantity invalid_reference invalid_webhook_urlFix the request body.
400restock_not_supported deposit_rejectedRead message for the reason.
404not_found_yetDeposit not visible yet — retry after Retry-After.
409reference_used no_webhookAlready credited / set a webhook first.
429rate_limited order_rate_limited too_many_inflight_ordersWait Retry-After seconds.
502provider_errorProvider rejected the order — refunded, safe to retry with a new key.
500internal_errorNothing 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.
500refund_pendingThe 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.
202under_review / processingNot an error: poll the order, do not re-order.
400invalid_client_reference invalid_metadataFix the reference pattern/length or metadata limits.
400invalid_sandbox_scenarioUse a value from the returned allowed list.
400invalid_quoteFix the quote id or request.
400not_a_subuser usage_not_supported action_not_supportedUse a supported completed sub-user order; action errors include supported_products.
400proxy_builder_not_supported session_not_supportedUse a supported product/session combination.
404quote_not_foundCheck the quote id.
409quote_mismatch quote_expired quote_used_upCreate a matching active quote or omit quote_id.
409order_not_completed subuser_changedWait for completion; do not manage externally changed credentials.
409too_many_keysRevoke an active key before creating another.

Security best practices

🔒 Server-side only

Call the API from your backend. Never ship the key in a website, mobile app or browser extension.

🌐 IP whitelist

Restrict the key to your server IPs in the bot — a leaked key is then useless elsewhere.

🔄 Rotate on doubt

Regenerate the key in the bot if it may have leaked. The old key stops immediately.

🗝 Store safely

Keep the key in environment variables or a secrets manager, never in git.

Full example — buy with safe retries

Python
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.

Base URL https://balance.gateproxy.store/v1 Auth same API key Method read-only
💡
Use the same 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

GET/v1/usage?product=<id>&username=<login>API key

Also accepts POST /v1/usage with a JSON body {"product": "...", "username": "..."}.

FieldDescription
product requiredOne of the supported products below, e.g. dataimpulse, mesh, 9proxy.
username requiredThe 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"
200 Response
{
  "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

GET/v1/productsAPI key
product idNameUsername to send
dataimpulseDataImpulse ProxyLogin, e.g. abc123_cr.ye
meshMesh ProxySub-user username
9proxy9ProxySub-user username (with or without -country-…)
nodemavenNodeMavenProxy username
abcABC ProxyAccount username (without -zone-…)
kafkaKafka ProxyUsername (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

HTTPcodeMeaning
400invalid_request invalid_usernameSend both product and username.
401missing_api_key invalid_api_keyUse your gpk_live_… key in the Authorization header.
403ip_not_allowed ip_blocked account_suspendedSame access rules as the ordering API.
404product_not_foundUnknown product id — see the list above.
404subuser_not_foundNo sub-user with that username at the provider.
409ambiguous_usernameSeveral sub-users matched — send the exact login.
429rate_limitedSlow down; wait the Retry-After seconds.
502provider_errorThe provider's own API was unreachable — retry shortly.
⚠️
This is a live read from the provider, which can be slow or rate-limited. Cache results on your side and avoid checking the same sub-user more than once a minute.

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 · quote then order
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.

RouteProducts and behavior
GET /orders/{id}/usagerapid, 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-passwordrapid, cli. New password appears in API order delivery; Telegram My proxies keeps the original. External changes can return subuser_changed.
POST …/disable / …/enablerapid, cli. Returns order_id and enabled. These three actions share 10/min.
GET …/proxiesrapid, cli, iproyal (sticky), abc, nodemaven (country only). Built locally.
cURL · usage and proxy builder
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 resolution refunded or delivered.
  • balance.low: sent once when balance falls below your threshold; data has balance_usd and threshold_usd.
  • order.low_traffic and order.traffic_exhausted: Rapid/CLI, checked every 30 minutes; data has order and usage.
cURL · settings and resend
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 · create, rotate, revoke
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
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
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
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.

Python 3.8+

Place gateproxy.py beside your app; import GateProxy, GateProxyError and verify_webhook. Create asynchronously with wait=False, poll processing/review, then use order_proxies.

Node.js 18+ ESM

Import GateProxy, GateProxyError and verifyWebhook by relative path. createOrder accepts idempotencyKey, clientReference and wait; timeout values are milliseconds.

PHP 7.4+

Require GateProxy.php, construct the client from getenv, create with an idempotency key and poll until the order leaves processing/review.

Download
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.

Fetch tools
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; metadata is 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 502 provider_uncertain (retry it); rotated keys keep the original key's lifetime; /v1/status can report outage.
  • 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; completed counts 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/health reports version 1.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.