T7Proxy API
Updated: November 21, 2026 · Version v1
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
| Area | Endpoints |
|---|---|
| Account | Get account, Who is signed in, List transactions |
| Plans | List plans, Get a quote |
| Orders | Buy proxies, List orders, Get an order, Export a proxy list, Renew, Auto-renew |
| Proxies | List proxies to connect, Replace an IP |
| Residential | Get a package, Add traffic, Rotation, Locations, Access lists |
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.
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
- List plans with a
typeandcountryto get aproduct_id. - Get a quote for the quantity you want. Check
total_usdandenough_balance. - Buy proxies with the same
product_idand quantity, and your ownrequest_key. - 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.
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 (
401or403). - 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.
Requests and responses#
Requests
GETendpoints take query parameters:/plans?type=ipv4&country=US.POSTandPUTendpoints take a JSON body. SendContent-Type: application/json.- Booleans may be
true/falseor1/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.
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_keyto get a refund.
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
processingevery 1 to 2 minutes, not every second. Most orders are ready within a few minutes.
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.
Get account#
/api/v1/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"
import os, requests
r = requests.get(
"https://t7proxy.com/api/v1/account",
headers={"Authorization": f"Bearer {os.environ['T7PROXY_KEY']}"},
timeout=60,
)
print(r.json())
const res = await fetch("https://t7proxy.com/api/v1/account", {
headers: {
Authorization: `Bearer ${process.env.T7PROXY_KEY}`,
},
});
const { data, error } = await res.json();
console.log(error ?? data);
<?php
$ch = curl_init('https://t7proxy.com/api/v1/account');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['Authorization: Bearer '.getenv('T7PROXY_KEY')],
]);
$res = json_decode(curl_exec($ch), true);
print_r($res['data'] ?? $res['error']);
package main
import (
"fmt"
"io"
"net/http"
"os"
)
func main() {
req, _ := http.NewRequest("GET", "https://t7proxy.com/api/v1/account", nil)
req.Header.Set("Authorization", "Bearer "+os.Getenv("T7PROXY_KEY"))
res, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
out, _ := io.ReadAll(res.Body)
fmt.Println(res.Status, string(out))
}
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."
}
}
{
"error": {
"code": "unauthenticated",
"message": "Missing or revoked T7Proxy key. Create one at https://t7proxy.com/dashboard/api."
}
}
{
"error": {
"code": "forbidden",
"message": "Confirm your email address on the website to use this key."
}
}
Who is signed in#
/api/v1/me
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"
import os, requests
r = requests.get(
"https://t7proxy.com/api/v1/me",
headers={"Authorization": f"Bearer {os.environ['T7PROXY_KEY']}"},
timeout=60,
)
print(r.json())
const res = await fetch("https://t7proxy.com/api/v1/me", {
headers: {
Authorization: `Bearer ${process.env.T7PROXY_KEY}`,
},
});
const { data, error } = await res.json();
console.log(error ?? data);
<?php
$ch = curl_init('https://t7proxy.com/api/v1/me');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['Authorization: Bearer '.getenv('T7PROXY_KEY')],
]);
$res = json_decode(curl_exec($ch), true);
print_r($res['data'] ?? $res['error']);
package main
import (
"fmt"
"io"
"net/http"
"os"
)
func main() {
req, _ := http.NewRequest("GET", "https://t7proxy.com/api/v1/me", nil)
req.Header.Set("Authorization", "Bearer "+os.Getenv("T7PROXY_KEY"))
res, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
out, _ := io.ReadAll(res.Body)
fmt.Println(res.Status, string(out))
}
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"
}
}
}
{
"error": {
"code": "unauthenticated",
"message": "Missing or revoked T7Proxy key. Create one at https://t7proxy.com/dashboard/api."
}
}
{
"error": {
"code": "forbidden",
"message": "Confirm your email address on the website to use this key."
}
}
List transactions#
/api/v1/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
limitintegeroptional20Request
curl "https://t7proxy.com/api/v1/transactions?limit=20" \
-H "Authorization: Bearer $T7PROXY_KEY"
import os, requests
r = requests.get(
"https://t7proxy.com/api/v1/transactions?limit=20",
headers={"Authorization": f"Bearer {os.environ['T7PROXY_KEY']}"},
timeout=60,
)
print(r.json())
const res = await fetch("https://t7proxy.com/api/v1/transactions?limit=20", {
headers: {
Authorization: `Bearer ${process.env.T7PROXY_KEY}`,
},
});
const { data, error } = await res.json();
console.log(error ?? data);
<?php
$ch = curl_init('https://t7proxy.com/api/v1/transactions?limit=20');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['Authorization: Bearer '.getenv('T7PROXY_KEY')],
]);
$res = json_decode(curl_exec($ch), true);
print_r($res['data'] ?? $res['error']);
package main
import (
"fmt"
"io"
"net/http"
"os"
)
func main() {
req, _ := http.NewRequest("GET", "https://t7proxy.com/api/v1/transactions?limit=20", nil)
req.Header.Set("Authorization", "Bearer "+os.Getenv("T7PROXY_KEY"))
res, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
out, _ := io.ReadAll(res.Body)
fmt.Println(res.Status, string(out))
}
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"
}
]
}
}
{
"error": {
"code": "invalid_request",
"message": "The product id field is required."
}
}
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 aprice_usdper IP. IPv6 30-day plans can also be bought for 7, 14, 90, 180 or 365 days: passdaysfrom the plan'sother_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_gbis its size andprice_usdis 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
protocolwhen buying. - Your account may have its own discount; quotes and charges already include it (
account_discount_usd).
List plans#
/api/v1/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
typestringoptionalipv4, isp, resident, mobile, ipv6.
Example: ipv4countrystringoptionalUS, DE) or part of the country name.
Example: USperiod_daysintegeroptional30.
Example: 30limitintegeroptionaltruncated 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"
import os, requests
r = requests.get(
"https://t7proxy.com/api/v1/plans?type=ipv4&country=US&period_days=30",
headers={"Authorization": f"Bearer {os.environ['T7PROXY_KEY']}"},
timeout=60,
)
print(r.json())
const res = await fetch("https://t7proxy.com/api/v1/plans?type=ipv4&country=US&period_days=30", {
headers: {
Authorization: `Bearer ${process.env.T7PROXY_KEY}`,
},
});
const { data, error } = await res.json();
console.log(error ?? data);
<?php
$ch = curl_init('https://t7proxy.com/api/v1/plans?type=ipv4&country=US&period_days=30');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['Authorization: Bearer '.getenv('T7PROXY_KEY')],
]);
$res = json_decode(curl_exec($ch), true);
print_r($res['data'] ?? $res['error']);
package main
import (
"fmt"
"io"
"net/http"
"os"
)
func main() {
req, _ := http.NewRequest("GET", "https://t7proxy.com/api/v1/plans?type=ipv4&country=US&period_days=30", nil)
req.Header.Set("Authorization", "Bearer "+os.Getenv("T7PROXY_KEY"))
res, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
out, _ := io.ReadAll(res.Body)
fmt.Println(res.Status, string(out))
}
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
}
}
{
"error": {
"code": "invalid_request",
"message": "The product id field is required."
}
}
Get a quote#
/api/v1/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
product_idintegerrequired1042quantityintegeroptionalmin_quantity. Datacenter IPv4: 5 to 1000; IPv6: 10 to 1000; static ISP: up to 500; mobile: up to 100. Ignored for Residential.
Example: 5daysintegeroptionalother_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"
import os, requests
r = requests.get(
"https://t7proxy.com/api/v1/quote?product_id=1042&quantity=5",
headers={"Authorization": f"Bearer {os.environ['T7PROXY_KEY']}"},
timeout=60,
)
print(r.json())
const res = await fetch("https://t7proxy.com/api/v1/quote?product_id=1042&quantity=5", {
headers: {
Authorization: `Bearer ${process.env.T7PROXY_KEY}`,
},
});
const { data, error } = await res.json();
console.log(error ?? data);
<?php
$ch = curl_init('https://t7proxy.com/api/v1/quote?product_id=1042&quantity=5');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['Authorization: Bearer '.getenv('T7PROXY_KEY')],
]);
$res = json_decode(curl_exec($ch), true);
print_r($res['data'] ?? $res['error']);
package main
import (
"fmt"
"io"
"net/http"
"os"
)
func main() {
req, _ := http.NewRequest("GET", "https://t7proxy.com/api/v1/quote?product_id=1042&quantity=5", nil)
req.Header.Set("Authorization", "Bearer "+os.Getenv("T7PROXY_KEY"))
res, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
out, _ := io.ReadAll(res.Body)
fmt.Println(res.Status, string(out))
}
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"
}
}
{
"error": {
"code": "not_found",
"message": "No order 5531 on this account. Call GET /api/v1/orders to see yours."
}
}
{
"error": {
"code": "request_failed",
"message": "This plan is not sold for 60 days. See other_periods in GET /api/v1/plans."
}
}
{
"error": {
"code": "invalid_request",
"message": "The product id field is required."
}
}
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
renewablesays whether Renew an order works now, andrenew_price_usdwhat it costs at today's price.- With
auto_renewon, 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_atmoves.
Buy proxies#
/api/v1/orders
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
product_idintegerrequired1042quantityintegeroptionalmin_quantity. Datacenter IPv4: 5 to 1000; IPv6: 10 to 1000; static ISP: up to 500; mobile: up to 100. Ignored for Residential.
Example: 5request_keystringoptional- and _. Strongly recommended.
Example: job-2026-11-17-us-dc-5daysintegeroptionalother_periods. Default: the plan's period_days.
auto_renewbooleanoptionalfalse.
Example: trueprotocolstringoptionalHTTPS (default) or SOCKS5. Other types serve both.
allow_ipstringoptionalintended_usestringoptionalGoogle or price monitoring. Up to 60 characters. Not used for Mobile.
expected_total_usdnumberoptionaltotal_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.5Idempotency-Keystringoptionalrequest_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}'
import os, requests
r = requests.post(
"https://t7proxy.com/api/v1/orders",
headers={"Authorization": f"Bearer {os.environ['T7PROXY_KEY']}"},
json={
"product_id": 1042,
"quantity": 5,
"request_key": "job-2026-11-17-us-dc-5",
"auto_renew": True,
},
timeout=60,
)
print(r.json())
const res = await fetch("https://t7proxy.com/api/v1/orders", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.T7PROXY_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
product_id: 1042,
quantity: 5,
request_key: "job-2026-11-17-us-dc-5",
auto_renew: true,
}),
});
const { data, error } = await res.json();
console.log(error ?? data);
<?php
$ch = curl_init('https://t7proxy.com/api/v1/orders');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => ['Authorization: Bearer '.getenv('T7PROXY_KEY'), 'Content-Type: application/json'],
CURLOPT_POSTFIELDS => json_encode([
'product_id' => 1042,
'quantity' => 5,
'request_key' => 'job-2026-11-17-us-dc-5',
'auto_renew' => true,
]),
]);
$res = json_decode(curl_exec($ch), true);
print_r($res['data'] ?? $res['error']);
package main
import (
"fmt"
"io"
"net/http"
"os"
"strings"
)
func main() {
body := strings.NewReader(`{"product_id":1042,"quantity":5,"request_key":"job-2026-11-17-us-dc-5","auto_renew":true}`)
req, _ := http.NewRequest("POST", "https://t7proxy.com/api/v1/orders", body)
req.Header.Set("Content-Type", "application/json")
req.Header.Set("Authorization", "Bearer "+os.Getenv("T7PROXY_KEY"))
res, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
out, _ := io.ReadAll(res.Body)
fmt.Println(res.Status, string(out))
}
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
}
}
{
"error": {
"code": "read_only_key",
"message": "This key is read-only. To let it buy and renew from the wallet, create a key with \"Allow purchases\" at https://t7proxy.com/dashboard/api."
}
}
{
"error": {
"code": "insufficient_balance",
"message": "Not enough balance for this order. Balance: $3.20. Top up at https://t7proxy.com/dashboard/wallet."
}
}
{
"error": {
"code": "price_changed",
"message": "The price went up since you checked it: this order now costs $12.65. Check the new price and try again."
}
}
{
"error": {
"code": "purchase_limit",
"message": "This account may place 20 purchases or renewals per hour through MCP. Try again in 12 minutes."
}
}
{
"error": {
"code": "request_failed",
"message": "This plan is not sold for 60 days. See other_periods in GET /api/v1/plans."
}
}
{
"error": {
"code": "invalid_request",
"message": "The product id field is required."
}
}
List orders#
/api/v1/orders
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
typestringoptionalipv4, isp, resident, mobile or ipv6.
include_expiredbooleanoptionalfalse.
with_credentialsbooleanoptionaltrue.
limitintegeroptional20Request
curl "https://t7proxy.com/api/v1/orders?limit=20" \
-H "Authorization: Bearer $T7PROXY_KEY"
import os, requests
r = requests.get(
"https://t7proxy.com/api/v1/orders?limit=20",
headers={"Authorization": f"Bearer {os.environ['T7PROXY_KEY']}"},
timeout=60,
)
print(r.json())
const res = await fetch("https://t7proxy.com/api/v1/orders?limit=20", {
headers: {
Authorization: `Bearer ${process.env.T7PROXY_KEY}`,
},
});
const { data, error } = await res.json();
console.log(error ?? data);
<?php
$ch = curl_init('https://t7proxy.com/api/v1/orders?limit=20');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['Authorization: Bearer '.getenv('T7PROXY_KEY')],
]);
$res = json_decode(curl_exec($ch), true);
print_r($res['data'] ?? $res['error']);
package main
import (
"fmt"
"io"
"net/http"
"os"
)
func main() {
req, _ := http.NewRequest("GET", "https://t7proxy.com/api/v1/orders?limit=20", nil)
req.Header.Set("Authorization", "Bearer "+os.Getenv("T7PROXY_KEY"))
res, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
out, _ := io.ReadAll(res.Body)
fmt.Println(res.Status, string(out))
}
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
}
}
{
"error": {
"code": "invalid_request",
"message": "The product id field is required."
}
}
Get an order#
/api/v1/orders/{order_id}
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
order_idintegerrequiredorder_id.
Example: 5531Request
curl "https://t7proxy.com/api/v1/orders/5531" \
-H "Authorization: Bearer $T7PROXY_KEY"
import os, requests
r = requests.get(
"https://t7proxy.com/api/v1/orders/5531",
headers={"Authorization": f"Bearer {os.environ['T7PROXY_KEY']}"},
timeout=60,
)
print(r.json())
const res = await fetch("https://t7proxy.com/api/v1/orders/5531", {
headers: {
Authorization: `Bearer ${process.env.T7PROXY_KEY}`,
},
});
const { data, error } = await res.json();
console.log(error ?? data);
<?php
$ch = curl_init('https://t7proxy.com/api/v1/orders/5531');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['Authorization: Bearer '.getenv('T7PROXY_KEY')],
]);
$res = json_decode(curl_exec($ch), true);
print_r($res['data'] ?? $res['error']);
package main
import (
"fmt"
"io"
"net/http"
"os"
)
func main() {
req, _ := http.NewRequest("GET", "https://t7proxy.com/api/v1/orders/5531", nil)
req.Header.Set("Authorization", "Bearer "+os.Getenv("T7PROXY_KEY"))
res, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
out, _ := io.ReadAll(res.Body)
fmt.Println(res.Status, string(out))
}
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
}
]
}
}
}
{
"error": {
"code": "not_found",
"message": "No order 5531 on this account. Call GET /api/v1/orders to see yours."
}
}
Export a proxy list#
/api/v1/orders/{order_id}/export
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
order_idintegerrequiredorder_id.
Example: 5531formatstringoptionalhost:port:login:password, login:password@host:port, url. Default host:port:login:password.
Example: host:port:login:passwordprotocolstringoptionalhttp (default) or socks5: which port to use, and the scheme for url.
Example: httpRequest
curl "https://t7proxy.com/api/v1/orders/5531/export?format=host%3Aport%3Alogin%3Apassword&protocol=http" \
-H "Authorization: Bearer $T7PROXY_KEY"
import os, requests
r = requests.get(
"https://t7proxy.com/api/v1/orders/5531/export?format=host%3Aport%3Alogin%3Apassword&protocol=http",
headers={"Authorization": f"Bearer {os.environ['T7PROXY_KEY']}"},
timeout=60,
)
print(r.text)
const res = await fetch("https://t7proxy.com/api/v1/orders/5531/export?format=host%3Aport%3Alogin%3Apassword&protocol=http", {
headers: {
Authorization: `Bearer ${process.env.T7PROXY_KEY}`,
},
});
console.log(await res.text());
<?php
$ch = curl_init('https://t7proxy.com/api/v1/orders/5531/export?format=host%3Aport%3Alogin%3Apassword&protocol=http');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['Authorization: Bearer '.getenv('T7PROXY_KEY')],
]);
echo curl_exec($ch);
package main
import (
"fmt"
"io"
"net/http"
"os"
)
func main() {
req, _ := http.NewRequest("GET", "https://t7proxy.com/api/v1/orders/5531/export?format=host%3Aport%3Alogin%3Apassword&protocol=http", nil)
req.Header.Set("Authorization", "Bearer "+os.Getenv("T7PROXY_KEY"))
res, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
out, _ := io.ReadAll(res.Body)
fmt.Println(res.Status, string(out))
}
Response
185.23.41.7:50100:t7u8812:Kd93mXq2
185.23.41.8:50100:t7u8812:Kd93mXq2
185.23.41.9:50100:t7u8812:Kd93mXq2
{
"error": {
"code": "not_found",
"message": "No order 5531 on this account. Call GET /api/v1/orders to see yours."
}
}
{
"error": {
"code": "invalid_request",
"message": "The product id field is required."
}
}
Renew an order#
/api/v1/orders/{order_id}/renew
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
order_idintegerrequired5531request_keystringoptional- and _. Strongly recommended; use a new one for each renewal.
Example: renew-5531-2026-12Idempotency-Keystringoptionalrequest_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"}'
import os, requests
r = requests.post(
"https://t7proxy.com/api/v1/orders/5531/renew",
headers={"Authorization": f"Bearer {os.environ['T7PROXY_KEY']}"},
json={
"request_key": "renew-5531-2026-12",
},
timeout=60,
)
print(r.json())
const res = await fetch("https://t7proxy.com/api/v1/orders/5531/renew", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.T7PROXY_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
request_key: "renew-5531-2026-12",
}),
});
const { data, error } = await res.json();
console.log(error ?? data);
<?php
$ch = curl_init('https://t7proxy.com/api/v1/orders/5531/renew');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => ['Authorization: Bearer '.getenv('T7PROXY_KEY'), 'Content-Type: application/json'],
CURLOPT_POSTFIELDS => json_encode([
'request_key' => 'renew-5531-2026-12',
]),
]);
$res = json_decode(curl_exec($ch), true);
print_r($res['data'] ?? $res['error']);
package main
import (
"fmt"
"io"
"net/http"
"os"
"strings"
)
func main() {
body := strings.NewReader(`{"request_key":"renew-5531-2026-12"}`)
req, _ := http.NewRequest("POST", "https://t7proxy.com/api/v1/orders/5531/renew", body)
req.Header.Set("Content-Type", "application/json")
req.Header.Set("Authorization", "Bearer "+os.Getenv("T7PROXY_KEY"))
res, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
out, _ := io.ReadAll(res.Body)
fmt.Println(res.Status, string(out))
}
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
}
}
{
"error": {
"code": "read_only_key",
"message": "This key is read-only. To let it buy and renew from the wallet, create a key with \"Allow purchases\" at https://t7proxy.com/dashboard/api."
}
}
{
"error": {
"code": "insufficient_balance",
"message": "Not enough balance for this order. Balance: $3.20. Top up at https://t7proxy.com/dashboard/wallet."
}
}
{
"error": {
"code": "purchase_limit",
"message": "This account may place 20 purchases or renewals per hour through MCP. Try again in 12 minutes."
}
}
{
"error": {
"code": "in_progress",
"message": "This order is already being renewed. Please check it again in a moment."
}
}
{
"error": {
"code": "not_found",
"message": "No order 5531 on this account. Call GET /api/v1/orders to see yours."
}
}
{
"error": {
"code": "request_failed",
"message": "This plan is not sold for 60 days. See other_periods in GET /api/v1/plans."
}
}
{
"error": {
"code": "invalid_request",
"message": "The product id field is required."
}
}
Set auto-renew#
/api/v1/orders/{order_id}/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
order_idintegerrequired5531onbooleanrequiredtrue to turn on, false to turn off.
Example: trueRequest
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}'
import os, requests
r = requests.put(
"https://t7proxy.com/api/v1/orders/5531/auto-renew",
headers={"Authorization": f"Bearer {os.environ['T7PROXY_KEY']}"},
json={
"on": True,
},
timeout=60,
)
print(r.json())
const res = await fetch("https://t7proxy.com/api/v1/orders/5531/auto-renew", {
method: "PUT",
headers: {
Authorization: `Bearer ${process.env.T7PROXY_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
on: true,
}),
});
const { data, error } = await res.json();
console.log(error ?? data);
<?php
$ch = curl_init('https://t7proxy.com/api/v1/orders/5531/auto-renew');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'PUT',
CURLOPT_HTTPHEADER => ['Authorization: Bearer '.getenv('T7PROXY_KEY'), 'Content-Type: application/json'],
CURLOPT_POSTFIELDS => json_encode([
'on' => true,
]),
]);
$res = json_decode(curl_exec($ch), true);
print_r($res['data'] ?? $res['error']);
package main
import (
"fmt"
"io"
"net/http"
"os"
"strings"
)
func main() {
body := strings.NewReader(`{"on":true}`)
req, _ := http.NewRequest("PUT", "https://t7proxy.com/api/v1/orders/5531/auto-renew", body)
req.Header.Set("Content-Type", "application/json")
req.Header.Set("Authorization", "Bearer "+os.Getenv("T7PROXY_KEY"))
res, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
out, _ := io.ReadAll(res.Body)
fmt.Println(res.Status, string(out))
}
Response
{
"data": {
"order_id": 5531,
"auto_renew": true,
"renews_hours_before_end": 12
}
}
{
"error": {
"code": "read_only_key",
"message": "This key is read-only. To let it buy and renew from the wallet, create a key with \"Allow purchases\" at https://t7proxy.com/dashboard/api."
}
}
{
"error": {
"code": "request_failed",
"message": "This plan is not sold for 60 days. See other_periods in GET /api/v1/plans."
}
}
{
"error": {
"code": "invalid_request",
"message": "The product id field is required."
}
}
List proxies to connect#
/api/v1/proxies
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"
import os, requests
r = requests.get(
"https://t7proxy.com/api/v1/proxies",
headers={"Authorization": f"Bearer {os.environ['T7PROXY_KEY']}"},
timeout=60,
)
print(r.json())
const res = await fetch("https://t7proxy.com/api/v1/proxies", {
headers: {
Authorization: `Bearer ${process.env.T7PROXY_KEY}`,
},
});
const { data, error } = await res.json();
console.log(error ?? data);
<?php
$ch = curl_init('https://t7proxy.com/api/v1/proxies');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['Authorization: Bearer '.getenv('T7PROXY_KEY')],
]);
$res = json_decode(curl_exec($ch), true);
print_r($res['data'] ?? $res['error']);
package main
import (
"fmt"
"io"
"net/http"
"os"
)
func main() {
req, _ := http.NewRequest("GET", "https://t7proxy.com/api/v1/proxies", nil)
req.Header.Set("Authorization", "Bearer "+os.Getenv("T7PROXY_KEY"))
res, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
out, _ := io.ReadAll(res.Body)
fmt.Println(res.Status, string(out))
}
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"
}
}
{
"error": {
"code": "unauthenticated",
"message": "Missing or revoked T7Proxy key. Create one at https://t7proxy.com/dashboard/api."
}
}
{
"error": {
"code": "forbidden",
"message": "Confirm your email address on the website to use this key."
}
}
Replace an IP#
/api/v1/orders/{order_id}/proxies/{proxy_id}/replace
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
order_idintegerrequired5531proxy_idintegerrequiredproxy_id.
Example: 88120reasonstringrequiredNOT_WORK, INCORRECT_LOCATION, LOW_SPEED, CANT_CHANGE_NETWORK, CUSTOM.
Example: CANT_CHANGE_NETWORKcommentstringoptionalBlocked on the target siteRequest
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"}'
import os, requests
r = requests.post(
"https://t7proxy.com/api/v1/orders/5531/proxies/88120/replace",
headers={"Authorization": f"Bearer {os.environ['T7PROXY_KEY']}"},
json={
"reason": "CANT_CHANGE_NETWORK",
"comment": "Blocked on the target site",
},
timeout=60,
)
print(r.json())
const res = await fetch("https://t7proxy.com/api/v1/orders/5531/proxies/88120/replace", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.T7PROXY_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
reason: "CANT_CHANGE_NETWORK",
comment: "Blocked on the target site",
}),
});
const { data, error } = await res.json();
console.log(error ?? data);
<?php
$ch = curl_init('https://t7proxy.com/api/v1/orders/5531/proxies/88120/replace');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => ['Authorization: Bearer '.getenv('T7PROXY_KEY'), 'Content-Type: application/json'],
CURLOPT_POSTFIELDS => json_encode([
'reason' => 'CANT_CHANGE_NETWORK',
'comment' => 'Blocked on the target site',
]),
]);
$res = json_decode(curl_exec($ch), true);
print_r($res['data'] ?? $res['error']);
package main
import (
"fmt"
"io"
"net/http"
"os"
"strings"
)
func main() {
body := strings.NewReader(`{"reason":"CANT_CHANGE_NETWORK","comment":"Blocked on the target site"}`)
req, _ := http.NewRequest("POST", "https://t7proxy.com/api/v1/orders/5531/proxies/88120/replace", body)
req.Header.Set("Content-Type", "application/json")
req.Header.Set("Authorization", "Bearer "+os.Getenv("T7PROXY_KEY"))
res, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
out, _ := io.ReadAll(res.Body)
fmt.Println(res.Status, string(out))
}
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."
}
}
{
"error": {
"code": "read_only_key",
"message": "This key is read-only. To let it buy and renew from the wallet, create a key with \"Allow purchases\" at https://t7proxy.com/dashboard/api."
}
}
{
"error": {
"code": "not_found",
"message": "No order 5531 on this account. Call GET /api/v1/orders to see yours."
}
}
{
"error": {
"code": "request_failed",
"message": "This plan is not sold for 60 days. See other_periods in GET /api/v1/plans."
}
}
{
"error": {
"code": "invalid_request",
"message": "The product id field is required."
}
}
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 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
hostandport, theloginandpassword, the traffic left and the currentrotation. - 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), or60,300,600,900,1800,3600. The package lists them inrotation_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_fromup toport_toeach 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_keyand 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.
Get a residential package#
/api/v1/orders/{order_id}/resident
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
order_idintegerrequiredorder_id.
Example: 5602Request
curl "https://t7proxy.com/api/v1/orders/5602/resident" \
-H "Authorization: Bearer $T7PROXY_KEY"
import os, requests
r = requests.get(
"https://t7proxy.com/api/v1/orders/5602/resident",
headers={"Authorization": f"Bearer {os.environ['T7PROXY_KEY']}"},
timeout=60,
)
print(r.json())
const res = await fetch("https://t7proxy.com/api/v1/orders/5602/resident", {
headers: {
Authorization: `Bearer ${process.env.T7PROXY_KEY}`,
},
});
const { data, error } = await res.json();
console.log(error ?? data);
<?php
$ch = curl_init('https://t7proxy.com/api/v1/orders/5602/resident');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['Authorization: Bearer '.getenv('T7PROXY_KEY')],
]);
$res = json_decode(curl_exec($ch), true);
print_r($res['data'] ?? $res['error']);
package main
import (
"fmt"
"io"
"net/http"
"os"
)
func main() {
req, _ := http.NewRequest("GET", "https://t7proxy.com/api/v1/orders/5602/resident", nil)
req.Header.Set("Authorization", "Bearer "+os.Getenv("T7PROXY_KEY"))
res, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
out, _ := io.ReadAll(res.Body)
fmt.Println(res.Status, string(out))
}
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
}
}
}
{
"error": {
"code": "package_not_active",
"message": "This residential package is not active."
}
}
Add residential traffic#
/api/v1/orders/{order_id}/resident/traffic
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
order_idintegerrequired5602product_idintegerrequiredrequest_keystringrequired- and _.
Example: add-5gb-2026-11-21Idempotency-Keystringoptionalrequest_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"}'
import os, requests
r = requests.post(
"https://t7proxy.com/api/v1/orders/5602/resident/traffic",
headers={"Authorization": f"Bearer {os.environ['T7PROXY_KEY']}"},
json={
"product_id": 2101,
"request_key": "add-5gb-2026-11-21",
},
timeout=60,
)
print(r.json())
const res = await fetch("https://t7proxy.com/api/v1/orders/5602/resident/traffic", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.T7PROXY_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
product_id: 2101,
request_key: "add-5gb-2026-11-21",
}),
});
const { data, error } = await res.json();
console.log(error ?? data);
<?php
$ch = curl_init('https://t7proxy.com/api/v1/orders/5602/resident/traffic');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => ['Authorization: Bearer '.getenv('T7PROXY_KEY'), 'Content-Type: application/json'],
CURLOPT_POSTFIELDS => json_encode([
'product_id' => 2101,
'request_key' => 'add-5gb-2026-11-21',
]),
]);
$res = json_decode(curl_exec($ch), true);
print_r($res['data'] ?? $res['error']);
package main
import (
"fmt"
"io"
"net/http"
"os"
"strings"
)
func main() {
body := strings.NewReader(`{"product_id":2101,"request_key":"add-5gb-2026-11-21"}`)
req, _ := http.NewRequest("POST", "https://t7proxy.com/api/v1/orders/5602/resident/traffic", body)
req.Header.Set("Content-Type", "application/json")
req.Header.Set("Authorization", "Bearer "+os.Getenv("T7PROXY_KEY"))
res, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
out, _ := io.ReadAll(res.Body)
fmt.Println(res.Status, string(out))
}
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
}
}
}
{
"error": {
"code": "read_only_key",
"message": "This key is read-only. To let it buy and renew from the wallet, create a key with \"Allow purchases\" at https://t7proxy.com/dashboard/api."
}
}
{
"error": {
"code": "package_not_active",
"message": "This residential package is not active."
}
}
{
"error": {
"code": "product_unavailable",
"message": "This traffic package is not on sale right now. Please pick another one."
}
}
{
"error": {
"code": "package_ending",
"message": "This package ends in less than a day, so added traffic could not be used. Please buy a new package instead."
}
}
{
"error": {
"code": "out_of_stock",
"message": "This much extra traffic is out of stock right now. Please pick a smaller amount or try again later."
}
}
{
"error": {
"code": "insufficient_balance",
"message": "Not enough balance for this order. Balance: $3.20. Top up at https://t7proxy.com/dashboard/wallet."
}
}
{
"error": {
"code": "purchase_limit",
"message": "This account may place 20 purchases or renewals per hour through MCP. Try again in 12 minutes."
}
}
{
"error": {
"code": "in_progress",
"message": "This order is already being renewed. Please check it again in a moment."
}
}
{
"error": {
"code": "try_again_later",
"message": "The rotation could not be changed right now. Please try again in a few minutes."
}
}
{
"error": {
"code": "invalid_request",
"message": "The product id field is required."
}
}
Set the package rotation#
/api/v1/orders/{order_id}/resident/rotation
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
order_idintegerrequired5602rotationintegerrequired0 every request, -1 sticky, or 60, 300, 600, 900, 1800, 3600.
Example: 600Request
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}'
import os, requests
r = requests.put(
"https://t7proxy.com/api/v1/orders/5602/resident/rotation",
headers={"Authorization": f"Bearer {os.environ['T7PROXY_KEY']}"},
json={
"rotation": 600,
},
timeout=60,
)
print(r.json())
const res = await fetch("https://t7proxy.com/api/v1/orders/5602/resident/rotation", {
method: "PUT",
headers: {
Authorization: `Bearer ${process.env.T7PROXY_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
rotation: 600,
}),
});
const { data, error } = await res.json();
console.log(error ?? data);
<?php
$ch = curl_init('https://t7proxy.com/api/v1/orders/5602/resident/rotation');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'PUT',
CURLOPT_HTTPHEADER => ['Authorization: Bearer '.getenv('T7PROXY_KEY'), 'Content-Type: application/json'],
CURLOPT_POSTFIELDS => json_encode([
'rotation' => 600,
]),
]);
$res = json_decode(curl_exec($ch), true);
print_r($res['data'] ?? $res['error']);
package main
import (
"fmt"
"io"
"net/http"
"os"
"strings"
)
func main() {
body := strings.NewReader(`{"rotation":600}`)
req, _ := http.NewRequest("PUT", "https://t7proxy.com/api/v1/orders/5602/resident/rotation", body)
req.Header.Set("Content-Type", "application/json")
req.Header.Set("Authorization", "Bearer "+os.Getenv("T7PROXY_KEY"))
res, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
out, _ := io.ReadAll(res.Body)
fmt.Println(res.Status, string(out))
}
Response
{
"data": {
"order_id": 5602,
"rotation": 600,
"rotation_label": "Every 10 min"
}
}
{
"error": {
"code": "package_not_active",
"message": "This residential package is not active."
}
}
{
"error": {
"code": "try_again_later",
"message": "The rotation could not be changed right now. Please try again in a few minutes."
}
}
{
"error": {
"code": "invalid_request",
"message": "The product id field is required."
}
}
List residential countries#
/api/v1/resident/geo
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"
import os, requests
r = requests.get(
"https://t7proxy.com/api/v1/resident/geo",
headers={"Authorization": f"Bearer {os.environ['T7PROXY_KEY']}"},
timeout=60,
)
print(r.json())
const res = await fetch("https://t7proxy.com/api/v1/resident/geo", {
headers: {
Authorization: `Bearer ${process.env.T7PROXY_KEY}`,
},
});
const { data, error } = await res.json();
console.log(error ?? data);
<?php
$ch = curl_init('https://t7proxy.com/api/v1/resident/geo');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['Authorization: Bearer '.getenv('T7PROXY_KEY')],
]);
$res = json_decode(curl_exec($ch), true);
print_r($res['data'] ?? $res['error']);
package main
import (
"fmt"
"io"
"net/http"
"os"
)
func main() {
req, _ := http.NewRequest("GET", "https://t7proxy.com/api/v1/resident/geo", nil)
req.Header.Set("Authorization", "Bearer "+os.Getenv("T7PROXY_KEY"))
res, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
out, _ := io.ReadAll(res.Body)
fmt.Println(res.Status, string(out))
}
Response
{
"data": {
"countries": [
{
"code": "DE",
"name": "Germany"
},
{
"code": "US",
"name": "United States"
}
]
}
}
{
"error": {
"code": "unauthenticated",
"message": "Missing or revoked T7Proxy key. Create one at https://t7proxy.com/dashboard/api."
}
}
Get a residential country#
/api/v1/resident/geo/{country}
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
countrystringrequiredUSRequest
curl "https://t7proxy.com/api/v1/resident/geo/US" \
-H "Authorization: Bearer $T7PROXY_KEY"
import os, requests
r = requests.get(
"https://t7proxy.com/api/v1/resident/geo/US",
headers={"Authorization": f"Bearer {os.environ['T7PROXY_KEY']}"},
timeout=60,
)
print(r.json())
const res = await fetch("https://t7proxy.com/api/v1/resident/geo/US", {
headers: {
Authorization: `Bearer ${process.env.T7PROXY_KEY}`,
},
});
const { data, error } = await res.json();
console.log(error ?? data);
<?php
$ch = curl_init('https://t7proxy.com/api/v1/resident/geo/US');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['Authorization: Bearer '.getenv('T7PROXY_KEY')],
]);
$res = json_decode(curl_exec($ch), true);
print_r($res['data'] ?? $res['error']);
package main
import (
"fmt"
"io"
"net/http"
"os"
)
func main() {
req, _ := http.NewRequest("GET", "https://t7proxy.com/api/v1/resident/geo/US", nil)
req.Header.Set("Authorization", "Bearer "+os.Getenv("T7PROXY_KEY"))
res, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
out, _ := io.ReadAll(res.Body)
fmt.Println(res.Status, string(out))
}
Response
{
"data": {
"country": "US",
"regions": [
{
"name": "California",
"cities": [
{
"name": "Los Angeles",
"isps": [
"AT&T Internet",
"Spectrum"
]
}
]
}
]
}
}
{
"error": {
"code": "not_found",
"message": "No order 5531 on this account. Call GET /api/v1/orders to see yours."
}
}
Create an access list#
/api/v1/orders/{order_id}/resident/lists
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
order_idintegerrequired5602titlestringoptionalLA stickycountrystringoptionalUSregionstringoptionalcitystringoptionalname in that region. Needs region.
Example: Los Angelesispstringoptionalcity.
rotationintegerrequired0 every request, -1 sticky, or 60, 300, 600, 900, 1800, 3600.
Example: -1portsintegerrequired3Request
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}'
import os, requests
r = requests.post(
"https://t7proxy.com/api/v1/orders/5602/resident/lists",
headers={"Authorization": f"Bearer {os.environ['T7PROXY_KEY']}"},
json={
"title": "LA sticky",
"country": "US",
"region": "California",
"city": "Los Angeles",
"rotation": -1,
"ports": 3,
},
timeout=60,
)
print(r.json())
const res = await fetch("https://t7proxy.com/api/v1/orders/5602/resident/lists", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.T7PROXY_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
title: "LA sticky",
country: "US",
region: "California",
city: "Los Angeles",
rotation: -1,
ports: 3,
}),
});
const { data, error } = await res.json();
console.log(error ?? data);
<?php
$ch = curl_init('https://t7proxy.com/api/v1/orders/5602/resident/lists');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => ['Authorization: Bearer '.getenv('T7PROXY_KEY'), 'Content-Type: application/json'],
CURLOPT_POSTFIELDS => json_encode([
'title' => 'LA sticky',
'country' => 'US',
'region' => 'California',
'city' => 'Los Angeles',
'rotation' => -1,
'ports' => 3,
]),
]);
$res = json_decode(curl_exec($ch), true);
print_r($res['data'] ?? $res['error']);
package main
import (
"fmt"
"io"
"net/http"
"os"
"strings"
)
func main() {
body := strings.NewReader(`{"title":"LA sticky","country":"US","region":"California","city":"Los Angeles","rotation":-1,"ports":3}`)
req, _ := http.NewRequest("POST", "https://t7proxy.com/api/v1/orders/5602/resident/lists", body)
req.Header.Set("Content-Type", "application/json")
req.Header.Set("Authorization", "Bearer "+os.Getenv("T7PROXY_KEY"))
res, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
out, _ := io.ReadAll(res.Body)
fmt.Println(res.Status, string(out))
}
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"
}
}
}
{
"error": {
"code": "package_not_active",
"message": "This residential package is not active."
}
}
{
"error": {
"code": "invalid_location",
"message": "That region is not available. Please pick another one."
}
}
{
"error": {
"code": "list_limit",
"message": "You can have up to 20 lists per package. Delete one first."
}
}
{
"error": {
"code": "try_again_later",
"message": "The rotation could not be changed right now. Please try again in a few minutes."
}
}
{
"error": {
"code": "invalid_request",
"message": "The product id field is required."
}
}
Set an access list's rotation#
/api/v1/orders/{order_id}/resident/lists/{list_id}/rotation
Change how often one access list gets a new exit IP.
Parameters
order_idintegerrequired5602list_idintegerrequiredid.
Example: 318rotationintegerrequired0 every request, -1 sticky, or 60, 300, 600, 900, 1800, 3600.
Example: 300Request
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}'
import os, requests
r = requests.put(
"https://t7proxy.com/api/v1/orders/5602/resident/lists/318/rotation",
headers={"Authorization": f"Bearer {os.environ['T7PROXY_KEY']}"},
json={
"rotation": 300,
},
timeout=60,
)
print(r.json())
const res = await fetch("https://t7proxy.com/api/v1/orders/5602/resident/lists/318/rotation", {
method: "PUT",
headers: {
Authorization: `Bearer ${process.env.T7PROXY_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
rotation: 300,
}),
});
const { data, error } = await res.json();
console.log(error ?? data);
<?php
$ch = curl_init('https://t7proxy.com/api/v1/orders/5602/resident/lists/318/rotation');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'PUT',
CURLOPT_HTTPHEADER => ['Authorization: Bearer '.getenv('T7PROXY_KEY'), 'Content-Type: application/json'],
CURLOPT_POSTFIELDS => json_encode([
'rotation' => 300,
]),
]);
$res = json_decode(curl_exec($ch), true);
print_r($res['data'] ?? $res['error']);
package main
import (
"fmt"
"io"
"net/http"
"os"
"strings"
)
func main() {
body := strings.NewReader(`{"rotation":300}`)
req, _ := http.NewRequest("PUT", "https://t7proxy.com/api/v1/orders/5602/resident/lists/318/rotation", body)
req.Header.Set("Content-Type", "application/json")
req.Header.Set("Authorization", "Bearer "+os.Getenv("T7PROXY_KEY"))
res, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
out, _ := io.ReadAll(res.Body)
fmt.Println(res.Status, string(out))
}
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"
}
}
}
{
"error": {
"code": "package_not_active",
"message": "This residential package is not active."
}
}
{
"error": {
"code": "not_found",
"message": "No order 5531 on this account. Call GET /api/v1/orders to see yours."
}
}
{
"error": {
"code": "try_again_later",
"message": "The rotation could not be changed right now. Please try again in a few minutes."
}
}
{
"error": {
"code": "invalid_request",
"message": "The product id field is required."
}
}
Delete an access list#
/api/v1/orders/{order_id}/resident/lists/{list_id}
Delete an access list. Its login stops working at once.
Parameters
order_idintegerrequired5602list_idintegerrequiredid.
Example: 318Request
curl -X DELETE "https://t7proxy.com/api/v1/orders/5602/resident/lists/318" \
-H "Authorization: Bearer $T7PROXY_KEY"
import os, requests
r = requests.delete(
"https://t7proxy.com/api/v1/orders/5602/resident/lists/318",
headers={"Authorization": f"Bearer {os.environ['T7PROXY_KEY']}"},
timeout=60,
)
print(r.json())
const res = await fetch("https://t7proxy.com/api/v1/orders/5602/resident/lists/318", {
method: "DELETE",
headers: {
Authorization: `Bearer ${process.env.T7PROXY_KEY}`,
},
});
const { data, error } = await res.json();
console.log(error ?? data);
<?php
$ch = curl_init('https://t7proxy.com/api/v1/orders/5602/resident/lists/318');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'DELETE',
CURLOPT_HTTPHEADER => ['Authorization: Bearer '.getenv('T7PROXY_KEY')],
]);
$res = json_decode(curl_exec($ch), true);
print_r($res['data'] ?? $res['error']);
package main
import (
"fmt"
"io"
"net/http"
"os"
)
func main() {
req, _ := http.NewRequest("DELETE", "https://t7proxy.com/api/v1/orders/5602/resident/lists/318", nil)
req.Header.Set("Authorization", "Bearer "+os.Getenv("T7PROXY_KEY"))
res, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
out, _ := io.ReadAll(res.Body)
fmt.Println(res.Status, string(out))
}
Response
{
"data": {
"deleted": true,
"list_id": 318
}
}
{
"error": {
"code": "package_not_active",
"message": "This residential package is not active."
}
}
{
"error": {
"code": "not_found",
"message": "No order 5531 on this account. Call GET /api/v1/orders to see yours."
}
}
{
"error": {
"code": "try_again_later",
"message": "The rotation could not be changed right now. Please try again in a few minutes."
}
}
Export an access list#
/api/v1/orders/{order_id}/resident/lists/{list_id}/export
An access list as plain text, host:port:login:password, one line per port.
Answers text/plain. Errors are still JSON.
Parameters
order_idintegerrequired5602list_idintegerrequiredid.
Example: 318Request
curl "https://t7proxy.com/api/v1/orders/5602/resident/lists/318/export" \
-H "Authorization: Bearer $T7PROXY_KEY"
import os, requests
r = requests.get(
"https://t7proxy.com/api/v1/orders/5602/resident/lists/318/export",
headers={"Authorization": f"Bearer {os.environ['T7PROXY_KEY']}"},
timeout=60,
)
print(r.text)
const res = await fetch("https://t7proxy.com/api/v1/orders/5602/resident/lists/318/export", {
headers: {
Authorization: `Bearer ${process.env.T7PROXY_KEY}`,
},
});
console.log(await res.text());
<?php
$ch = curl_init('https://t7proxy.com/api/v1/orders/5602/resident/lists/318/export');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['Authorization: Bearer '.getenv('T7PROXY_KEY')],
]);
echo curl_exec($ch);
package main
import (
"fmt"
"io"
"net/http"
"os"
)
func main() {
req, _ := http.NewRequest("GET", "https://t7proxy.com/api/v1/orders/5602/resident/lists/318/export", nil)
req.Header.Set("Authorization", "Bearer "+os.Getenv("T7PROXY_KEY"))
res, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
out, _ := io.ReadAll(res.Body)
fmt.Println(res.Status, string(out))
}
Response
res.t7proxy.com:10000:r7geo41:Hn3vX8qa
res.t7proxy.com:10001:r7geo41:Hn3vX8qa
res.t7proxy.com:10002:r7geo41:Hn3vX8qa
{
"error": {
"code": "not_found",
"message": "No order 5531 on this account. Call GET /api/v1/orders to see yours."
}
}
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;
}
}
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.
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.
Desktop app version#
/api/v1/desktop/version
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"
import requests
r = requests.get("https://t7proxy.com/api/v1/desktop/version", timeout=60)
print(r.json())
const res = await fetch("https://t7proxy.com/api/v1/desktop/version");
const { data, error } = await res.json();
console.log(error ?? data);
<?php
$res = json_decode(file_get_contents('https://t7proxy.com/api/v1/desktop/version'), true);
print_r($res['data'] ?? $res['error']);
package main
import (
"fmt"
"io"
"net/http"
)
func main() {
res, err := http.Get("https://t7proxy.com/api/v1/desktop/version")
if err != nil {
panic(err)
}
defer res.Body.Close()
out, _ := io.ReadAll(res.Body)
fmt.Println(res.Status, string(out))
}
Response
{
"data": {
"latest": "1.2.0",
"minimum": "1.0.0",
"download_url": "https://t7proxy.com/desktop",
"notes_url": "https://t7proxy.com/desktop#changes"
}
}
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(orIdempotency-Key), and answersalready_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.