Skip to content

Reseller API

Order dedicated ISP proxies for your customers, hand them over, renew them and reconcile your balance, all from your own store or billing system. Everything the reseller dashboard does for ISP orders goes through these same endpoints.

Base URL
https://proxylabs.app/api/reseller/v1
Authentication
Authorization: Bearer <key>
Format
JSON over HTTPS. Money is in pence (GBP). Times are UTC, ISO 8601.
Orders
Run for 30 days and are paid from your reseller balance.
Rate limit
60 requests a minute per account.
OpenAPI
openapi.json, version 1.1.0

Pricing

What you pay us per IP for 30 days. It depends only on how many IPs you hold. Amounts in the API are the same prices in pence.

IPs you holdPrice per IP for 30 daysIn the API
1 to 99 IPs£0.8484
100 to 249 IPs£0.8282
250 to 499 IPs£0.8181
500 to 999 IPs£0.7979
1,000 to 1,999 IPs£0.7878
2,000 or more IPs£0.7676
  • One price list for every location, in pounds, per IP for 30 days. Bandwidth is unmetered and there is no minimum order.
  • Your bracket is the number of IPs on your running plans plus the order you are placing, so an order that takes you into a bracket is already charged that bracket's price.
  • A renewal is charged the price of the bracket you are in on the day you renew.
  • Volume is the only thing that changes the price. There are no discount codes for reseller orders.
  • Some accounts have a negotiated fixed price instead of the volume ladder. GET /account shows it as flat_price (with the locations it covers, or all), and GET /quote and GET /locations always give the price you will actually pay.
  • GET /quote gives the exact price of an order before you place it, and GET /locations gives the price of one more IP. If our own cost for a location rises, those two show the price you will actually pay, which can be above this list.

Mobile data is £1.50 per GB for resellers. It is bought in the dashboard, not through this API.

Quick start

You need an approved reseller account with balance on it, and an API key from the API view of your reseller dashboard. A key is shown once, so store it as a secret on your server. Never put it in a browser or an app. Open the API view of your dashboard.

  1. Check your balance.
    curl https://proxylabs.app/api/reseller/v1/account \
      -H "Authorization: Bearer $PROXYLABS_KEY"
  2. See what you can order and what it costs you.
    curl https://proxylabs.app/api/reseller/v1/locations \
      -H "Authorization: Bearer $PROXYLABS_KEY"
  3. Place the order. The answer contains the proxies.
    curl -X POST https://proxylabs.app/api/reseller/v1/orders \
      -H "Authorization: Bearer $PROXYLABS_KEY" \
      -H "Idempotency-Key: order-1042" \
      -H "Content-Type: application/json" \
      -d '{"location":"uk","quantity":2,"username":"yourbrand_jake","name":"Jake, order 1042","expected_total_pence":168}'
    {
      "order_id": "6b0356a950716f33707ccba0",
      "replayed": false,
      "plan": {
        "id": "6b0356a950716f33707ccbab",
        "name": "Jake, order 1042",
        "location": "uk",
        "country": "United Kingdom",
        "country_code": "GB",
        "quantity": 2,
        "price_per_ip_pence": 84,
        "total_pence": 168,
        "currency": "GBP",
        "status": "active",
        "term_days": 30,
        "created_at": "2026-11-22T20:55:05.577Z",
        "expires_at": "2026-12-22T20:55:05.465Z",
        "renewable": true,
        "username": "yourbrand_jake",
        "swaps_left": 1,
        "proxies": [
          "203.0.113.24:11000:yourbrand_jake:8fK2pLm9Xq",
          "203.0.113.25:11001:yourbrand_jake:8fK2pLm9Xq"
        ]
      }
    }
  4. Give your customer the proxies lines. Each is ip:port:username:password and works about ten seconds after the order.

The order workflow

