T7Proxy/Docs/REST API

T7Proxy API

Updated: November 21, 2026 · Version v1

Get started

Overview#

Everything you need to buy and manage T7Proxy proxies from your own code: check your wallet, find a plan, get an exact quote, place an order, read the proxy logins and renew before the end date.

One key for the API and AI assistants. API keys are the same tp_live_ keys the T7Proxy MCP server uses, and every endpoint follows the same rules as the matching MCP tool. Create and revoke them on API & MCP in your dashboard.

If you can't find what you need here, write to support@t7proxy.com.

Tip: Prefer not to write code? Connect Claude, ChatGPT, Cursor or VS Code to your T7Proxy account and ask in plain words: list what is ending, price an order, buy proxies, read your spending. Set it up in a minute.

Base URL

https://t7proxy.com/api/v1

All requests use HTTPS. Requests and responses are JSON (UTF-8), except the plain-text proxy list from Export a proxy list.

What you can do

Purchases are paid from your prepaid wallet in USD. The API can't add money: top-ups are made on the website by card or crypto.

Get started

Quick start#

Three steps from no key to your first order.

1. Get an API key

Sign in, open API & MCP and create a key under Access keys. Tick Allow purchases if this key should buy and renew from your wallet; leave it off for a read-only key. The key is shown once, so store it in a secret manager or an environment variable:

export T7PROXY_KEY="tp_live_..."

2. Make your first call

curl https://t7proxy.com/api/v1/account \
  -H "Authorization: Bearer $T7PROXY_KEY"

You get your balance, how many live proxies you have, and key_can_buy.

3. Find a plan, quote it, buy it

  1. List plans with a type and country to get a product_id.
  2. Get a quote for the quantity you want. Check total_usd and enough_balance.
  3. Buy proxies with the same product_id and quantity, and your own request_key.
  4. The order comes back with its proxies (host, ports, login, password). If its status is processing, call Get an order again in a few minutes.

Tip: A full copy-paste script for this flow is in Code recipes.

Get started

Authentication#

Send your key as a Bearer token in the Authorization header of every request:

Authorization: Bearer tp_live_xxxxxxxxxxxxxxxxxxxxxxxx

Key permissions

Key Can
Read only Read the account, plans, quotes, orders, proxy logins and wallet history. Change the rotation and access lists of your residential packages (this spends nothing).
Allow purchases Everything above, plus buy, renew, add residential traffic, turn auto-renew on or off and replace IPs. These spend from the wallet.

A read-only key that calls a buying endpoint gets 403 read_only_key.

Rules

  • The account's email address must be confirmed. Until then every call gets 403.
  • Keys are checked on every request. A revoked key, or a key of a closed or blocked account, stops working at once (401 or 403).
  • You can have up to 10 keys. Give each app or server its own key, so you can revoke one without touching the others.
  • Never put a key in browser code, a public repository or a URL. Anyone with a key that allows purchases can spend your wallet.

Note: Apps that connected to the MCP server by signing in (OAuth) can call the API with their access token too. Their "Allow purchases" choice applies the same way.

Get started

Requests and responses#

Requests

  • GET endpoints take query parameters: /plans?type=ipv4&country=US.
  • POST and PUT endpoints take a JSON body. Send Content-Type: application/json.
  • Booleans may be true/false or 1/0, in a body or a query string.

Successful responses

Every successful response is a JSON object with one key, data:

{
  "data": {
    "balance_usd": 48.5,
    "live_orders": 3
  }
}

Creating an order answers 201 Created. Everything else answers 200 OK.

Formats

Field Format
Money (*_usd) US dollars as a number with up to 2 decimals, e.g. 12.4
Dates (*_at) ISO 8601 with time zone, e.g. 2026-12-17T09:30:00+00:00
Traffic (*_gb) gigabytes as a number
IDs integers

Fields with no value are left out of proxy objects rather than sent as null. Responses carry Cache-Control: private, no-store.

Get started

Errors#

Errors use normal HTTP status codes and a JSON body with a stable code you can branch on and a message you can show:

{
  "error": {
    "code": "invalid_request",
    "message": "The product id field is required.",
    "fields": {
      "product_id": ["The product id field is required."]
    }
  }
}

fields appears on validation errors only.

Status code Meaning
400 request_failed The request was valid but could not be done, e.g. the plan is not sold for that period. Read message.
401 unauthenticated The key is missing, wrong or revoked.
402 insufficient_balance The wallet does not cover the order or renewal. Top up at https://t7proxy.com/dashboard/wallet.
403 forbidden The account can't use the API (email not confirmed, account closed).
403 read_only_key This key may not spend from the wallet.
404 not_found No such order, proxy, plan, access list or country on this account, or no such endpoint.
404 package_not_active Not a live residential package of this account.
405 method_not_allowed Wrong HTTP method for this endpoint.
409 in_progress The same order or package is being renewed or topped up by another request right now. Wait a moment, then read the order before you retry.
409 price_changed The order costs more than the expected_total_usd you sent. Nothing was charged. Get a new quote.
409 product_unavailable That traffic package is not on sale right now. Pick another product_id.
409 package_ending The residential package ends in less than a day, so traffic can't be added. Buy a new package.
409 out_of_stock That much residential traffic is not available right now. Try a smaller amount or later.
409 list_limit The package already has the most access lists it can have. Delete one first.
422 invalid_request A parameter is missing or invalid. See fields.
422 invalid_location That country, region, city or ISP can't be targeted. Pick one from the locations endpoints.
429 rate_limited Too many requests, or too many requests with a missing or wrong key from your IP address. Wait for Retry-After seconds.
429 purchase_limit Too many purchases and renewals this hour.
503 try_again_later The change could not be made right now. Nothing was charged (or it was refunded). Try again in a few minutes.
503 unavailable The API is paused for maintenance. Try again later.

Note: When a purchase fails after the money was taken (for example the supplier refuses the order), the wallet is refunded in full automatically. You never need to retry with a new request_key to get a refund.

Get started

Rate limits#

Limit Applies to
120 requests per minute each key, and each app connected by signing in
120 refused requests per minute (missing, wrong or revoked key) each IP address; past it, every request from that address gets 429 until the minute is over
20 purchases, renewals and residential top-ups per hour each account, shared by all its keys and its connected apps
60 requests per minute Desktop app version, per IP address

