Overview
The Typroxy API lets your own code do what you do in the dashboard. Everything is paid for from your wallet, in naira, and everything is checked for you before money moves: the price you expect, a limit on what a key can spend, and a safe way to retry.
- Base address:
https://typroxy.com/api/v1 - Requests and answers are JSON. Call it from your server, never from a web page or an app that others can open, because the key would be visible there.
- Money is in naira. Fields that hold an amount end in
_ngnand are plain numbers. - Times are ISO 8601 in UTC. Ids are UUIDs.
Quick start
- Sign in and open API keys. Create a key. Choose Read only to start: it can look at things but can't spend.
- Copy the key when it is shown. It is shown once. Save it as an environment variable called
TYPROXY_API_KEYon your server. - Call the API:
curl "https://typroxy.com/api/v1/account" \
-H "Authorization: Bearer $TYPROXY_API_KEY"You should get your wallet balance back. If you get a 401, the key is wrong or was revoked.
Authentication
Send your key in the Authorization header on every request: Authorization: Bearer tpx_live_…. A key always acts as you and only as you. It can never see another customer's data.
- Read only keys can use every GET endpoint and POST /quote. They can't spend anything.
- Read and order keys can also place orders and extend proxies. They must have a daily spending limit from ₦1,000 to ₦5,000,000, counted over the Nigerian day. If a key leaks, that limit is the most it can cost you.
- You can lock a key to up to 5 IP addresses. It then only works from them.
- You can have up to 5 active keys. Revoke a key at any time and it stops working at once.
- We keep only a fingerprint of each key. If you lose one, revoke it and create another.
Requests and responses
Successful answers wrap the result in data. Lists add meta with paging details:
{
"data": [],
"meta": {
"page": 1,
"per_page": 50,
"total": 0,
"has_more": false
}
}Errors have a status code and a body with a stable code you can act on and a message for people. Some add details.
{
"error": {
"code": "price_changed",
"message": "The price is now ₦16,000. Request a new quote and confirm it.",
"details": {
"price_ngn": 16000
}
}
}Every answer carries an X-Request-Id header. Quote it if you contact support. Answers are never cached. During planned maintenance every endpoint answers 503 with a Retry-After header, and nothing is charged.
Rate limits
Each key may make 1,200 requests an hour to reading endpoints and 120 an hour to endpoints that spend. The hour starts on the hour. Every answer shows what is left in X-RateLimit-Limit and X-RateLimit-Remaining. Past the limit you get a 429 with a Retry-After header, in seconds.
Idempotency
Networks fail. If a request that spends money times out, you can't tell whether it worked, and sending it again must not buy twice. So every request that spends (POST /orders and POST /proxies/{id}/extend) needs an Idempotency-Key header: a unique value you choose, such as a UUID.
- Send the same key with the same request to retry. If the first attempt finished you get the same answer back, marked
Idempotent-Replayed: true, and nothing is bought again. - The same key with a different request is refused with 422.
- If the first attempt is still running you get 409
request_in_progress. Wait and retry. - A request we refuse before any money moves (a changed price, a short wallet, the spending limit) doesn't use up the key. After you fix the cause you can send it again with the same key.
- If we can't tell whether an order went through (
outcome_unknown), don't retry with that key. CheckGET /ordersfirst. - Keys are remembered for 48 hours.
Spending safely
- You confirm the price. Price an order with
POST /quote, then send that price asexpected_price_ngn. If it has changed when we charge, we refuse and charge nothing. - A daily limit per key. An order or extension is set against the key's limit before it is charged, so two requests at the same moment can't both slip under it. If the order then fails and your wallet is refunded, the amount is given back.
- Refunds are automatic. If the supplier can't complete an order or extension, your wallet is refunded straight away, exactly as in the dashboard.
- Use a read-only key until you need to order, keep keys on your server, and lock them to your server's IP address.
Ordering workflow
GET /servicesto see what you can order and which fields each service takes.GET /services/{id}/optionsfor the plans, countries and networks to put in the order.POST /quotefor the price.POST /orderswith that price asexpected_price_ngnand anIdempotency-Key.- Poll
GET /orders/{id}until the order is active, then read the proxies withGET /proxies.
Here is the whole thing in Node.js. Replace PLAN_ID and ISP_ID with ids from the options endpoint:
// Quote, order, then wait for the proxies. Run with Node 20 or later.
const BASE = "https://typroxy.com/api/v1";
const headers = { Authorization: `Bearer ${process.env.TYPROXY_API_KEY}`, "Content-Type": "application/json" };
async function api(path, options = {}) {
const response = await fetch(BASE + path, { ...options, headers: { ...headers, ...options.headers } });
const body = await response.json();
if (!response.ok) throw new Error(`${body.error.code}: ${body.error.message}`);
return body.data;
}
const order = {
service_id: "static-residential-ipv4",
plan_id: "PLAN_ID",
country_code: "NG",
isp_id: "ISP_ID",
quantity: 2,
period: { unit: "months", value: 1 },
};
// 1. Price it.
const quote = await api("/quote", { method: "POST", body: JSON.stringify(order) });
console.log("Price:", quote.price_ngn);
// 2. Place it. Keep this key: if the request fails halfway, send the same one again.
const placed = await api("/orders", {
method: "POST",
headers: { "Idempotency-Key": crypto.randomUUID() },
body: JSON.stringify({ ...order, expected_price_ngn: quote.price_ngn }),
});
// 3. Wait until its proxies are active.
let details;
do {
await new Promise((resolve) => setTimeout(resolve, 5000));
details = await api(`/orders/${placed.id}`);
} while (details.status === "pending" || details.status === "provisioning");
if (details.status === "failed") throw new Error("The order failed and your wallet was refunded.");
// 4. Use them.
const proxies = await api(`/proxies?limit=100`);
for (const p of proxies.filter((x) => details.proxies.some((o) => o.id === x.id))) {
console.log(`${p.username}:${p.password}@${p.host}:${p.port}`);
}
Endpoint reference
Reading
Get your account
/api/v1/accountAny keyYour wallet balance and the limits of the key you are calling with. A good first call to check that a key works.
curl "https://typroxy.com/api/v1/account" \
-H "Authorization: Bearer $TYPROXY_API_KEY"Response 200
{
"data": {
"balance_ngn": 43333.87,
"currency": "NGN",
"api_key": {
"id": "c2d9…",
"name": "Reseller dashboard",
"scopes": [
"read",
"orders"
],
"daily_spend_limit_ngn": 50000,
"spent_today_ngn": 15000
}
}
}- spent_today_ngn counts what this key has spent or set aside today, in Nigerian time. It is 0 for a read-only key.
List services
/api/v1/servicesAny keyThe services you can order, with the lowest price each starts at and the fields each one takes when you order it.
curl "https://typroxy.com/api/v1/services" \
-H "Authorization: Bearer $TYPROXY_API_KEY"Response 200
{
"data": [
{
"id": "static-residential-ipv4",
"name": "Static Residential (IPv4)",
"category": "static_isp",
"description": "A hosted IPv4 address registered to an ISP, kept for the whole period.",
"starting_price_ngn": 15000,
"order_fields": [
"plan_id",
"country_code",
"isp_id",
"quantity",
"period"
]
},
{
"id": "rotating-residential",
"name": "Rotating Residential",
"category": "rotating_residential",
"description": "Fresh IPs on every request from real household connections.",
"starting_price_ngn": 24900,
"order_fields": [
"traffic_gb"
]
}
]
}- starting_price_ngn is a starting point, not a quote. Use POST /quote for the price of a real order. It is null when prices are unavailable.
Get a service's options
/api/v1/services/{service_id}/optionsAny keyThe choices you can put in an order for a service: plans, countries, networks and periods. Use the ids it returns as plan_id, country_code, isp_id and so on.
- serviceIdrequiredpath, string
A service id from GET /services.
- plan_idquery, string
Narrows the options to one plan, for services where the countries depend on the plan.
curl "https://typroxy.com/api/v1/services/SERVICE_ID/options" \
-H "Authorization: Bearer $TYPROXY_API_KEY"Response 200
{
"data": {
"countries": [
{
"code": "NG",
"name": "Nigeria",
"isps": [
{
"id": "ISP_ID",
"name": "Example ISP"
}
]
}
],
"periods": [
{
"unit": "months",
"value": 1
}
]
}
}- The options come from our supplier and the exact shape depends on the service. Anything that looks like a price is removed. Price an order with POST /quote.
List your proxies
/api/v1/proxiesAny keyYour proxies, newest first, with their connection details.
- statusquery, string
active, provisioning or expired.
- country_codequery, string
A two-letter country code, such as NG.
- service_idquery, string
Only proxies bought under this service.
- limitquery, integer
How many to return, 1 to 100. Default 50.
- pagequery, integer
The page number, starting at 1.
curl "https://typroxy.com/api/v1/proxies" \
-H "Authorization: Bearer $TYPROXY_API_KEY"Response 200
{
"data": [
{
"id": "7b1c2f0e-3a54-4d1e-9a52-6d0f6a1c8e21",
"order_id": "0e4f9c1a-8c2b-4f6d-b2a1-5d3e7f9a1b44",
"service_id": "static-residential-ipv4",
"status": "active",
"country_code": "NG",
"network_type": "static",
"isp": "Example ISP",
"host": "203.0.113.10",
"port": 8080,
"socks5_port": 1080,
"username": "demo_user",
"password": "demo_password",
"expires_at": "2026-12-14T00:00:00.000Z",
"created_at": "2026-11-14T09:30:00.000Z",
"traffic": null,
"label": "Client A",
"note": null,
"auto_extend": false
}
],
"meta": {
"page": 1,
"per_page": 50,
"total": 1,
"has_more": false
}
}- status is active when the proxy is ready to use, provisioning while its details are still on the way, and expired once it has ended.
- traffic is { used_gb, total_gb } for proxies sold by traffic (rotating), and null for the rest. Usage is refreshed hourly.
Get a proxy
/api/v1/proxies/{proxy_id}Any keyOne proxy and its connection details.
- proxyIdrequiredpath, string
The proxy's id.
curl "https://typroxy.com/api/v1/proxies/PROXY_ID" \
-H "Authorization: Bearer $TYPROXY_API_KEY"Response 200
{
"data": {
"id": "7b1c2f0e-3a54-4d1e-9a52-6d0f6a1c8e21",
"order_id": "0e4f9c1a-8c2b-4f6d-b2a1-5d3e7f9a1b44",
"service_id": "static-residential-ipv4",
"status": "active",
"country_code": "NG",
"network_type": "static",
"isp": "Example ISP",
"host": "203.0.113.10",
"port": 8080,
"socks5_port": 1080,
"username": "demo_user",
"password": "demo_password",
"expires_at": "2026-12-14T00:00:00.000Z",
"created_at": "2026-11-14T09:30:00.000Z",
"traffic": null,
"label": "Client A",
"note": null,
"auto_extend": false
}
}List your orders
/api/v1/ordersAny keyYour orders, newest first.
- limitquery, integer
How many to return, 1 to 100. Default 50.
- pagequery, integer
The page number, starting at 1.
curl "https://typroxy.com/api/v1/orders" \
-H "Authorization: Bearer $TYPROXY_API_KEY"Response 200
{
"data": [
{
"id": "0e4f9c1a-8c2b-4f6d-b2a1-5d3e7f9a1b44",
"service_id": "static-residential-ipv4",
"status": "active",
"quantity": 2,
"period": {
"unit": "months",
"value": 1
},
"traffic_gb": null,
"country_code": "NG",
"total_ngn": 30000,
"created_at": "2026-11-14T09:30:00.000Z"
}
],
"meta": {
"page": 1,
"per_page": 50,
"has_more": false
}
}- status is pending, provisioning, active or failed. total_ngn is what the order cost, in naira.
Get an order
/api/v1/orders/{order_id}Any keyOne order and the proxies it created. Poll this after placing an order until the proxies are active.
- orderIdrequiredpath, string
The order's id.
curl "https://typroxy.com/api/v1/orders/ORDER_ID" \
-H "Authorization: Bearer $TYPROXY_API_KEY"Response 200
{
"data": {
"id": "0e4f9c1a-8c2b-4f6d-b2a1-5d3e7f9a1b44",
"service_id": "static-residential-ipv4",
"status": "active",
"quantity": 2,
"period": {
"unit": "months",
"value": 1
},
"traffic_gb": null,
"country_code": "NG",
"total_ngn": 30000,
"created_at": "2026-11-14T09:30:00.000Z",
"proxies": [
{
"id": "7b1c2f0e-3a54-4d1e-9a52-6d0f6a1c8e21",
"status": "active"
}
]
}
}Pricing
Price an order
/api/v1/quoteAny keyThe price of an order, in naira, before you place it. Nothing is charged, and a read-only key can use it. Take the price you are shown and send it back as expected_price_ngn when you order.
- service_idrequiredbody, string
A service id from GET /services.
- quantitybody, integer
How many IPs, for services sold by number of IPs. Default 1.
- periodbody, object
{ "unit": "days" | "months" | "years", "value": 1 to 36 }. Required for services sold by period.
- traffic_gbbody, integer
Traffic in GB. Required for services sold by traffic.
- country_codebody, string
Two letters, for services that let you choose a country.
- isp_idbody, string
From GET /services/{id}/options.
- plan_idbody, string
From GET /services/{id}/options.
- package_idbody, string
From GET /services/{id}/options.
curl -X POST "https://typroxy.com/api/v1/quote" \
-H "Authorization: Bearer $TYPROXY_API_KEY" \
-H "Content-Type: application/json" \
-d '{"service_id":"static-residential-ipv4","plan_id":"PLAN_ID","country_code":"NG","isp_id":"ISP_ID","quantity":2,"period":{"unit":"months","value":1}}'Response 200
{
"data": {
"service_id": "static-residential-ipv4",
"quantity": 2,
"price_ngn": 30000,
"list_price_ngn": 30000,
"percent_off": 0,
"currency": "NGN"
}
}- Fields a service doesn't take are refused, and unknown fields are refused, so a typo can't quietly change an order.
- Orders of 10 or more IPs for services sold by number of IPs get a volume discount. list_price_ngn is the price before it and percent_off is its size.
Get extension prices
/api/v1/proxies/{proxy_id}/extension-pricesAny keyWhat it costs to extend a proxy, for each period it offers. A read-only key can use it.
- proxyIdrequiredpath, string
The proxy's id.
curl "https://typroxy.com/api/v1/proxies/PROXY_ID/extension-prices" \
-H "Authorization: Bearer $TYPROXY_API_KEY"Response 200
{
"data": {
"proxy_id": "7b1c2f0e-3a54-4d1e-9a52-6d0f6a1c8e21",
"expires_at": "2026-12-14T00:00:00.000Z",
"currency": "NGN",
"options": [
{
"months": 1,
"price_ngn": 1500
},
{
"months": 3,
"price_ngn": 4200
}
]
}
}Spending
Place an order
/api/v1/ordersNeeds order accessPlaces an order and pays for it from your wallet. Needs a key with order access. The price is checked again at the moment of charging, and if your wallet or the supplier can't complete the order you are not charged, or are refunded straight away.
- Idempotency-Keyrequiredheader, string
A unique value for this order, 8 to 128 characters. Send the same value to retry the same order safely. See Idempotency.
- expected_price_ngnrequiredbody, number
The price in naira from POST /quote. If the price is different when we charge, we refuse and charge nothing.
- service_idrequiredbody, string
As for POST /quote.
- (other fields)body
quantity, period, traffic_gb, country_code, isp_id, plan_id and package_id, exactly as for POST /quote.
curl -X POST "https://typroxy.com/api/v1/orders" \
-H "Authorization: Bearer $TYPROXY_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{"service_id":"static-residential-ipv4","plan_id":"PLAN_ID","country_code":"NG","isp_id":"ISP_ID","quantity":2,"period":{"unit":"months","value":1},"expected_price_ngn":30000}'Response 201
{
"data": {
"id": "0e4f9c1a-8c2b-4f6d-b2a1-5d3e7f9a1b44",
"service_id": "static-residential-ipv4",
"status": "provisioning",
"quantity": 2,
"total_ngn": 30000,
"currency": "NGN",
"message": "Your order was placed. Poll GET /orders/{id} until its proxies are active."
}
}- The answer means the order was placed, not that the proxies are ready. Poll GET /orders/{id}: the proxies appear and turn active when they are ready, usually within minutes.
- The amount counts against the key's daily spending limit straight away. If the order fails and your wallet is refunded, the amount is given back.
Extend a proxy
/api/v1/proxies/{proxy_id}/extendNeeds order accessExtends a proxy by a number of months and pays from your wallet. Needs a key with order access.
- proxyIdrequiredpath, string
The proxy's id.
- Idempotency-Keyrequiredheader, string
A unique value for this extension. See Idempotency.
- monthsrequiredbody, integer
A period from GET /proxies/{id}/extension-prices.
- expected_price_ngnrequiredbody, number
The price for that period from the same endpoint. If it has changed, we refuse and charge nothing.
curl -X POST "https://typroxy.com/api/v1/proxies/PROXY_ID/extend" \
-H "Authorization: Bearer $TYPROXY_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{"months":1,"expected_price_ngn":1500}'Response 200
{
"data": {
"proxy_id": "7b1c2f0e-3a54-4d1e-9a52-6d0f6a1c8e21",
"months": 1,
"charged_ngn": 1500,
"expires_at": "2027-01-14T00:00:00.000Z",
"currency": "NGN"
}
}Errors
Match on error.code, not on the message, which may be reworded.
- invalid_api_key401
The key is missing, mistyped, unknown or revoked. Send Authorization: Bearer <key>. If the key was revoked, create a new one.
- ip_not_allowed403
The key is limited to certain IP addresses and this request came from another. Call from an allowed address, or change the key's allowed addresses by creating a new key.
- insufficient_scope403
The key is read-only but the endpoint spends money. Use a key with order access.
- spend_limit_exceeded403
The request would take today's spending past the key's daily limit. Wait until midnight Nigerian time, or create a key with a higher limit. error.details shows the limit and what was spent.
- not_found404
There is no such endpoint, proxy or order, or it isn't yours. Check the id. We don't say whether something exists on someone else's account.
- method_not_allowed405
The endpoint doesn't accept that HTTP method. Check the method in the reference.
- rate_limited429
The key has used its allowance for this hour. Wait for the number of seconds in the Retry-After header.
- invalid_json400
The body isn't a JSON object. Send valid JSON with Content-Type: application/json.
- invalid_parameter400
A query parameter has a bad value. Check the parameter in the reference.
- invalid_field400
A field in the body has a bad value. The message names the field and what is allowed.
- missing_field400
A required field is missing. The message names the field.
- unknown_field400
The body has a field we don't recognise. Remove it, or fix the spelling.
- unknown_service400
No such service_id. Use an id from GET /services.
- field_not_accepted400
That service doesn't take that field. Remove it. GET /services lists each service's fields.
- period_not_available400
That period isn't offered for this proxy. Use a period from GET /proxies/{id}/extension-prices.
- idempotency_key_required400
A request that spends money has no Idempotency-Key header. Add the header.
- invalid_idempotency_key400
The Idempotency-Key isn't 8 to 128 letters, numbers or - _ : . Use a longer, simpler value, such as a UUID.
- price_changed409
The price is no longer the one you expected. Nothing was charged. Read error.details.price_ngn, confirm it, and send the request again with the new expected_price_ngn. You can reuse the same Idempotency-Key.
- request_in_progress409
A request with this Idempotency-Key is still running, or its outcome isn't known. Wait a moment and retry the same request. If it keeps happening, check GET /orders or GET /proxies/{id} to see what happened before trying again with a new key.
- idempotency_key_reused422
This Idempotency-Key was used for a different request. Use a new key for a new request.
- provider_rejected422
The supplier didn't accept these options. Check them against GET /services/{id}/options.
- cannot_extend422
This proxy can't be extended right now. Try again later, or contact support.
- insufficient_balance402
Your wallet doesn't have enough money. You were not charged. Add funds and send the request again. The same Idempotency-Key still works.
- provisioning_failed502
The order was placed but couldn't be completed. Your wallet was refunded. error.details.order_id is the failed order. Try again later.
- service_unavailable502
The service is temporarily unavailable. Your wallet was refunded. Try again shortly.
- extension_failed502
The extension couldn't be completed. Your wallet was refunded. Try again later.
- provider_unavailable502
We couldn't reach our supplier. Try again in a moment.
- outcome_unknown500
We couldn't tell whether the order or extension went through. Don't retry with the same key. Check GET /orders or GET /proxies/{id} first.
- server_error500
Something went wrong on our side. Try again. If it keeps happening, contact support with the X-Request-Id.
Changelog
First release: account, services, proxies and orders; quotes; placing orders; extending proxies. Keys with read or order access, daily spending limits and an optional IP allowlist.
Questions, or something you need that isn't here? Contact support. Using the API is subject to our Terms of Service.