How a store or billing system normally uses the API, from a customer paying you to the plan ending.

  1. Price it. GET /quote gives the exact total. Show it to your customer, or check it against what they paid you.
  2. Your customer pays you. Call POST /orders with the location, the quantity, expected_total_pence set to the quoted total, and an Idempotency-Key set to your own order number. Send a username if you want your brand in the proxy line. If the price moved in between, nothing is charged and you get price_changed.
  3. 201: deliver. Store plan.id and plan.expires_at against your customer and send them plan.proxies.
  4. 402 insufficient_balance: top up. Nothing was charged. Add balance in your dashboard and send the same request again, with the same key. Reading GET /account on a schedule lets you top up before this happens.
  5. No answer, or a 5xx: send it again with the same key. You get the first order back, never a second one.
  6. Your customer renews. Read renewal_quote on GET /plans/{plan_id}, then call POST /plans/{plan_id}/renew with expected_total_pence set to its total and an Idempotency-Key. The IPs and the login stay the same, and 30 days are added to the current end date.
  7. Your customer leaves. Do nothing. Nothing renews by itself: the plan ends on its expires_at. It can still be renewed for three days after that.
  8. An IP is blocked, or a password leaked. POST /plans/{plan_id}/swap replaces the IPs and POST /plans/{plan_id}/password changes the password. Send your customer the new lines.
  9. Month end. GET /transactions lists every charge, refund and top-up, to match against your own records.

To keep plans running without your customers asking, list GET /plans?status=active once a day and renew the ones that end soon and are still paid for on your side.

Authentication

Send your key in the Authorization header of every request. Keys start with plr_.

Authorization: Bearer plr_3f9c…
  • Make up to five keys in your dashboard, one for each system, so one can be switched off without touching the others.
  • A key is shown once when you make it. We store only a fingerprint of it and cannot show it again.
  • Revoking a key in the dashboard stops it at once. If reseller access ends, every key stops.
  • A key can order and manage plans. It cannot add balance or make other keys: those are done in the dashboard.

Idempotency and retries

Orders and renewals take money from your balance, so they must never happen twice by accident. Send an Idempotency-Key header with each one: any text of your own, up to 120 characters, that names this one purchase. Your own order number is the natural choice.

  • The same key sent again returns the first result, with replayed: true, and charges nothing.
  • The same key with a different location, quantity or plan answers idempotency_key_reused. Use a new key for a new purchase.
  • A request that failed without charging you does not use up its key: fix the cause and send it again with the same key.
  • Keys do not expire, and each belongs to your account only.

What to do when a request does not end with a clear answer:

You gotWhat happenedWhat to do
A timeout or a dropped connectionUnknownSend the same request with the same key.
503 unavailableNothing was chargedSend the same request with the same key after a few seconds.
500 server_errorUnknown, and our team has been alertedSend the same request with the same key. If it keeps answering in_progress, write to us with the request id.
409 in_progressThe first request is still runningAsk again in a few seconds with the same key.
202 pending_reviewWe could not confirm the outcome; your balance is held and our team has been alertedStop. Do not send it again. We deliver it or return the balance.
402 insufficient_balance, or another error that charged nothingNothing was chargedFix the cause and send the request again. The same key is fine: a failed request does not use it up.

Reading requests (GET) can always be repeated. Replacing IPs and changing a password are free, so repeating them costs nothing, but each replacement uses one of the plan's swaps_left.

Errors

An error has an HTTP status and a body with a stable code, a message written to be shown to a person, and the request_id. Branch on the code, not on the message.

{
  "error": {
    "code": "insufficient_balance",
    "message": "Your balance does not cover this order (£1.68). Add balance and try again.",
    "request_id": "req_5f3c9a1e7b2d4c60"
  }
}

A request that fails does not cost you anything: where balance was taken and the order then could not be delivered, it is returned before the answer is sent. The two answers that do not settle it on the spot, pending_review and server_error, both alert our team. Idempotency and retries says what to do.