Going over answers 429. The Retry-After header says how many seconds to wait, and X-RateLimit-Limit and X-RateLimit-Remaining are sent on every response.

A retry of an order, renewal or residential top-up that already went through (same request_key) does not count against the purchase limit.

Tip: Poll an order that is processing every 1 to 2 minutes, not every second. Most orders are ready within a few minutes.

Get started

Safe retries#

Networks fail. If a purchase times out you can't know whether the order was placed, so every purchase should carry your own request_key: a string of up to 64 letters, digits, - and _ that you keep with the job.

Send the same request_key again when you retry, and the API answers with the order that was already placed instead of buying a second time. The response then has "already_placed": true and status 200 instead of 201.

curl -X POST https://t7proxy.com/api/v1/orders \
  -H "Authorization: Bearer $T7PROXY_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: job-2026-11-17-us-dc-5" \
  -d '{"product_id": 1042, "quantity": 5}'

The Idempotency-Key header and the request_key body field do the same thing; the body field wins if you send both. Keys are kept per account, with no time limit, and are shared with the MCP server's buy_proxies tool.

Renewals and residential top-ups take a request_key (or Idempotency-Key) too, kept per order. Reuse it to retry the same renewal: if it already went through, the answer has "already_renewed": true and nothing is charged again. Use a new key for the next renewal. A retry sent while the first request is still running gets 409 in_progress: wait a moment and read the order.

A buy can also carry expected_total_usd, the total_usd of your quote: if the order would cost more by the time it is placed, nothing is bought and the answer is 409 price_changed.

Account

Get account#

GET /api/v1/account
Read-only key works MCP: get_account

The account behind the key: wallet balance, live orders and proxies, and whether this key may buy.

Call this first to check the key works and see the balance. The API can't add money: send the user to top_up_url.

Parameters

No parameters.

Request

curl "https://t7proxy.com/api/v1/account" \
  -H "Authorization: Bearer $T7PROXY_KEY"

Response

{
    "data": {
        "email": "you@example.com",
        "name": "Alex",
        "balance_usd": 48.5,
        "live_orders": 3,
        "live_proxies": 27,
        "processing_orders": 0,
        "key_can_buy": true,
        "top_up_url": "https://t7proxy.com/dashboard/wallet",
        "note": "Top-ups are made by the account owner on the website (card or crypto). This server cannot add money."
    }
}
Account

Who is signed in#

GET /api/v1/me
Read-only key works

The person behind the key or signed-in app: name, email, wallet balance, and links to their dashboard pages.

Made for apps that show who is signed in (T7Proxy Desktop uses it). links open the website pages for things the API does not do, such as topping up.

Add ?amount=25 to the wallet link to open it with that top-up amount filled in.

Parameters

No parameters.

Request

curl "https://t7proxy.com/api/v1/me" \
  -H "Authorization: Bearer $T7PROXY_KEY"

Response

{
    "data": {
        "id": 1207,
        "name": "Alex",
        "email": "you@example.com",
        "email_verified": true,
        "two_factor_enabled": false,
        "balance_usd": 48.5,
        "key_can_buy": false,
        "links": {
            "dashboard": "https://t7proxy.com/dashboard",
            "my_proxies": "https://t7proxy.com/dashboard?tab=my",
            "buy": "https://t7proxy.com/dashboard/buy",
            "wallet": "https://t7proxy.com/dashboard/wallet",
            "account": "https://t7proxy.com/dashboard/settings",
            "check_ip": "https://t7proxy.com/ip"
        }
    }
}
Account

List transactions#

GET /api/v1/transactions
Read-only key works MCP: list_transactions

Wallet history, newest first: top-ups, purchases, renewals, refunds and adjustments, with the balance after each.

Amounts are positive for money in and negative for money out. type is topup, purchase, refund or adjustment.

Parameters

Query parameters
limitintegeroptional
How many entries, 1 to 200. Default 50. Example: 20

Request

curl "https://t7proxy.com/api/v1/transactions?limit=20" \
  -H "Authorization: Bearer $T7PROXY_KEY"

Response

{
    "data": {
        "balance_usd": 48.5,
        "transactions": [
            {
                "id": 9123,
                "type": "purchase",
                "description": "Datacenter IPv4 · United States · 30 days × 5",
                "amount_usd": -11.5,
                "balance_after_usd": 48.5,
                "at": "2026-11-17T09:30:12+00:00"
            },
            {
                "id": 9101,
                "type": "topup",
                "description": "Top-up by card",
                "amount_usd": 50,
                "balance_after_usd": 60,
                "at": "2026-11-16T18:02:44+00:00"
            }
        ]
    }
}
Plans and pricing

Proxy types#

Type type Sold as Quantity Renew Replace IP
Datacenter IPv4 ipv4 per IP, for a period 1 to 100 Yes Yes
Static ISP isp per IP, for a period 1 to 100 Yes Yes
Mobile 4G/5G mobile per IP, for a period 1 to 100 Yes Yes
IPv6 ipv6 per IP, for a period 10 to 1000 Yes Yes
Residential resident traffic package (GB) 1 package No, buy a new one No (rotating)
  • Per-IP plans have a period_days (usually 30) and a price_usd per IP. IPv6 30-day plans can also be bought for 7, 14, 90, 180 or 365 days: pass days from the plan's other_periods.
  • IPv6 gets volume discounts: 10% off from 50 IPs, 15% from 100 and 20% from 200. Get a quote returns the exact total.
  • Residential is one rotating, worldwide traffic package; traffic_gb is its size and price_usd is for the whole package.
  • Every type except IPv6 works with HTTP(S) and SOCKS5 on two ports. IPv6 is made for one protocol, chosen with protocol when buying.
  • Your account may have its own discount; quotes and charges already include it (account_discount_usd).
Plans and pricing

List plans#

GET /api/v1/plans
Read-only key works MCP: list_plans

Proxy plans on sale, with the product_id you pass to quote and buy.

Per-IP plans (ipv4, isp, mobile, ipv6) are priced per IP for period_days. Residential is a traffic package. Plans with buyable: false are shown but not on sale right now.

Parameters

Query parameters
typestringoptional
One of ipv4, isp, resident, mobile, ipv6. Example: ipv4
countrystringoptional
Two-letter code (US, DE) or part of the country name. Example: US
period_daysintegeroptional
Only plans of this length, e.g. 30. Example: 30
limitintegeroptional
Max plans, 1 to 200. Default 100. truncated says if there were more.

