# T7Proxy REST API v1

Updated: 2026-11-21. Base URL: `https://t7proxy.com/api/v1`. Docs: https://t7proxy.com/docs/api

# 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](https://t7proxy.com/dashboard/api) in your dashboard.

If you can't find what you need here, write to [support@t7proxy.com](mailto: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](https://t7proxy.com/uk/mcp).

### 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](#export-order).

### What you can do

| Area | Endpoints |
|---|---|
| Account | [Get account](#get-account), [Who is signed in](#get-me), [List transactions](#list-transactions) |
| Plans | [List plans](#list-plans), [Get a quote](#get-quote) |
| Orders | [Buy proxies](#buy-proxies), [List orders](#list-orders), [Get an order](#get-order), [Export a proxy list](#export-order), [Renew](#renew-order), [Auto-renew](#set-auto-renew) |
| Proxies | [List proxies to connect](#list-proxies), [Replace an IP](#replace-ip) |
| Residential | [Get a package](#get-resident-package), [Add traffic](#add-resident-traffic), [Rotation](#set-resident-rotation), [Locations](#list-resident-countries), [Access lists](#create-resident-list) |

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](https://t7proxy.com/dashboard/api) 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:

```bash
export T7PROXY_KEY="tp_live_..."
```

### 2. Make your first call

```bash
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](#list-plans) with a `type` and `country` to get a `product_id`.
2. [Get a quote](#get-quote) for the quantity you want. Check `total_usd` and `enough_balance`.
3. [Buy proxies](#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](#get-order) again in a few minutes.

> **Tip:** A full copy-paste script for this flow is in [Code recipes](#code-recipes).


## Authentication

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

```http
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.


## 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`:

```json
{
  "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:

```json
{
  "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](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.


## 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](#get-desktop-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.


## 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`.

```bash
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](#renew-order) and [residential top-ups](#add-resident-traffic) 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](#get-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 https://t7proxy.com/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`.

Any key (read only is enough).

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

Response `200`:

```json
{
    "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."
    }
}
```

Errors: `401 unauthenticated`, `403 forbidden`.


## Who is signed in

`GET https://t7proxy.com/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.

Any key (read only is enough).

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

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

Response `200`:

```json
{
    "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"
        }
    }
}
```

Errors: `401 unauthenticated`, `403 forbidden`.


## List transactions

`GET https://t7proxy.com/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`.

Any key (read only is enough).

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `limit` | query | integer | no | How many entries, 1 to 200. Default 50. |

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

Response `200`:

```json
{
    "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"
            }
        ]
    }
}
```

Errors: `422 invalid_request`.


# 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](#get-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`).


## List plans

`GET https://t7proxy.com/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.

Any key (read only is enough).

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `type` | query | string | no | One of `ipv4`, `isp`, `resident`, `mobile`, `ipv6`. |
| `country` | query | string | no | Two-letter code (`US`, `DE`) or part of the country name. |
| `period_days` | query | integer | no | Only plans of this length, e.g. `30`. |
| `limit` | query | integer | no | Max plans, 1 to 200. Default 100. `truncated` says if there were more. |

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

Response `200`:

```json
{
    "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
    }
}
```

Errors: `422 invalid_request`.


## Get a quote

`GET https://t7proxy.com/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](#buy-proxies). Out-of-range quantities are clamped to the plan's limits; the response says which quantity was priced.

Any key (read only is enough).

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `product_id` | query | integer | yes | From [List plans](#list-plans). |
| `quantity` | query | integer | no | 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. |
| `days` | query | integer | no | A rental period from the plan's `other_periods` (e.g. 7, 90, 365). Default: the plan's `period_days`. |

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

Response `200`:

```json
{
    "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"
    }
}
```

Errors: `404 not_found`, `400 request_failed`, `422 invalid_request`.


# 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](#renew-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.


## Buy proxies

`POST https://t7proxy.com/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](#idempotency). Most orders come back `active` with their proxies; some come back `processing` and are ready within minutes.

Needs a key with **Allow purchases**.

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `product_id` | body | integer | yes | From [List plans](#list-plans). |
| `quantity` | body | integer | no | 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. |
| `request_key` | body | string | no | Your own id for this purchase, up to 64 letters, digits, `-` and `_`. Strongly recommended. |
| `days` | body | integer | no | A rental period from the plan's `other_periods`. Default: the plan's `period_days`. |
| `auto_renew` | body | boolean | no | Renew from the wallet before the end. Default `false`. |
| `protocol` | body | string | no | IPv6 only: `HTTPS` (default) or `SOCKS5`. Other types serve both. |
| `allow_ip` | body | string | no | A public IPv4 address that may connect without a password. Not for Residential. |
| `intended_use` | body | string | no | The site or job the proxies are for, e.g. `Google` or `price monitoring`. Up to 60 characters. Not used for Mobile. |
| `expected_total_usd` | body | number | no | The `total_usd` of your [quote](#get-quote): the most this order may cost. If it would cost more, nothing is bought and the error is `price_changed`. |

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

```bash
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 `201`:

```json
{
    "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
    }
}
```

Errors: `403 read_only_key`, `402 insufficient_balance`, `409 price_changed`, `429 purchase_limit`, `400 request_failed`, `422 invalid_request`.


## List orders

`GET https://t7proxy.com/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.

Any key (read only is enough).

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `type` | query | string | no | Only this type: `ipv4`, `isp`, `resident`, `mobile` or `ipv6`. |
| `include_expired` | query | boolean | no | Also list orders that have ended. Default `false`. |
| `with_credentials` | query | boolean | no | Include the proxies with logins and passwords. Default `true`. |
| `limit` | query | integer | no | Max orders, 1 to 100. Default 50. |

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

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

Response `200`:

```json
{
    "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
    }
}
```

Errors: `422 invalid_request`.


## Get an order

`GET https://t7proxy.com/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](#replace-ip).

Any key (read only is enough).

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `order_id` | path | integer | yes | The order's `order_id`. |

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

Response `200`:

```json
{
    "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
                }
            ]
        }
    }
}
```

Errors: `404 not_found`.


## Export a proxy list

`GET https://t7proxy.com/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.

Any key (read only is enough).

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `order_id` | path | integer | yes | The order's `order_id`. |
| `format` | query | string | no | One of `host:port:login:password`, `login:password@host:port`, `url`. Default `host:port:login:password`. |
| `protocol` | query | string | no | `http` (default) or `socks5`: which port to use, and the scheme for `url`. |

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

Response `200`:

```text
185.23.41.7:50100:t7u8812:Kd93mXq2
185.23.41.8:50100:t7u8812:Kd93mXq2
185.23.41.9:50100:t7u8812:Kd93mXq2
```

Errors: `404 not_found`, `422 invalid_request`.


## Renew an order

`POST https://t7proxy.com/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.

Needs a key with **Allow purchases**.

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `order_id` | path | integer | yes | The order to renew. |
| `request_key` | body | string | no | Your own id for this renewal, up to 64 letters, digits, `-` and `_`. Strongly recommended; use a new one for each renewal. |

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

```bash
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 `200`:

```json
{
    "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
    }
}
```

Errors: `403 read_only_key`, `402 insufficient_balance`, `429 purchase_limit`, `409 in_progress`, `404 not_found`, `400 request_failed`, `422 invalid_request`.


## Set auto-renew

`PUT https://t7proxy.com/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.

Needs a key with **Allow purchases**.

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `order_id` | path | integer | yes | A live, non-residential order. |
| `on` | body | boolean | yes | `true` to turn on, `false` to turn off. |

```bash
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 `200`:

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

Errors: `403 read_only_key`, `400 request_failed`, `422 invalid_request`.


# Proxies

## List proxies to connect

`GET https://t7proxy.com/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.

Any key (read only is enough).

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

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

Response `200`:

```json
{
    "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"
    }
}
```

Errors: `401 unauthenticated`, `403 forbidden`.


## Replace an IP

`POST https://t7proxy.com/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](#get-order) within minutes to a few hours; login and password stay the same.

Needs a key with **Allow purchases**.

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `order_id` | path | integer | yes | The order. |
| `proxy_id` | path | integer | yes | The proxy's `proxy_id`. |
| `reason` | body | string | yes | One of `NOT_WORK`, `INCORRECT_LOCATION`, `LOW_SPEED`, `CANT_CHANGE_NETWORK`, `CUSTOM`. |
| `comment` | body | string | no | Optional detail, up to 200 characters. |

```bash
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 `200`:

```json
{
    "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."
    }
}
```

Errors: `403 read_only_key`, `404 not_found`, `400 request_failed`, `422 invalid_request`.


## 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` |

```bash
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
```

```python
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](#export-order) 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](#buy-proxies) (`type` `resident`), then manage it here: the order's `order_id` is the package.

- **Main login.** [Get a package](#get-resident-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](#list-resident-countries)), 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](#list-proxies) but can't be changed.


## Get a residential package

`GET https://t7proxy.com/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](#add-resident-traffic) takes, priced for your account.

Any key (read only is enough).

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `order_id` | path | integer | yes | The residential order's `order_id`. |

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

Response `200`:

```json
{
    "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
        }
    }
}
```

Errors: `404 package_not_active`.


## Add residential traffic

`POST https://t7proxy.com/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.

Needs a key with **Allow purchases**.

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `order_id` | path | integer | yes | The residential order. |
| `product_id` | body | integer | yes | From `add_traffic_options` in [Get a residential package](#get-resident-package). |
| `request_key` | body | string | yes | Your own id for this top-up, up to 64 letters, digits, `-` and `_`. |

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

```bash
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 `200`:

```json
{
    "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
        }
    }
}
```

Errors: `403 read_only_key`, `404 package_not_active`, `409 product_unavailable`, `409 package_ending`, `409 out_of_stock`, `402 insufficient_balance`, `429 purchase_limit`, `409 in_progress`, `503 try_again_later`, `422 invalid_request`.


## Set the package rotation

`PUT https://t7proxy.com/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.

Any key (read only is enough).

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `order_id` | path | integer | yes | The residential order. |
| `rotation` | body | integer | yes | Seconds: `0` every request, `-1` sticky, or `60`, `300`, `600`, `900`, `1800`, `3600`. |

```bash
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 `200`:

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

Errors: `404 package_not_active`, `503 try_again_later`, `422 invalid_request`.


## List residential countries

`GET https://t7proxy.com/api/v1/resident/geo`

Countries an access list can target, sorted by name. Pass a `code` as `country` when you [create an access list](#create-resident-list), or to [Get a country](#get-resident-country) for its regions, cities and ISPs.

Any key (read only is enough).

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

Response `200`:

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

Errors: `401 unauthenticated`.


## Get a residential country

`GET https://t7proxy.com/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.

Any key (read only is enough).

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `country` | path | string | yes | Two-letter country code from [List residential countries](#list-resident-countries). |

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

Response `200`:

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

Errors: `404 not_found`.


## Create an access list

`POST https://t7proxy.com/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.

Any key (read only is enough).

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `order_id` | path | integer | yes | The residential order. |
| `title` | body | string | no | Your name for the list, up to 40 characters. Default "List N". |
| `country` | body | string | no | Two-letter code from [List residential countries](#list-resident-countries). |
| `region` | body | string | no | A region `name` from [Get a residential country](#get-resident-country). Needs `country`. |
| `city` | body | string | no | A city `name` in that region. Needs `region`. |
| `isp` | body | string | no | An ISP in that city. Needs `city`. |
| `rotation` | body | integer | yes | Seconds: `0` every request, `-1` sticky, or `60`, `300`, `600`, `900`, `1800`, `3600`. |
| `ports` | body | integer | yes | How many ports (exit IPs), 1 to 1000. |

```bash
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 `201`:

```json
{
    "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"
        }
    }
}
```

Errors: `404 package_not_active`, `422 invalid_location`, `409 list_limit`, `503 try_again_later`, `422 invalid_request`.


## Set an access list's rotation

`PUT https://t7proxy.com/api/v1/orders/{order_id}/resident/lists/{list_id}/rotation`

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

Any key (read only is enough).

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `order_id` | path | integer | yes | The residential order. |
| `list_id` | path | integer | yes | The list's `id`. |
| `rotation` | body | integer | yes | Seconds: `0` every request, `-1` sticky, or `60`, `300`, `600`, `900`, `1800`, `3600`. |

```bash
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 `200`:

```json
{
    "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"
        }
    }
}
```

Errors: `404 package_not_active`, `404 not_found`, `503 try_again_later`, `422 invalid_request`.


## Delete an access list

`DELETE https://t7proxy.com/api/v1/orders/{order_id}/resident/lists/{list_id}`

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

Any key (read only is enough).

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `order_id` | path | integer | yes | The residential order. |
| `list_id` | path | integer | yes | The list's `id`. |

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

Response `200`:

```json
{
    "data": {
        "deleted": true,
        "list_id": 318
    }
}
```

Errors: `404 package_not_active`, `404 not_found`, `503 try_again_later`.


## Export an access list

`GET https://t7proxy.com/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.

Any key (read only is enough).

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `order_id` | path | integer | yes | The residential order. |
| `list_id` | path | integer | yes | The list's `id`. |

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

Response `200`:

```text
res.t7proxy.com:10000:r7geo41:Hn3vX8qa
res.t7proxy.com:10001:r7geo41:Hn3vX8qa
res.t7proxy.com:10002:r7geo41:Hn3vX8qa
```

Errors: `404 not_found`.


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

```python
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)

```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
<?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:

```bash
# 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/uk/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](https://t7proxy.com/uk/mcp) or manage connections on [API & MCP](https://t7proxy.com/dashboard/api).


## Desktop app version

`GET https://t7proxy.com/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.

No key needed.

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

Response `200`:

```json
{
    "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](#get-me) and [List proxies to connect](#list-proxies): the account and every live proxy in one list, ready to connect.
- Residential packages: [get a package](#get-resident-package), [add traffic](#add-resident-traffic), [rotation](#set-resident-rotation), [locations](#list-resident-countries) and [access lists](#create-resident-list).
- [Desktop app version](#get-desktop-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](#renew-order) takes a `request_key` (or `Idempotency-Key`), and answers `already_renewed`.
- [Buy proxies](#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.