CodeHTTPWhat it meansWhat to do
unauthorized401No API key was sent.Send Authorization: Bearer <key>.
invalid_key401The key is wrong or was revoked.Make a new key in your dashboard.
not_a_reseller403The account is not an approved reseller.Apply, or contact us if access was removed.
dashboard_only403Adding balance and managing keys are done in the dashboard, not with a key.Use the reseller dashboard.
rate_limited429More than 60 requests in a minute.Wait the number of seconds in Retry-After.
invalid_json400The body is not a JSON object.Fix the request.
too_large413The body is larger than 8,000 characters.Fix the request.
invalid_request400A required field is missing.Fix the request.
invalid_quantity400The quantity is not a whole number from 1 to 2,000.Fix the request.
invalid_username400The proxy username breaks the rules.Use 3 to 24 lowercase letters, digits and underscores, starting with a letter.
invalid_name400The label is empty or longer than 50 characters.Shorten it.
invalid_idempotency_key400The key is longer than 120 characters.Use a shorter key.
price_changed409The price differs from the expected_total_pence you sent. Nothing was charged. The message gives the new price.Quote again, and send the new total if you accept it.
insufficient_balance402Your balance does not cover the total. Nothing was charged.Add balance in your dashboard, then send the same request again. The same Idempotency-Key is fine.
not_found404No such order, plan or endpoint on your account.Check the id and the path.
unknown_location404The location is not on sale.Use an id from GET /locations.
method_not_allowed405The path exists but not with that method.Check the method.
out_of_stock409The location cannot fill that quantity now.Order fewer, or another location. max_quantity says how many fit.
username_taken409The proxy username belongs to another plan.Choose another, or omit it.
idempotency_key_reused409The key was already used for a different request.Use a new key for a new order or renewal.
in_progress409The same request is still running.Ask again in a few seconds with the same key.
order_failed409Rare: two retries of a failed request arrived together. Nothing was charged.Send it again.
not_placed409The order could not be delivered. Nothing was charged. Can also arrive with HTTP 500 or 503.Try again in a moment.
not_renewable409The plan ended more than three days ago.Place a new order.
ips_released409The plan had ended and its IPs are no longer free. Nothing was charged.Place a new order.
not_renewed409The renewal could not be made. Nothing was charged.Try again in a moment.
expired409The plan has ended.Renew it first.
swap_limit409The plan has used its IP replacements for this term.They reset when the plan is renewed.
not_swapped502The IPs could not be replaced. Nothing changed.Try again in a moment.
not_changed502The password could not be changed. Nothing changed.Try again in a moment.
pending_review202We could not confirm the outcome and are checking it by hand. Your balance is held for it.Do not send it again. We will deliver it or return the balance.
unavailable503Ordering is paused or temporarily unavailable. Nothing was charged. A location that cannot be renewed answers with HTTP 409.Try again shortly.
server_error500Something went wrong on our side, and our team has been alerted.If it was an order or a renewal, send it again with the same Idempotency-Key. If that keeps answering in_progress, write to us with the request_id.

Lists and paging

Lists are newest first and return 25 items unless you ask for another limit, up to 100. Each answer has has_more and next_after. While has_more is true, ask again with after set to next_after.

curl "https://proxylabs.app/api/reseller/v1/plans?status=active&limit=100&after=6b0356a950716f33707ccbab" \
  -H "Authorization: Bearer $PROXYLABS_KEY"

Rate limits and request ids

Each account can make 60 requests a minute across all its keys. Every answer says where you stand:

HeaderWhat it is
X-RateLimit-LimitRequests allowed per minute.
X-RateLimit-RemainingRequests left in the current minute.
X-RateLimit-ResetSeconds until the count starts again.
Retry-AfterOn a 429 only: seconds to wait.
X-Request-IdThe id of this request. It is also in the body of an error.

If something looks wrong, send the X-Request-Id to [email protected] and we can find exactly that request.

Plans and orders

An order is a purchase: a new set of IPs, or a renewal. A delivered order creates or extends a plan, which is one customer's proxies: one username and password for all its IPs.

A plan

FieldWhat it is
idThe plan's id.
nameYour label for it.
locationThe location id it was ordered in.
country, country_codeThe country, and the carrier in brackets where the location has one.
quantityHow many IPs.
price_per_ip_pence, total_penceWhat the current term cost, per IP and in total.
statusactive while it runs, expired after expires_at.
created_at, expires_atWhen it was ordered and when the current term ends (UTC).
renewableWhether it can be renewed now.
usernameThe proxy username.
swaps_leftIP replacements left this term, or null if not known.
proxiesOne ip:port:username:password line per IP. Left out of lists.

An order

FieldWhat it is
idThe order's id.
kindcreate for a new order, renew for a renewal.
statuspending, delivered, failed or review (see order states).
location, quantityWhat was ordered.
price_per_ip_pence, total_penceThe price it was placed at.
chargedWhether its total is currently taken from your balance.
plan_idThe plan it created or renewed, once delivered.
name, usernameThe label and proxy username sent with a new order.
idempotency_keyThe key it was placed with, if any.
created_atWhen it was placed (UTC).

Order states

StatusWhat it means
pendingBeing placed. This lasts a few seconds.
deliveredDone: the plan exists and the total was taken from your balance.
failedNot delivered. Nothing is taken from your balance.
reviewWe could not confirm the outcome and are checking it by hand. Your balance is held for it. Do not place it again.