Request

curl "https://t7proxy.com/api/v1/plans?type=ipv4&country=US&period_days=30" \
  -H "Authorization: Bearer $T7PROXY_KEY"

Response

{
    "data": {
        "plans": [
            {
                "product_id": 1042,
                "type": "ipv4",
                "type_name": "Datacenter IPv4",
                "label": "Datacenter IPv4 · United States · 30 days",
                "country_code": "US",
                "country_name": "United States",
                "carrier": null,
                "period_days": 30,
                "traffic_gb": null,
                "price_usd": 2.29999999999999982236431605997495353221893310546875,
                "price_per": "IP",
                "min_quantity": 5,
                "buyable": true,
                "other_periods": null
            }
        ],
        "total": 1,
        "truncated": false
    }
}
Plans and pricing

Get a quote#

GET /api/v1/quote
Read-only key works MCP: quote

The exact total for a plan and quantity, and whether the balance covers it. Nothing is charged.

Includes volume discounts and your account discount. Show total_usd to the person paying before you buy. Out-of-range quantities are clamped to the plan's limits; the response says which quantity was priced.

Parameters

Query parameters
product_idintegerrequired
From List plans. Example: 1042
quantityintegeroptional
IPs to buy. Default: the plan's min_quantity. Datacenter IPv4: 5 to 1000; IPv6: 10 to 1000; static ISP: up to 500; mobile: up to 100. Ignored for Residential. Example: 5
daysintegeroptional
A rental period from the plan's other_periods (e.g. 7, 90, 365). Default: the plan's period_days.

Request

curl "https://t7proxy.com/api/v1/quote?product_id=1042&quantity=5" \
  -H "Authorization: Bearer $T7PROXY_KEY"

Response

{
    "data": {
        "plan": {
            "product_id": 1042,
            "type": "ipv4",
            "label": "Datacenter IPv4 · United States · 30 days",
            "price_usd": 2.29999999999999982236431605997495353221893310546875,
            "price_per": "IP",
            "min_quantity": 5,
            "buyable": true
        },
        "quantity": 5,
        "period_days": 30,
        "discount_percent": 0,
        "account_discount_usd": 0,
        "total_usd": 11.5,
        "balance_usd": 60,
        "enough_balance": true,
        "top_up_url": "https://t7proxy.com/dashboard/wallet"
    }
}
Orders

Order lifecycle#

status Meaning
processing Paid and being prepared. Proxies usually appear within a few minutes.
active Live: the proxies work until expires_at.
expired The period ended. Renew is no longer possible; buy a new order.
refunded The order could not be delivered and the wallet was refunded in full.
failed The order did not go through. Nothing was charged, or it was refunded.

live is true while the proxies work. Orders that are being activated by hand carry a note with the deadline; if they can't be activated by then, the wallet is refunded in full and the account email gets a message.

Renewing

  • renewable says whether Renew an order works now, and renew_price_usd what it costs at today's price.
  • With auto_renew on, the order renews from the wallet a few hours before it ends. If the balance is too low the account email is warned first.
  • A renewed order keeps the same IPs, ports and logins; only expires_at moves.
Orders

Buy proxies#

POST /api/v1/orders
Key with Allow purchases MCP: buy_proxies

Buy a plan and pay from the wallet. Returns the order with its proxies once they are delivered.

This spends real money. Always send a request_key (or Idempotency-Key header) and reuse it on a retry, so a timeout never buys twice: see Safe retries. Most orders come back active with their proxies; some come back processing and are ready within minutes.

Purchases and renewals are limited to 20 per hour per account. A retry with a request_key that was already used doesn't count.

Parameters

Body (JSON)
product_idintegerrequired
From List plans. Example: 1042
quantityintegeroptional
IPs to buy. Default: the plan's min_quantity. Datacenter IPv4: 5 to 1000; IPv6: 10 to 1000; static ISP: up to 500; mobile: up to 100. Ignored for Residential. Example: 5
request_keystringoptional
Your own id for this purchase, up to 64 letters, digits, - and _. Strongly recommended. Example: job-2026-11-17-us-dc-5
daysintegeroptional
A rental period from the plan's other_periods. Default: the plan's period_days.
auto_renewbooleanoptional
Renew from the wallet before the end. Default false. Example: true
protocolstringoptional
IPv6 only: HTTPS (default) or SOCKS5. Other types serve both.
allow_ipstringoptional
A public IPv4 address that may connect without a password. Not for Residential.
intended_usestringoptional
The site or job the proxies are for, e.g. Google or price monitoring. Up to 60 characters. Not used for Mobile.
expected_total_usdnumberoptional
The total_usd of your quote: the most this order may cost. If it would cost more, nothing is bought and the error is price_changed. Example: 11.5
Headers
Idempotency-Keystringoptional
Same as request_key, for clients that set it as a header.

Request

curl -X POST "https://t7proxy.com/api/v1/orders" \
  -H "Authorization: Bearer $T7PROXY_KEY" \
  -H "Content-Type: application/json" \
  -d '{"product_id":1042,"quantity":5,"request_key":"job-2026-11-17-us-dc-5","auto_renew":true}'

Response

{
    "data": {
        "order": {
            "order_id": 5531,
            "label": "Datacenter IPv4 · United States · 30 days",
            "type": "ipv4",
            "country_code": "US",
            "quantity": 5,
            "status": "active",
            "live": true,
            "paid_usd": 11.5,
            "auto_renew": true,
            "renewable": true,
            "renew_price_usd": 11.5,
            "expires_at": "2026-12-17T09:30:12+00:00",
            "created_at": "2026-11-17T09:30:12+00:00",
            "proxies": [
                {
                    "proxy_id": 88120,
                    "host": "185.23.41.7",
                    "http_port": 50100,
                    "socks5_port": 50101,
                    "login": "t7u8812",
                    "password": "Kd93mXq2",
                    "http_url": "http://t7u8812:Kd93mXq2@185.23.41.7:50100",
                    "can_replace_ip": true
                },
                {
                    "proxy_id": 88121,
                    "host": "185.23.41.8",
                    "http_port": 50100,
                    "socks5_port": 50101,
                    "login": "t7u8812",
                    "password": "Kd93mXq2",
                    "http_url": "http://t7u8812:Kd93mXq2@185.23.41.8:50100",
                    "can_replace_ip": true
                }
            ]
        },
        "balance_usd": 48.5,
        "already_placed": false
    }
}
Orders