What the API does not do

  • Adding balance is done by card or crypto in your dashboard, from £10 to £5,000 at a time. Balance cannot be withdrawn.
  • Making and revoking keys is done in your dashboard.
  • Mobile data is bought in your dashboard at the reseller price. It is not in the API yet.
  • Periods other than 30 days are not offered yet.
  • Renewing by itself. A plan ends unless you renew it. There are no webhooks: read expires_at.

New fields and endpoints can be added to version 1 at any time, so ignore fields you do not know. A change that would break an existing integration gets a new version in the path.

Account

Your balance, your price bracket and every movement of your balance.

Your account

GET/account

Your balance, how many IPs you hold, the price bracket that puts you in, and how far the next one is. Check balance_pence before a large order.

Request

curl https://proxylabs.app/api/reseller/v1/account \
  -H "Authorization: Bearer $PROXYLABS_KEY"

Answer, 200

{
  "email": "[email protected]",
  "currency": "GBP",
  "balance_pence": 25000,
  "held_ips": 40,
  "term_days": 30,
  "bracket": {
    "from": 1,
    "to": 99,
    "label": "1 to 99 IPs"
  },
  "next_bracket": {
    "from": 100,
    "ips_to_go": 60,
    "price_per_ip_pence": 82
  },
  "flat_price": null
}

Balance history

GET/transactions

Every movement of your balance, newest first: what each order and renewal took, what was returned, and each top-up. Use it to reconcile your own books.

Parameters

NameWhereTypeWhat it is
typeQuerystringOptionalOnly movements of this type. One of charge, refund, top_up, credit, reversal.
limitQueryintegerOptionalHow many to return, 1 to 100. 25 if omitted.
afterQuerystringOptionalThe next_after value of the previous page, to get the next one.

Request

curl https://proxylabs.app/api/reseller/v1/transactions \
  -H "Authorization: Bearer $PROXYLABS_KEY"

Answer, 200

{
  "transactions": [
    {
      "id": "6b0356a950716f33707ccba4",
      "type": "charge",
      "amount_pence": 168,
      "balance_after_pence": 24832,
      "description": "Reseller order 6b0356a950716f33707ccba0: 2 × United Kingdom",
      "created_at": "2026-11-22T20:55:05.240Z"
    },
    {
      "id": "6b03559050716f33707ccb11",
      "type": "top_up",
      "amount_pence": 25000,
      "balance_after_pence": 25000,
      "description": "Balance top-up",
      "created_at": "2026-11-22T20:40:12.000Z"
    }
  ],
  "has_more": false,
  "next_after": null
}

Catalogue

What you can order, what it costs you right now, and whether a proxy username is free.

Locations

GET/locations

Every location you can order, whether it is in stock, the most one order can take, and what one more IP costs you right now. A location's id is what you send as location when ordering.

Request

curl https://proxylabs.app/api/reseller/v1/locations \
  -H "Authorization: Bearer $PROXYLABS_KEY"

Answer, 200

{
  "term_days": 30,
  "currency": "GBP",
  "held_ips": 40,
  "locations": [
    {
      "id": "uk",
      "country": "United Kingdom",
      "country_code": "GB",
      "network": null,
      "name": "United Kingdom",
      "in_stock": true,
      "max_quantity": 450,
      "price_per_ip_pence": 84
    },
    {
      "id": "us-cox",
      "country": "United States",
      "country_code": "US",
      "network": "Cox",
      "name": "United States (Cox)",
      "in_stock": true,
      "max_quantity": 2000,
      "price_per_ip_pence": 84
    }
  ]
}

Price an order

GET/quote

Exactly what an order would cost, without placing it. The order's own IPs count towards your bracket, so a large order can be priced in a cheaper bracket than the one you are in.

Parameters

NameWhereTypeWhat it is
locationQuerystringRequiredA location id from GET /locations.
quantityQueryintegerRequiredHow many IPs, from 1 to the location's max_quantity.

Request

curl https://proxylabs.app/api/reseller/v1/quote?location=uk&quantity=60 \
  -H "Authorization: Bearer $PROXYLABS_KEY"

Answer, 200

{
  "location": "uk",
  "quantity": 60,
  "term_days": 30,
  "currency": "GBP",
  "price_per_ip_pence": 82,
  "total_pence": 4920,
  "held_ips_after": 100,
  "bracket": "100 to 249 IPs",
  "flat_price": false
}

Errors

CodeHTTPWhat it means
invalid_quantity400The quantity is not a whole number from 1 to 2,000.
unknown_location404The location is not on sale.
out_of_stock409The location cannot fill that quantity now.

Check a proxy username

GET/usernames/{username}

Whether a proxy username can be used for a new order. Usernames are 3 to 24 lowercase letters, digits and underscores, starting with a letter, and each belongs to one plan.

Parameters

NameWhereTypeWhat it is
usernamePathstringRequiredThe username to check.

Request

curl https://proxylabs.app/api/reseller/v1/usernames/yourbrand_jake \
  -H "Authorization: Bearer $PROXYLABS_KEY"

Answer, 200

{
  "username": "yourbrand_jake",
  "available": true
}
  • A username that cannot be used answers 200 with available: false and a reason.

Orders

Place an order and look orders up. An order that is delivered creates a plan.

Place an order

POST/ordersPaid from your balance

Buys IPs for one customer for 30 days. The total is taken from your balance and the proxies are in the answer. If the order cannot be delivered, the balance is returned before the answer is sent.

Parameters

NameWhereTypeWhat it is
Idempotency-KeyHeaderstringOptionalYour own reference for this request, up to 120 characters. Sending the same key again returns the first result and never charges twice. Send one with every order and renewal.
locationBodystringRequiredA location id from GET /locations.
quantityBodyintegerRequiredHow many IPs.
usernameBodystringOptionalThe proxy username your customer will see. Omit it for a random neutral one (isp and ten letters).
nameBodystringOptionalYour own label for the plan, up to 50 characters. Only you see it.
expected_total_penceBodyintegerOptionalThe total you showed your customer or expect to pay, in pence: total_pence from GET /quote. If the price has changed since (your bracket moved, or our cost for the location rose), nothing is charged and the answer is price_changed. Recommended.

Request

curl -X POST https://proxylabs.app/api/reseller/v1/orders \
  -H "Authorization: Bearer $PROXYLABS_KEY" \
  -H "Idempotency-Key: order-1042" \
  -H "Content-Type: application/json" \
  -d '{"location":"uk","quantity":2,"username":"yourbrand_jake","name":"Jake, order 1042","expected_total_pence":168}'

Answer, 201

{
  "order_id": "6b0356a950716f33707ccba0",
  "replayed": false,
  "plan": {
    "id": "6b0356a950716f33707ccbab",
    "name": "Jake, order 1042",
    "location": "uk",
    "country": "United Kingdom",
    "country_code": "GB",
    "quantity": 2,
    "price_per_ip_pence": 84,
    "total_pence": 168,
    "currency": "GBP",
    "status": "active",
    "term_days": 30,
    "created_at": "2026-11-22T20:55:05.577Z",
    "expires_at": "2026-12-22T20:55:05.465Z",
    "renewable": true,
    "username": "yourbrand_jake",
    "swaps_left": 1,
    "proxies": [
      "203.0.113.24:11000:yourbrand_jake:8fK2pLm9Xq",
      "203.0.113.25:11001:yourbrand_jake:8fK2pLm9Xq"
    ]
  }
}
  • 201 is a new order. 200 with replayed: true is the same order returned again for a repeated Idempotency-Key.
  • New proxies need about ten seconds before their first use.

Errors

CodeHTTPWhat it means
invalid_request400A required field is missing.
invalid_quantity400The quantity is not a whole number from 1 to 2,000.
unknown_location404The location is not on sale.
out_of_stock409The location cannot fill that quantity now.
invalid_username400The proxy username breaks the rules.
username_taken409The proxy username belongs to another plan.
invalid_name400The label is empty or longer than 50 characters.
insufficient_balance402Your balance does not cover the total. Nothing was charged.
price_changed409The price differs from the expected_total_pence you sent. Nothing was charged. The message gives the new price.
invalid_idempotency_key400The key is longer than 120 characters.
idempotency_key_reused409The key was already used for a different request.
in_progress409The same request is still running.
order_failed409Rare: two retries of a failed request arrived together. Nothing was charged.
pending_review202We could not confirm the outcome and are checking it by hand. Your balance is held for it.
not_placed409The order could not be delivered. Nothing was charged. Can also arrive with HTTP 500 or 503.
unavailable503Ordering is paused or temporarily unavailable. Nothing was charged. A location that cannot be renewed answers with HTTP 409.