List orders#

GET /api/v1/orders
Read-only key works MCP: list_proxies

Your proxy orders, newest first, with every proxy's host, ports, login and password.

By default only live and processing orders. Set with_credentials=false for a light summary without proxies.

Passwords are secrets. Keep them out of logs and never show them to anyone but the account owner.

Parameters

Query parameters
typestringoptional
Only this type: ipv4, isp, resident, mobile or ipv6.
include_expiredbooleanoptional
Also list orders that have ended. Default false.
with_credentialsbooleanoptional
Include the proxies with logins and passwords. Default true.
limitintegeroptional
Max orders, 1 to 100. Default 50. Example: 20

Request

curl "https://t7proxy.com/api/v1/orders?limit=20" \
  -H "Authorization: Bearer $T7PROXY_KEY"

Response

{
    "data": {
        "orders": [
            {
                "order_id": 5531,
                "label": "Datacenter IPv4 · United States · 30 days",
                "type": "ipv4",
                "country_code": "US",
                "quantity": 5,
                "status": "active",
                "live": true,
                "paid_usd": 11.5,
                "auto_renew": true,
                "renewable": true,
                "renew_price_usd": 11.5,
                "expires_at": "2026-12-17T09:30:12+00:00",
                "created_at": "2026-11-17T09:30:12+00:00",
                "proxies": [
                    {
                        "proxy_id": 88120,
                        "host": "185.23.41.7",
                        "http_port": 50100,
                        "socks5_port": 50101,
                        "login": "t7u8812",
                        "password": "Kd93mXq2",
                        "http_url": "http://t7u8812:Kd93mXq2@185.23.41.7:50100",
                        "can_replace_ip": true
                    },
                    {
                        "proxy_id": 88121,
                        "host": "185.23.41.8",
                        "http_port": 50100,
                        "socks5_port": 50101,
                        "login": "t7u8812",
                        "password": "Kd93mXq2",
                        "http_url": "http://t7u8812:Kd93mXq2@185.23.41.8:50100",
                        "can_replace_ip": true
                    }
                ]
            }
        ],
        "count": 1
    }
}
Orders

Get an order#

GET /api/v1/orders/{order_id}
Read-only key works MCP: get_order

One order with its status, end date and proxies.

Use it to wait for an order that is processing, or to read new IPs after Replace an IP.

Parameters

Path parameters
order_idintegerrequired
The order's order_id. Example: 5531

Request

curl "https://t7proxy.com/api/v1/orders/5531" \
  -H "Authorization: Bearer $T7PROXY_KEY"

Response

{
    "data": {
        "order": {
            "order_id": 5531,
            "label": "Datacenter IPv4 · United States · 30 days",
            "type": "ipv4",
            "country_code": "US",
            "quantity": 5,
            "status": "active",
            "live": true,
            "paid_usd": 11.5,
            "auto_renew": true,
            "renewable": true,
            "renew_price_usd": 11.5,
            "expires_at": "2026-12-17T09:30:12+00:00",
            "created_at": "2026-11-17T09:30:12+00:00",
            "proxies": [
                {
                    "proxy_id": 88120,
                    "host": "185.23.41.7",
                    "http_port": 50100,
                    "socks5_port": 50101,
                    "login": "t7u8812",
                    "password": "Kd93mXq2",
                    "http_url": "http://t7u8812:Kd93mXq2@185.23.41.7:50100",
                    "can_replace_ip": true
                },
                {
                    "proxy_id": 88121,
                    "host": "185.23.41.8",
                    "http_port": 50100,
                    "socks5_port": 50101,
                    "login": "t7u8812",
                    "password": "Kd93mXq2",
                    "http_url": "http://t7u8812:Kd93mXq2@185.23.41.8:50100",
                    "can_replace_ip": true
                }
            ]
        }
    }
}
Orders

Export a proxy list#

GET /api/v1/orders/{order_id}/export
Read-only key works

An order's proxies as plain text, one per line: ready for scrapers, antidetect browsers and proxy checkers.

Answers text/plain. Errors are still JSON.

Parameters

Path parameters
order_idintegerrequired
The order's order_id. Example: 5531
Query parameters
formatstringoptional
One of host:port:login:password, login:password@host:port, url. Default host:port:login:password. Example: host:port:login:password
protocolstringoptional
http (default) or socks5: which port to use, and the scheme for url. Example: http

Request

curl "https://t7proxy.com/api/v1/orders/5531/export?format=host%3Aport%3Alogin%3Apassword&protocol=http" \
  -H "Authorization: Bearer $T7PROXY_KEY"

Response

185.23.41.7:50100:t7u8812:Kd93mXq2
185.23.41.8:50100:t7u8812:Kd93mXq2
185.23.41.9:50100:t7u8812:Kd93mXq2
Orders

Renew an order#

POST /api/v1/orders/{order_id}/renew
Key with Allow purchases MCP: renew_order

Renew a live order for another period at today's price, paid from the wallet.

The proxies keep the same IPs and logins; expires_at moves on by one period. Check renewable and renew_price_usd on the order first. Send a request_key (or Idempotency-Key header) and reuse it on a retry: the same key never renews twice, and the answer then has already_renewed: true. Residential packages can't be renewed: buy a new one.

Without a request_key each call renews once more: don't retry a renewal that may have worked without one. A retry with a request_key that already renewed the order doesn't count against the purchase limit.

Parameters

Path parameters
order_idintegerrequired
The order to renew. Example: 5531
Body (JSON)
request_keystringoptional
Your own id for this renewal, up to 64 letters, digits, - and _. Strongly recommended; use a new one for each renewal. Example: renew-5531-2026-12
Headers
Idempotency-Keystringoptional
Same as request_key, for clients that set it as a header.

Request

curl -X POST "https://t7proxy.com/api/v1/orders/5531/renew" \
  -H "Authorization: Bearer $T7PROXY_KEY" \
  -H "Content-Type: application/json" \
  -d '{"request_key":"renew-5531-2026-12"}'

Response

{
    "data": {
        "order": {
            "order_id": 5531,
            "label": "Datacenter IPv4 · United States · 30 days",
            "type": "ipv4",
            "country_code": "US",
            "quantity": 5,
            "status": "active",
            "live": true,
            "paid_usd": 11.5,
            "auto_renew": true,
            "renewable": true,
            "renew_price_usd": 11.5,
            "expires_at": "2027-01-16T09:30:12+00:00",
            "created_at": "2026-11-17T09:30:12+00:00"
        },
        "balance_usd": 37,
        "already_renewed": false
    }
}
Orders