List orders

GET/orders

Your orders and renewals, newest first.

Parameters

NameWhereTypeWhat it is
statusQuerystringOptionalOnly orders in this state. One of pending, delivered, failed, review.
kindQuerystringOptionalcreate for new orders, renew for renewals. One of create, renew.
limitQueryintegerOptionalHow many to return, 1 to 100. 25 if omitted.
afterQuerystringOptionalThe next_after value of the previous page, to get the next one.

Request

curl https://proxylabs.app/api/reseller/v1/orders \
  -H "Authorization: Bearer $PROXYLABS_KEY"

Answer, 200

{
  "orders": [
    {
      "id": "6b0356a950716f33707ccba0",
      "kind": "create",
      "status": "delivered",
      "location": "uk",
      "quantity": 2,
      "price_per_ip_pence": 84,
      "total_pence": 168,
      "currency": "GBP",
      "charged": true,
      "plan_id": "6b0356a950716f33707ccbab",
      "name": "Jake, order 1042",
      "username": "yourbrand_jake",
      "idempotency_key": "order-1042",
      "created_at": "2026-11-22T20:55:05.101Z"
    }
  ],
  "has_more": false,
  "next_after": null
}

Get an order

GET/orders/{order_id}

One order or renewal. charged is true while its total is taken from your balance, and false if it was never taken or has been returned.

Parameters

NameWhereTypeWhat it is
order_idPathstringRequiredThe order's id.

Request

curl https://proxylabs.app/api/reseller/v1/orders/6b0356a950716f33707ccba0 \
  -H "Authorization: Bearer $PROXYLABS_KEY"

Answer, 200

{
  "id": "6b0356a950716f33707ccba0",
  "kind": "create",
  "status": "delivered",
  "location": "uk",
  "quantity": 2,
  "price_per_ip_pence": 84,
  "total_pence": 168,
  "currency": "GBP",
  "charged": true,
  "plan_id": "6b0356a950716f33707ccbab",
  "name": "Jake, order 1042",
  "username": "yourbrand_jake",
  "idempotency_key": "order-1042",
  "created_at": "2026-11-22T20:55:05.101Z"
}

Plans

A plan is one customer's proxies: one login for all its IPs, running for 30 days at a time.

List plans

GET/plans

Your plans, newest first, without their proxies. Filter by username to find one customer's plan.

Parameters

NameWhereTypeWhat it is
statusQuerystringOptionalOnly plans that are running, or only plans that have ended. One of active, expired.
usernameQuerystringOptionalOnly the plan with exactly this proxy username.
limitQueryintegerOptionalHow many to return, 1 to 100. 25 if omitted.
afterQuerystringOptionalThe next_after value of the previous page, to get the next one.

Request

curl https://proxylabs.app/api/reseller/v1/plans \
  -H "Authorization: Bearer $PROXYLABS_KEY"

Answer, 200

{
  "plans": [
    {
      "id": "6b0356a950716f33707ccbab",
      "name": "Jake, order 1042",
      "location": "uk",
      "country": "United Kingdom",
      "country_code": "GB",
      "quantity": 2,
      "price_per_ip_pence": 84,
      "total_pence": 168,
      "currency": "GBP",
      "status": "active",
      "term_days": 30,
      "created_at": "2026-11-22T20:55:05.577Z",
      "expires_at": "2026-12-22T20:55:05.465Z",
      "renewable": true,
      "username": "yourbrand_jake",
      "swaps_left": 1
    }
  ],
  "has_more": false,
  "next_after": null
}

Get a plan

GET/plans/{plan_id}

One plan with its proxies and what renewing it would cost right now.

Parameters

NameWhereTypeWhat it is
plan_idPathstringRequiredThe plan's id.

Request

curl https://proxylabs.app/api/reseller/v1/plans/6b0356a950716f33707ccbab \
  -H "Authorization: Bearer $PROXYLABS_KEY"

Answer, 200

{
  "id": "6b0356a950716f33707ccbab",
  "name": "Jake, order 1042",
  "location": "uk",
  "country": "United Kingdom",
  "country_code": "GB",
  "quantity": 2,
  "price_per_ip_pence": 84,
  "total_pence": 168,
  "currency": "GBP",
  "status": "active",
  "term_days": 30,
  "created_at": "2026-11-22T20:55:05.577Z",
  "expires_at": "2026-12-22T20:55:05.465Z",
  "renewable": true,
  "username": "yourbrand_jake",
  "swaps_left": 1,
  "proxies": [
    "203.0.113.24:11000:yourbrand_jake:8fK2pLm9Xq",
    "203.0.113.25:11001:yourbrand_jake:8fK2pLm9Xq"
  ],
  "renewal_quote": {
    "price_per_ip_pence": 84,
    "total_pence": 168
  }
}
  • renewal_quote is null when the plan can no longer be renewed.

Get a plan's proxies

GET/plans/{plan_id}/proxies

Only the proxy list, ready to hand to your customer: as JSON, or as plain text with one proxy per line.

Parameters

NameWhereTypeWhat it is
plan_idPathstringRequiredThe plan's id.
formatQuerystringOptionaljson (default) or txt for plain text, one proxy per line. One of json, txt.
styleQuerystringOptionalcolon (default) is ip:port:username:password. url is username:password@ip:port. One of colon, url.

Request

curl https://proxylabs.app/api/reseller/v1/plans/6b0356a950716f33707ccbab/proxies \
  -H "Authorization: Bearer $PROXYLABS_KEY"

Answer, 200

{
  "plan_id": "6b0356a950716f33707ccbab",
  "username": "yourbrand_jake",
  "count": 2,
  "style": "colon",
  "proxies": [
    "203.0.113.24:11000:yourbrand_jake:8fK2pLm9Xq",
    "203.0.113.25:11001:yourbrand_jake:8fK2pLm9Xq"
  ]
}

Rename a plan

PATCH/plans/{plan_id}

Changes your own label for the plan. Nothing your customer uses changes.

Parameters

NameWhereTypeWhat it is
plan_idPathstringRequiredThe plan's id.
nameBodystringRequiredThe new label, 1 to 50 characters.

Request

curl -X PATCH https://proxylabs.app/api/reseller/v1/plans/6b0356a950716f33707ccbab \
  -H "Authorization: Bearer $PROXYLABS_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"Jake, order 1042 (renewed)"}'

Answer, 200

{
  "id": "6b0356a950716f33707ccbab",
  "name": "Jake, order 1042 (renewed)",
  "location": "uk",
  "country": "United Kingdom",
  "country_code": "GB",
  "quantity": 2,
  "price_per_ip_pence": 84,
  "total_pence": 168,
  "currency": "GBP",
  "status": "active",
  "term_days": 30,
  "created_at": "2026-11-22T20:55:05.577Z",
  "expires_at": "2026-12-22T20:55:05.465Z",
  "renewable": true,
  "username": "yourbrand_jake",
  "swaps_left": 1,
  "proxies": [
    "203.0.113.24:11000:yourbrand_jake:8fK2pLm9Xq",
    "203.0.113.25:11001:yourbrand_jake:8fK2pLm9Xq"
  ]
}

Errors

CodeHTTPWhat it means
invalid_name400The label is empty or longer than 50 characters.

Renew a plan

POST/plans/{plan_id}/renewPaid from your balance

Adds 30 days to the plan, paid from your balance at today's price for your bracket. The 30 days are added to the current end date, so renewing early loses nothing. The IPs and the login stay the same. A plan can be renewed until three days after it ends.

Parameters

NameWhereTypeWhat it is
plan_idPathstringRequiredThe plan's id.
Idempotency-KeyHeaderstringOptionalYour own reference for this request, up to 120 characters. Sending the same key again returns the first result and never charges twice. Send one with every order and renewal.
expected_total_penceBodyintegerOptionalThe renewal total you expect, in pence: renewal_quote.total_pence from GET /plans/{plan_id}. If today's price differs, nothing is charged and the answer is price_changed. Recommended.

Request

curl -X POST https://proxylabs.app/api/reseller/v1/plans/6b0356a950716f33707ccbab/renew \
  -H "Authorization: Bearer $PROXYLABS_KEY" \
  -H "Idempotency-Key: order-1042" \
  -H "Content-Type: application/json" \
  -d '{"expected_total_pence":168}'

Answer, 200