Set auto-renew#

PUT /api/v1/orders/{order_id}/auto-renew
Key with Allow purchases MCP: set_auto_renew

Turn auto-renew on or off for a live order.

When on, the order renews from the wallet renews_hours_before_end hours before it ends. Needs a key that allows purchases, for off too, so a read-only key can't let orders lapse.

Parameters

Path parameters
order_idintegerrequired
A live, non-residential order. Example: 5531
Body (JSON)
onbooleanrequired
true to turn on, false to turn off. Example: true

Request

curl -X PUT "https://t7proxy.com/api/v1/orders/5531/auto-renew" \
  -H "Authorization: Bearer $T7PROXY_KEY" \
  -H "Content-Type: application/json" \
  -d '{"on":true}'

Response

{
    "data": {
        "order_id": 5531,
        "auto_renew": true,
        "renews_hours_before_end": 12
    }
}
Proxies

List proxies to connect#

GET /api/v1/proxies
Read-only key works

Every live proxy of the account in one flat list, ready to connect: host, ports, login and password.

One row per proxy across all live orders, including orders shared with you by support. A residential package is one row (rotating: true) with its main login. Orders that were paid but are still being prepared are picked up first.

protocol is http, socks5 or http+socks5. port is the HTTP port and port_socks the SOCKS5 port; either may be null. ipv6_only proxies reach IPv6-enabled sites only.

Parameters

No parameters.

Request

curl "https://t7proxy.com/api/v1/proxies" \
  -H "Authorization: Bearer $T7PROXY_KEY"

Response

{
    "data": {
        "proxies": [
            {
                "id": 88120,
                "order_id": 5531,
                "type": "ipv4",
                "type_label": "IPv4",
                "label": "Datacenter IPv4 · United States · 30 days",
                "country": "us",
                "flag": "https://t7proxy.com/flags/us.svg",
                "host": "185.23.41.7",
                "port": 50100,
                "port_socks": 50101,
                "username": "t7u8812",
                "password": "Kd93mXq2",
                "expires_at": "2026-12-17T09:30:12+00:00",
                "rotating": false,
                "protocol": "http+socks5",
                "ipv6_only": false
            },
            {
                "id": 90211,
                "order_id": 5602,
                "type": "resident",
                "type_label": "Residential",
                "label": "Residential · 5 GB",
                "country": null,
                "flag": null,
                "host": "res.t7proxy.com",
                "port": 10000,
                "port_socks": 10000,
                "username": "r7k2m9",
                "password": "Qw81zLp0",
                "expires_at": "2026-12-21T10:00:00+00:00",
                "rotating": true,
                "protocol": "http+socks5",
                "ipv6_only": false
            }
        ],
        "synced_at": "2026-11-21T10:00:00+00:00"
    }
}
Proxies

Replace an IP#

POST /api/v1/orders/{order_id}/proxies/{proxy_id}/replace
Key with Allow purchases MCP: replace_ip

Ask for a new IP for one proxy of a live order.

Once per proxy every 24 hours (can_replace_ip on the proxy says if it's possible now). Not for Residential, which rotates by itself. We test the proxy first: one that works is not replaced and the call returns an error saying so. For a site that blocks the IP, send reason CANT_CHANGE_NETWORK with the site in comment. The new IP shows in Get an order within minutes to a few hours; login and password stay the same.

Parameters

Path parameters
order_idintegerrequired
The order. Example: 5531
proxy_idintegerrequired
The proxy's proxy_id. Example: 88120
Body (JSON)
reasonstringrequired
One of NOT_WORK, INCORRECT_LOCATION, LOW_SPEED, CANT_CHANGE_NETWORK, CUSTOM. Example: CANT_CHANGE_NETWORK
commentstringoptional
Optional detail, up to 200 characters. Example: Blocked on the target site

Request

curl -X POST "https://t7proxy.com/api/v1/orders/5531/proxies/88120/replace" \
  -H "Authorization: Bearer $T7PROXY_KEY" \
  -H "Content-Type: application/json" \
  -d '{"reason":"CANT_CHANGE_NETWORK","comment":"Blocked on the target site"}'

Response

{
    "data": {
        "replacement_id": 412,
        "old_ip": "185.23.41.7",
        "status": "pending",
        "fee_usd": 0,
        "note": "The new IP appears in GET /api/v1/orders/{id} within a few minutes to a few hours."
    }
}
Proxies

Connect to your proxies#

Each proxy object in an order has what you need to connect:

Field Example
host 185.23.41.7
http_port 50100
socks5_port 50101
login / password t7u8812 / Kd93mXq2
http_url http://t7u8812:Kd93mXq2@185.23.41.7:50100
curl -x http://t7u8812:Kd93mXq2@185.23.41.7:50100 https://api.ipify.org
curl --socks5-hostname t7u8812:Kd93mXq2@185.23.41.7:50101 https://api.ipify.org
import requests
proxy = "http://t7u8812:Kd93mXq2@185.23.41.7:50100"
print(requests.get("https://api.ipify.org", proxies={"http": proxy, "https": proxy}, timeout=30).text)

Note: If you bought with allow_ip, that IP address can connect without a login and password; the login keeps working too. IPv6 proxies share one gateway host: each port has its own IPv6 address and works on IPv6-enabled sites only.

Need a file for a scraper or antidetect browser? Export a proxy list gives one proxy per line in the format you pick.

Residential

Residential packages#

A residential package is one rotating, worldwide traffic package (GB) with its own login. Buy one with Buy proxies (type resident), then manage it here: the order's order_id is the package.

  • Main login. Get a package gives the gateway host and port, the login and password, the traffic left and the current rotation.
  • Rotation is how often the login gets a new exit IP, in seconds: 0 = a new IP for every request, -1 = keep the same IP for as long as it stays online (sticky), or 60, 300, 600, 900, 1800, 3600. The package lists them in rotation_options.
  • Access lists are extra logins inside the same package, each with its own location (country, then optionally region, city and ISP from the locations endpoints), rotation and number of ports. Port port_from up to port_to each give their own exit IP. Traffic comes out of the package.
  • Add traffic adds GB to a live package until its end date. It spends from the wallet, so it needs a key with Allow purchases, takes a request_key and counts against the hourly purchase limit.

Rotation and access lists change no money: a read-only key may change them. Only the account that bought the package can manage it; a package shared with you by support shows in List proxies to connect but can't be changed.

Residential

Get a residential package#

GET /api/v1/orders/{order_id}/resident
Read-only key works

A live residential package: traffic used and left, the main login, its rotation, the access lists, and the traffic you can add.

Traffic counters update every few minutes; used_gb and left_gb are null until the first reading. add_traffic_options are the amounts Add traffic takes, priced for your account.

Parameters

Path parameters
order_idintegerrequired
The residential order's order_id. Example: 5602

Request

curl "https://t7proxy.com/api/v1/orders/5602/resident" \
  -H "Authorization: Bearer $T7PROXY_KEY"

Response

{
    "data": {
        "package": {
            "order_id": 5602,
            "label": "Residential · 5 GB",
            "expires_at": "2026-12-21T10:00:00+00:00",
            "traffic": {
                "total_gb": 5,
                "used_gb": 1.8400000000000000799360577730112709105014801025390625,
                "left_gb": 3.160000000000000142108547152020037174224853515625,
                "added_gb": 0
            },
            "host": "res.t7proxy.com",
            "port": 10000,
            "login": "r7k2m9",
            "password": "Qw81zLp0",
            "rotation": 0,
            "rotation_label": "Every request",
            "rotation_options": [
                {
                    "value": 0,
                    "label": "Every request"
                },
                {
                    "value": 60,
                    "label": "Every 1 min"
                },
                {
                    "value": 300,
                    "label": "Every 5 min"
                },
                {
                    "value": 600,
                    "label": "Every 10 min"
                },
                {
                    "value": 900,
                    "label": "Every 15 min"
                },
                {
                    "value": 1800,
                    "label": "Every 30 min"
                },
                {
                    "value": 3600,
                    "label": "Every 60 min"
                },
                {
                    "value": -1,
                    "label": "Sticky IP"
                }
            ],
            "can_add_traffic": true,
            "add_traffic_options": [
                {
                    "product_id": 2101,
                    "gb": 5,
                    "price_usd": 17.5,
                    "per_gb_usd": 3.5
                }
            ],
            "lists": [
                {
                    "id": 318,
                    "title": "LA sticky",
                    "place": "United States · California · Los Angeles",
                    "country": "US",
                    "region": "California",
                    "city": "Los Angeles",
                    "isp": null,
                    "rotation": -1,
                    "rotation_label": "Sticky IP",
                    "ports": 3,
                    "host": "res.t7proxy.com",
                    "port_from": 10000,
                    "port_to": 10002,
                    "login": "r7geo41",
                    "password": "Hn3vX8qa"
                }
            ],
            "max_lists": 20,
            "max_ports": 1000
        }
    }
}
Residential

Add residential traffic#

POST /api/v1/orders/{order_id}/resident/traffic
Key with Allow purchases

Add GB to a live residential package, paid from the wallet. The login and end date stay the same.

Pick a product_id from the package's add_traffic_options. Send a request_key (or Idempotency-Key header) and reuse it on a retry: the same key never adds traffic twice, and the answer then has already_added: true. Not possible in the package's last 24 hours.

Counts against the 20 purchases per hour per account, like buying and renewing. A retry with a request_key that was already used doesn't count.

Parameters

Path parameters
order_idintegerrequired
The residential order. Example: 5602
Body (JSON)
product_idintegerrequired
From add_traffic_options in Get a residential package. Example: 2101
request_keystringrequired
Your own id for this top-up, up to 64 letters, digits, - and _. Example: add-5gb-2026-11-21
Headers
Idempotency-Keystringoptional
Same as request_key, for clients that set it as a header.

Request

curl -X POST "https://t7proxy.com/api/v1/orders/5602/resident/traffic" \
  -H "Authorization: Bearer $T7PROXY_KEY" \
  -H "Content-Type: application/json" \
  -d '{"product_id":2101,"request_key":"add-5gb-2026-11-21"}'

Response

{
    "data": {
        "already_added": false,
        "added_gb": 5,
        "charged_usd": 17.5,
        "balance_usd": 31,
        "package": {
            "order_id": 5602,
            "label": "Residential · 5 GB",
            "expires_at": "2026-12-21T10:00:00+00:00",
            "traffic": {
                "total_gb": 10,
                "used_gb": 1.8400000000000000799360577730112709105014801025390625,
                "left_gb": 8.160000000000000142108547152020037174224853515625,
                "added_gb": 5
            },
            "host": "res.t7proxy.com",
            "port": 10000,
            "login": "r7k2m9",
            "password": "Qw81zLp0",
            "rotation": 0,
            "rotation_label": "Every request",
            "rotation_options": [
                {
                    "value": 0,
                    "label": "Every request"
                },
                {
                    "value": 60,
                    "label": "Every 1 min"
                },
                {
                    "value": 300,
                    "label": "Every 5 min"
                },
                {
                    "value": 600,
                    "label": "Every 10 min"
                },
                {
                    "value": 900,
                    "label": "Every 15 min"
                },
                {
                    "value": 1800,
                    "label": "Every 30 min"
                },
                {
                    "value": 3600,
                    "label": "Every 60 min"
                },
                {
                    "value": -1,
                    "label": "Sticky IP"
                }
            ],
            "can_add_traffic": true,
            "add_traffic_options": [
                {
                    "product_id": 2101,
                    "gb": 5,
                    "price_usd": 17.5,
                    "per_gb_usd": 3.5
                }
            ],
            "lists": [
                {
                    "id": 318,
                    "title": "LA sticky",
                    "place": "United States · California · Los Angeles",
                    "country": "US",
                    "region": "California",
                    "city": "Los Angeles",
                    "isp": null,
                    "rotation": -1,
                    "rotation_label": "Sticky IP",
                    "ports": 3,
                    "host": "res.t7proxy.com",
                    "port_from": 10000,
                    "port_to": 10002,
                    "login": "r7geo41",
                    "password": "Hn3vX8qa"
                }
            ],
            "max_lists": 20,
            "max_ports": 1000
        }
    }
}
Residential

Set the package rotation#

PUT /api/v1/orders/{order_id}/resident/rotation
Read-only key works

Change how often the package's main login gets a new exit IP.

Applies to new connections within a minute. Access lists keep their own rotation.

Parameters

Path parameters
order_idintegerrequired
The residential order. Example: 5602
Body (JSON)
rotationintegerrequired
Seconds: 0 every request, -1 sticky, or 60, 300, 600, 900, 1800, 3600. Example: 600

Request

curl -X PUT "https://t7proxy.com/api/v1/orders/5602/resident/rotation" \
  -H "Authorization: Bearer $T7PROXY_KEY" \
  -H "Content-Type: application/json" \
  -d '{"rotation":600}'

Response

{
    "data": {
        "order_id": 5602,
        "rotation": 600,
        "rotation_label": "Every 10 min"
    }
}
Residential

List residential countries#

GET /api/v1/resident/geo
Read-only key works

Countries an access list can target, sorted by name.

Pass a code as country when you create an access list, or to Get a country for its regions, cities and ISPs.

Parameters

No parameters.

Request

curl "https://t7proxy.com/api/v1/resident/geo" \
  -H "Authorization: Bearer $T7PROXY_KEY"

Response

{
    "data": {
        "countries": [
            {
                "code": "DE",
                "name": "Germany"
            },
            {
                "code": "US",
                "name": "United States"
            }
        ]
    }
}
Residential

Get a residential country#

GET /api/v1/resident/geo/{country}
Read-only key works

The regions of one country, each with its cities and their ISPs.

Use the exact name values as region, city and isp when you create an access list. Each level is optional, but needs the one above it.

Parameters

Path parameters
countrystringrequired
Two-letter country code from List residential countries. Example: US

Request

curl "https://t7proxy.com/api/v1/resident/geo/US" \
  -H "Authorization: Bearer $T7PROXY_KEY"

Response

{
    "data": {
        "country": "US",
        "regions": [
            {
                "name": "California",
                "cities": [
                    {
                        "name": "Los Angeles",
                        "isps": [
                            "AT&T Internet",
                            "Spectrum"
                        ]
                    }
                ]
            }
        ]
    }
}
Residential

Create an access list#

POST /api/v1/orders/{order_id}/resident/lists
Read-only key works

A new login inside a residential package, with its own location, rotation and ports.

Leave country out for exit IPs anywhere. Each port from port_from to port_to is its own exit IP; traffic comes out of the package. Up to 20 lists per package.

Parameters

Path parameters
order_idintegerrequired
The residential order. Example: 5602
Body (JSON)
titlestringoptional
Your name for the list, up to 40 characters. Default "List N". Example: LA sticky
countrystringoptional
Two-letter code from List residential countries. Example: US
regionstringoptional
A region name from Get a residential country. Needs country. Example: California
citystringoptional
A city name in that region. Needs region. Example: Los Angeles
ispstringoptional
An ISP in that city. Needs city.
rotationintegerrequired
Seconds: 0 every request, -1 sticky, or 60, 300, 600, 900, 1800, 3600. Example: -1
portsintegerrequired
How many ports (exit IPs), 1 to 1000. Example: 3

Request

curl -X POST "https://t7proxy.com/api/v1/orders/5602/resident/lists" \
  -H "Authorization: Bearer $T7PROXY_KEY" \
  -H "Content-Type: application/json" \
  -d '{"title":"LA sticky","country":"US","region":"California","city":"Los Angeles","rotation":-1,"ports":3}'

Response

{
    "data": {
        "list": {
            "id": 318,
            "title": "LA sticky",
            "place": "United States · California · Los Angeles",
            "country": "US",
            "region": "California",
            "city": "Los Angeles",
            "isp": null,
            "rotation": -1,
            "rotation_label": "Sticky IP",
            "ports": 3,
            "host": "res.t7proxy.com",
            "port_from": 10000,
            "port_to": 10002,
            "login": "r7geo41",
            "password": "Hn3vX8qa"
        }
    }
}
Residential

Set an access list's rotation#

PUT /api/v1/orders/{order_id}/resident/lists/{list_id}/rotation
Read-only key works

Change how often one access list gets a new exit IP.

Parameters

Path parameters
order_idintegerrequired
The residential order. Example: 5602
list_idintegerrequired
The list's id. Example: 318
Body (JSON)
rotationintegerrequired
Seconds: 0 every request, -1 sticky, or 60, 300, 600, 900, 1800, 3600. Example: 300

Request

curl -X PUT "https://t7proxy.com/api/v1/orders/5602/resident/lists/318/rotation" \
  -H "Authorization: Bearer $T7PROXY_KEY" \
  -H "Content-Type: application/json" \
  -d '{"rotation":300}'

Response

{
    "data": {
        "list": {
            "id": 318,
            "title": "LA sticky",
            "place": "United States · California · Los Angeles",
            "country": "US",
            "region": "California",
            "city": "Los Angeles",
            "isp": null,
            "rotation": 300,
            "rotation_label": "Every 5 min",
            "ports": 3,
            "host": "res.t7proxy.com",
            "port_from": 10000,
            "port_to": 10002,
            "login": "r7geo41",
            "password": "Hn3vX8qa"
        }
    }
}
Residential

Delete an access list#

DELETE /api/v1/orders/{order_id}/resident/lists/{list_id}
Read-only key works

Delete an access list. Its login stops working at once.

Parameters

Path parameters
order_idintegerrequired
The residential order. Example: 5602
list_idintegerrequired
The list's id. Example: 318

Request

curl -X DELETE "https://t7proxy.com/api/v1/orders/5602/resident/lists/318" \
  -H "Authorization: Bearer $T7PROXY_KEY"

Response

{
    "data": {
        "deleted": true,
        "list_id": 318
    }
}
Residential

Export an access list#

GET /api/v1/orders/{order_id}/resident/lists/{list_id}/export
Read-only key works

An access list as plain text, host:port:login:password, one line per port.

Answers text/plain. Errors are still JSON.

Parameters

Path parameters
order_idintegerrequired
The residential order. Example: 5602
list_idintegerrequired
The list's id. Example: 318

Request

curl "https://t7proxy.com/api/v1/orders/5602/resident/lists/318/export" \
  -H "Authorization: Bearer $T7PROXY_KEY"

Response

res.t7proxy.com:10000:r7geo41:Hn3vX8qa
res.t7proxy.com:10001:r7geo41:Hn3vX8qa
res.t7proxy.com:10002:r7geo41:Hn3vX8qa
Developer tools

Code recipes#

Buy proxies safely (Python)

Lists US datacenter plans, quotes 5 IPs, buys them with a request_key, then waits until they are ready.

import os, time, uuid, requests

API = "https://t7proxy.com/api/v1"
s = requests.Session()
s.headers["Authorization"] = f"Bearer {os.environ['T7PROXY_KEY']}"

def call(method, path, **kw):
    r = s.request(method, API + path, timeout=60, **kw)
    body = r.json()
    if "error" in body:
        raise RuntimeError(f"{r.status_code} {body['error']['code']}: {body['error']['message']}")
    return body["data"]

plan = call("GET", "/plans", params={"type": "ipv4", "country": "US", "period_days": 30})["plans"][0]
quote = call("GET", "/quote", params={"product_id": plan["product_id"], "quantity": 5})
print(f"{plan['label']}: ${quote['total_usd']} (balance ${quote['balance_usd']})")
if not quote["enough_balance"]:
    raise SystemExit("Top up first: " + quote["top_up_url"])

key = str(uuid.uuid4())          # keep this with the job and reuse it on a retry
order = call("POST", "/orders", json={"product_id": plan["product_id"], "quantity": 5, "request_key": key})["order"]
while order["status"] == "processing":
    time.sleep(90)
    order = call("GET", f"/orders/{order['order_id']}")["order"]

for p in order.get("proxies", []):
    print(p["http_url"])

List what ends this week (Node.js)

const API = "https://t7proxy.com/api/v1";
const headers = { Authorization: `Bearer ${process.env.T7PROXY_KEY}` };

const { data } = await (await fetch(`${API}/orders?with_credentials=false`, { headers })).json();
const soon = Date.now() + 7 * 864e5;
for (const o of data.orders) {
  if (o.expires_at && Date.parse(o.expires_at) < soon) {
    console.log(`#${o.order_id} ${o.label} ends ${o.expires_at} (renew: $${o.renew_price_usd}, auto: ${o.auto_renew})`);
  }
}

Renew everything that ends in 48 hours (PHP)

<?php
$api = 'https://t7proxy.com/api/v1';
$headers = ['Authorization: Bearer '.getenv('T7PROXY_KEY'), 'Content-Type: application/json'];

function t7(string $method, string $url, array $headers): array {
    $ch = curl_init($url);
    curl_setopt_array($ch, [CURLOPT_RETURNTRANSFER => true, CURLOPT_CUSTOMREQUEST => $method, CURLOPT_HTTPHEADER => $headers]);
    return json_decode(curl_exec($ch), true);
}

foreach (t7('GET', "$api/orders?with_credentials=0", $headers)['data']['orders'] as $o) {
    if ($o['renewable'] && strtotime($o['expires_at']) < time() + 48 * 3600) {
        $r = t7('POST', "$api/orders/{$o['order_id']}/renew", $headers);
        echo $o['order_id'], ': ', $r['data']['order']['expires_at'] ?? $r['error']['message'], PHP_EOL;
    }
}
Developer tools

OpenAPI and SDKs#

The whole API is described in an OpenAPI 3.1 file:

https://t7proxy.com/docs/api/openapi.json

Import it into Postman, Insomnia, Bruno or Hoppscotch to try every endpoint, or generate a typed client in your language:

# Python
npx @openapitools/openapi-generator-cli generate -i https://t7proxy.com/docs/api/openapi.json -g python -o t7proxy-python
# TypeScript (fetch)
npx @openapitools/openapi-generator-cli generate -i https://t7proxy.com/docs/api/openapi.json -g typescript-fetch -o t7proxy-ts
# Go, Java, PHP, C#...: change -g to go, java, php or csharp

The API is small and plain JSON, so most people use their normal HTTP client: every endpoint on this page has ready samples for cURL, Python, Node.js, PHP and Go. Pick a language once and every sample switches.

For AI coding tools

These docs are also one Markdown file, made for pasting into Claude, ChatGPT or Cursor:

https://t7proxy.com/docs/api.md

Use Copy Markdown at the top of this page, or Open to send it straight to an assistant.

Developer tools

AI assistants (MCP)#

T7Proxy also runs a Model Context Protocol server, so AI assistants can do everything this API does in plain language: "Which of my proxies end this week?", "Buy 5 US datacenter IPs for 30 days", "Replace the IP of proxy 12, it's blocked."

REST API MCP server
For your code, scripts and servers Claude, ChatGPT, Cursor, VS Code, Claude Code
Address https://t7proxy.com/api/v1 https://t7proxy.com/mcp
Sign-in tp_live_ key the same key, or sign in with one click
Rules same prices, limits and safe retries same

Connect an assistant or manage connections on API & MCP.

Developer tools

Desktop app version#

GET /api/v1/desktop/version
No key needed

The newest T7Proxy Desktop release and the oldest one still allowed. No key needed.

T7Proxy Desktop asks on start: below minimum it must update, below latest it offers to. Fields are null until a release is published.

Parameters

No parameters.

Request

curl "https://t7proxy.com/api/v1/desktop/version"

Response

{
    "data": {
        "latest": "1.2.0",
        "minimum": "1.0.0",
        "download_url": "https://t7proxy.com/desktop",
        "notes_url": "https://t7proxy.com/desktop#changes"
    }
}
Developer tools

Changelog#

2026-11-21

  • Who is signed in and List proxies to connect: the account and every live proxy in one list, ready to connect.
  • Residential packages: get a package, add traffic, rotation, locations and access lists.
  • Desktop app version, without a key.
  • New error codes: package_not_active, product_unavailable, package_ending, out_of_stock, list_limit, invalid_location, try_again_later.
  • Apps connected by signing in now have their own rate limit each, instead of one per IP address.
  • Renew an order takes a request_key (or Idempotency-Key), and answers already_renewed.
  • Buy proxies takes expected_total_usd.
  • New error codes: in_progress, price_changed. Requests with a missing or wrong key are limited per IP address.

2026-11-17: v1

  • First public release of the REST API: account, wallet history, plans, quotes, orders, proxy export, renewals, auto-renew and IP replacement.
  • OpenAPI 3.1 file and a Markdown copy of these docs.

The API is versioned in the URL. Within v1 we only add things (new endpoints, new fields, new error codes), so ignore fields you don't know. Anything that would break a client gets a new version, announced here and by email first.

esc
↑↓ move↵ openesc close