{
  "id": "6b0356a950716f33707ccbab",
  "name": "Jake, order 1042",
  "location": "uk",
  "country": "United Kingdom",
  "country_code": "GB",
  "quantity": 2,
  "price_per_ip_pence": 84,
  "total_pence": 168,
  "currency": "GBP",
  "status": "active",
  "term_days": 30,
  "created_at": "2026-11-22T20:55:05.577Z",
  "expires_at": "2027-01-21T20:55:05.465Z",
  "renewable": true,
  "username": "yourbrand_jake",
  "swaps_left": 1,
  "proxies": [
    "203.0.113.24:11000:yourbrand_jake:8fK2pLm9Xq",
    "203.0.113.25:11001:yourbrand_jake:8fK2pLm9Xq"
  ],
  "order_id": "6b0412aa50716f33707cd001",
  "replayed": false
}
  • Nothing renews by itself. A plan you do not renew ends on its expires_at.

Errors

CodeHTTPWhat it means
insufficient_balance402Your balance does not cover the total. Nothing was charged.
price_changed409The price differs from the expected_total_pence you sent. Nothing was charged. The message gives the new price.
not_renewable409The plan ended more than three days ago.
ips_released409The plan had ended and its IPs are no longer free. Nothing was charged.
not_renewed409The renewal could not be made. Nothing was charged.
in_progress409The same request is still running.
pending_review202We could not confirm the outcome and are checking it by hand. Your balance is held for it.
order_failed409Rare: two retries of a failed request arrived together. Nothing was charged.
invalid_idempotency_key400The key is longer than 120 characters.
idempotency_key_reused409The key was already used for a different request.
unavailable503Ordering is paused or temporarily unavailable. Nothing was charged. A location that cannot be renewed answers with HTTP 409.

Replace a plan's IPs

POST/plans/{plan_id}/swap

Replaces every IP on the plan with a new one from the same location. The login stays the same. Free, and limited per term: swaps_left says how many are left, and renewing resets it.

Parameters

NameWhereTypeWhat it is
plan_idPathstringRequiredThe plan's id.

Request

curl -X POST https://proxylabs.app/api/reseller/v1/plans/6b0356a950716f33707ccbab/swap \
  -H "Authorization: Bearer $PROXYLABS_KEY"

Answer, 200

{
  "id": "6b0356a950716f33707ccbab",
  "name": "Jake, order 1042",
  "location": "uk",
  "country": "United Kingdom",
  "country_code": "GB",
  "quantity": 2,
  "price_per_ip_pence": 84,
  "total_pence": 168,
  "currency": "GBP",
  "status": "active",
  "term_days": 30,
  "created_at": "2026-11-22T20:55:05.577Z",
  "expires_at": "2026-12-22T20:55:05.465Z",
  "renewable": true,
  "username": "yourbrand_jake",
  "swaps_left": 0,
  "proxies": [
    "203.0.113.90:11000:yourbrand_jake:8fK2pLm9Xq",
    "203.0.113.91:11001:yourbrand_jake:8fK2pLm9Xq"
  ]
}
  • The new IPs need about ten seconds before their first use. The old ones stop working.

Errors

CodeHTTPWhat it means
expired409The plan has ended.
swap_limit409The plan has used its IP replacements for this term.
not_swapped502The IPs could not be replaced. Nothing changed.

Change a plan's password

POST/plans/{plan_id}/password

Gives the plan a new random password. The IPs and the username stay the same, and the old password stops working.

Parameters

NameWhereTypeWhat it is
plan_idPathstringRequiredThe plan's id.

Request

curl -X POST https://proxylabs.app/api/reseller/v1/plans/6b0356a950716f33707ccbab/password \
  -H "Authorization: Bearer $PROXYLABS_KEY"

Answer, 200

{
  "id": "6b0356a950716f33707ccbab",
  "name": "Jake, order 1042",
  "location": "uk",
  "country": "United Kingdom",
  "country_code": "GB",
  "quantity": 2,
  "price_per_ip_pence": 84,
  "total_pence": 168,
  "currency": "GBP",
  "status": "active",
  "term_days": 30,
  "created_at": "2026-11-22T20:55:05.577Z",
  "expires_at": "2026-12-22T20:55:05.465Z",
  "renewable": true,
  "username": "yourbrand_jake",
  "swaps_left": 1,
  "proxies": [
    "203.0.113.24:11000:yourbrand_jake:Qm4tZx81Lp",
    "203.0.113.25:11001:yourbrand_jake:Qm4tZx81Lp"
  ]
}
  • The new password needs about ten seconds before it works.

Errors

CodeHTTPWhat it means
expired409The plan has ended.
not_changed502The password could not be changed. Nothing changed.