API Documentation
With the ProxyPanel API your own code can do what you would otherwise click through in the dashboard: list your mobile proxies, give one a new IP, move it to another city, put it on a rotation timer and keep its IP whitelist current. Examples are in cURL, Python and Node.js.
Last updated: November 2026
Current API
API Key Authentication
Each request has to carry an API key from your account. The key can do everything the API can do with your proxies, so keep it out of shared code, screenshots and public repositories. An environment variable is a good place for it, and the examples on this page read it from one called API_KEY.
Create a key
Sign in and choose API in the sidebar.
Press Create key. A name is optional, but if several scripts or servers use the API, give each one its own key so you can retire one without touching the others.
Copy the key the moment it appears: the full key is displayed only this once. If it gets lost or exposed, press Revoke next to it and create a new one.
Send it with every request
Authorization: Bearer YOUR_API_KEYAll endpoints below start from this base URL:
https://proxypanel.io/api/v1For a quick GET from a browser or a cron line, the key can also go in the query string as ?key=YOUR_API_KEY. Scripts should use the header, because URLs tend to be written to logs.
Every answer is JSON. When a call fails, the body has an error field saying why, and a missing, revoked or mistyped key gets HTTP 401. A plain GET of the base URL, with no key at all, returns the catalogue of endpoints as JSON, and the API reference lists every endpoint with its parameters, including the ones this page doesn't cover (credentials, password, renewals, balance).
List Your Proxies
Begin with the list. It gives each proxy's id, which every other call puts in its path (shown as PROXY_ID on this page). An id looks like pp123456; it is not the proxy's username.
https://proxypanel.io/api/v1/proxiesstate is active, expired or paused. A paused proxy has been paid for but its time hasn't started; start it with Start proxy in the dashboard or with POST /proxies/PROXY_ID/start. connection holds the host, the HTTP and SOCKS5 ports (they differ) and the username; fetch the password from credentials_url.
Request
curl -s "https://proxypanel.io/api/v1/proxies" \
-H "Authorization: Bearer $API_KEY"Response
HTTP 200 (shortened)
{
"proxies": [
{
"object": "proxy",
"id": "PROXY_ID",
"label": "LABEL",
"state": "active",
"last_ip": "CURRENT_IP",
"location": { "country_code": "US", "state_code": "ST", "city": "CITY", "carrier": "CARRIER" },
"connection": {
"host": "HOST",
"socks5_port": SOCKS5_PORT,
"http_port": HTTP_PORT,
"username": "USERNAME",
"credentials_url": "/api/v1/proxies/PROXY_ID/credentials"
},
"started": true,
"expires_at": "2026-12-01T12:00:00.000Z"
}
]
}Change the IP
This asks the phone behind the proxy for a fresh IP. The proxy stays in its city and on its carrier; to go somewhere else, use Change Location below. The call returns once the new IP is live, typically after 30 to 90 seconds, so set a generous timeout in your HTTP client.
https://proxypanel.io/api/v1/proxies/PROXY_ID/rotatenew_ip is the address the proxy uses now. Once in a while it comes back as null; the proxy list shows the new address as last_ip about a minute later. A GET of the same URL also works, for tools that can only open links.
Request
curl -s -X POST "https://proxypanel.io/api/v1/proxies/PROXY_ID/rotate" \
-H "Authorization: Bearer $API_KEY" \
--max-time 120Response
HTTP 200
{ "status": "rotated", "completed": true, "rotation_id": null, "new_ip": "NEW_IP" }
HTTP 409 too soon (a Retry-After header is sent as well)
{ "error": "…", "code": "cooldown", "retryable": true, "retry_after": 35, "hint": "…", "state": "active" }
HTTP 409 paused or expired proxy
{ "error": "…", "code": "not_active", "retryable": false, "hint": "…", "state": "expired" }Change Location
Moving a proxy takes two calls: get the locations that have free phones, then send the location_id of the one you want. The proxy gets a new IP at its new location.
https://proxypanel.io/api/v1/locations?available_only=1Each entry names a city and state, how many phones are free there (available_slots) and a location_id. Under carriers the same is given per carrier in that city, each with its own location_id, for when the carrier matters to you. Leave out available_only=1 to include locations that are busy right now.
https://proxypanel.io/api/v1/proxies/PROXY_ID/relocateSend {"location_id": "LOCATION_ID"} with a value from the list, or {"random": true} to let the server choose a city with free phones. Allow about three minutes between moves; an earlier one is refused with HTTP 409, error: "too_soon" and retry_after. Open SOCKS5 sessions reconnect on their next request.
Request
# 1. locations that have free phones
curl -s "https://proxypanel.io/api/v1/locations?available_only=1" \
-H "Authorization: Bearer $API_KEY"
# 2. move the proxy to one of them
curl -s -X POST "https://proxypanel.io/api/v1/proxies/PROXY_ID/relocate" \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{"location_id": "LOCATION_ID"}'
# or let the server pick a random city
curl -s -X POST "https://proxypanel.io/api/v1/proxies/PROXY_ID/relocate" \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{"random": true}'Response
GET /locations?available_only=1 -> HTTP 200
{
"locations": [
{
"country": "US",
"state": "ST",
"city": "CITY",
"available_slots": 14,
"location_id": "LOCATION_ID",
"carriers": [
{ "carrier": "CARRIER", "available_slots": 6, "location_id": "LOCATION_ID" }
]
}
]
}
POST /proxies/PROXY_ID/relocate -> HTTP 200
{
"id": "PROXY_ID",
"completed": true,
"location_id": "LOCATION_ID",
"location": { "city": "CITY", "state": "ST", "country": "US", "carrier": "CARRIER" }
}
HTTP 409 moved too recently
{ "error": "too_soon", "message": "…", "retry_after": 120 }Automatic Rotation
Rather than calling Change the IP yourself, you can put the proxy on a timer. The schedule runs on our side, so it carries on when your script stops or your browser is closed. The first change comes one full interval after you save it. This is the same setting as the Rotation column on My Proxies.
PUT https://proxypanel.io/api/v1/proxies/PROXY_ID/rotation-scheduleinterval_minutes:5,10,30or60. Any other value is refused with HTTP 422invalid_intervaland the allowed list.mode:same_citygives a new IP in the same city on the same carrier (IP rotation in the dashboard);full_poolmoves to a random city anywhere in the network (Location rotation);same_carriermoves to a random city on the same carrier (Location · keep carrier).enabled(optional):falsepauses the schedule and keeps its settings.
A proxy runs one schedule at a time, so a new PUT replaces the previous one. GET on the same URL shows what is set; DELETE switches automatic rotation off.
Request
# new IP every 10 minutes, same city and carrier
curl -s -X PUT "https://proxypanel.io/api/v1/proxies/PROXY_ID/rotation-schedule" \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{"interval_minutes": 10, "mode": "same_city"}'
# what is set right now
curl -s "https://proxypanel.io/api/v1/proxies/PROXY_ID/rotation-schedule" \
-H "Authorization: Bearer $API_KEY"
# switch automatic rotation off
curl -s -X DELETE "https://proxypanel.io/api/v1/proxies/PROXY_ID/rotation-schedule" \
-H "Authorization: Bearer $API_KEY"Response
HTTP 200
{
"schedule": {
"enabled": true,
"mode": "same_city",
"interval_minutes": 10,
"last_run_at": null,
"last_status": null,
"next_run_at": "2026-12-01T12:10:00.000Z"
}
}
HTTP 422 interval not offered
{ "error": "invalid_interval", "message": "…", "allowed_minutes": [5, 10, 30, 60] }IP Whitelist
With the whitelist on, the IPv4 addresses you list can use the proxy without a username or password, through a separate whitelist port. Username and password keep working on the normal ports at the same time.
PUT https://proxypanel.io/api/v1/proxies/PROXY_ID/ip-authenabled:trueto switch it on;falseto switch it off (send nothing else then).protocol:httporsocks5. The whitelist port speaks one of the two.allowed_ips: an array of up to 15 IPv4 addresses.
Each PUT replaces the whole list. To add a single address, GET the current settings from the same URL, add to allowed_ips and send it all back, which is what the Python example does. The answer gives listen_host and listen_port: point your software at that host and port from a whitelisted address. A few servers don't offer the whitelist; for proxies on them the API answers HTTP 503 ip_auth_unavailable.
Request
# switch the whitelist on (this list replaces any earlier one)
curl -s -X PUT "https://proxypanel.io/api/v1/proxies/PROXY_ID/ip-auth" \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{"enabled": true, "protocol": "http", "allowed_ips": ["203.0.113.10", "198.51.100.7"]}'
# switch it off
curl -s -X PUT "https://proxypanel.io/api/v1/proxies/PROXY_ID/ip-auth" \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{"enabled": false}'Response
HTTP 200
{
"available": true,
"enabled": true,
"protocol": "http",
"allowed_ips": ["203.0.113.10", "198.51.100.7"],
"listen_host": "HOST",
"listen_port": WHITELIST_PORT,
"updated_at": "2026-12-01T12:00:00.000Z"
}
HTTP 400 { "error": "too_many_ips", "max": 15 }
HTTP 400 { "error": "invalid_ips", "invalid": ["…"] }
HTTP 503 { "error": "ip_auth_unavailable" } this proxy's server has no whitelistChange-IP Link (No Login)
Some tools can only open a URL. For those, every proxy has a private link that changes its IP when it is opened, with no API key and no sign-in. The flip side: whoever gets hold of the link can use it, so guard it as you would a password.
- In the dashboard: the proxy's ⋮ menu → Copy change-IP link or Copy random-location link, or the Rotate URLs card on the API page.
- Through the API:
GET /proxies/PROXY_ID/rotate-linksreturnschange_ip_urlandrandom_url.
change_ip_url gives a new IP in the same location. random_url moves the proxy to a random city with a new IP; add ?excluded_carriers=att,tmobile to keep it off those carriers. The change-IP link allows one change per minute; the random-location link moves the proxy, so like any move it needs about three minutes between uses. If a link has leaked, make new ones with POST /proxies/PROXY_ID/rotate-links or ⋮ → New change-IP link; the old links stop working immediately.
Request
# the proxy's two links (created the first time you ask)
curl -s "https://proxypanel.io/api/v1/proxies/PROXY_ID/rotate-links" \
-H "Authorization: Bearer $API_KEY"
# open a link from anywhere, no key needed: new IP, same location
curl -s "$CHANGE_IP_URL"
# random city, skipping AT&T and T-Mobile
curl -s "$RANDOM_URL?excluded_carriers=att,tmobile"
# replace both links; the old ones stop working straight away
curl -s -X POST "https://proxypanel.io/api/v1/proxies/PROXY_ID/rotate-links" \
-H "Authorization: Bearer $API_KEY"Response
GET /proxies/PROXY_ID/rotate-links -> HTTP 200
{
"id": "PROXY_ID",
"change_ip_url": "https://…/r/…",
"random_url": "https://…/r/…/random"
}
POST answers the same fields plus "regenerated": trueAccounts moved from the old ProxyPanel site
Older URL API
Scripts written for the old site's URL API keep working on https://proxypanel.io: the URLs are the same and the answers keep their old format. For new work, the current API above is the better choice: it covers more (rotation modes, carriers, SOCKS5 whitelists, change-IP links) and works for every account.
What goes in the URL
- USERNAME and GROUPNAME: a proxy from the old site has a username of the form
USERNAME.GROUPNAME, shown under Credentials on My Proxies. The part before the dot replacesUSERNAME, the part after it replacesGROUPNAME. - API_KEY: a key made with Create key on the API page works here. If a key you saved on the old site is refused, create a new one and put it in its place.
Answers keep the old site's format: a small JSON body with a status, error or message field. Most refusals are HTTP 400, whatever the reason, so read the body. Each endpoint below lists its answers.
Older URL API
Change Proxy IP
Gives the proxy a new IP in the same location: city and carrier stay as they are. Each proxy accepts one change every 60 seconds.
https://proxypanel.io/proxy/change-ip/USERNAME/GROUPNAME/API_KEYRequest & Response
curl -s "https://proxypanel.io/proxy/change-ip/USERNAME/GROUPNAME/API_KEY"HTTP 200 {"status": "ip changed"}
HTTP 400 {"status": "Too soon"} less than 60 seconds since the last change
HTTP 404 {"error": "proxy not found or expired"} expired, or not started yet
HTTP 400 {"status": "proxy not found"} GROUPNAME is not one of your proxies
HTTP 400 {"error": "invalid api_key"} wrong key, or USERNAME does not match itList Available Locations
Returns the location names you can move a proxy to; locations that are almost full are left out. This one needs no key. zip_codes groups zip codes by location name.
https://proxypanel.io/proxy/list/locationsRequest & Response
curl -s "https://proxypanel.io/proxy/list/locations"HTTP 200
{
"locations": ["LOCATION", "LOCATION", "…"],
"zip_codes": { "LOCATION": "ZIP,ZIP,…" }
}Change Proxy Location
Moves the proxy to LOCATION and gives it a new IP there. Write LOCATION exactly as it appears in the list above.
https://proxypanel.io/proxy/locations/USERNAME/GROUPNAME/LOCATION/API_KEYLeave the location out to move to a random one instead. Adding ?excluded_carriers=att,tmobile keeps the random pick off those carriers.
https://proxypanel.io/proxy/locations/USERNAME/GROUPNAME/API_KEYLeave about three minutes between location changes.
Request & Response
curl -s "https://proxypanel.io/proxy/locations/USERNAME/GROUPNAME/LOCATION/API_KEY"HTTP 201 {"status": "location_changed"}
HTTP 400 {"status": "cannot change location - too soon"}
HTTP 400 {"status": "location not found"} unknown name, or no free phone there right now
HTTP 400 {"status": "invalid api_key or data"} wrong key, USERNAME or GROUPNAMEChange Proxy IP Rotation
Switches timed IP rotation on or off. At every interval the proxy gets a new IP and keeps its city and carrier, the same as IP rotation in the dashboard. Setting it here replaces a location rotation chosen in the dashboard, since a proxy runs one rotation at a time.
ROTATION is a whole number followed by a unit: m for minutes, h for hours, d for days (s for seconds works too). Use anything from 5m to 2d, such as 10m or 1h; 0 switches rotation off. A number without a unit is refused.
https://proxypanel.io/proxy/rotation/USERNAME/GROUPNAME/ROTATION/API_KEYRequest & Response
curl -s "https://proxypanel.io/proxy/rotation/USERNAME/GROUPNAME/10m/API_KEY"HTTP 201 {"status": "rotation_updated"}
HTTP 400 {"status": "error: invalid rotation"} no unit, or outside the allowed range
HTTP 400 {"status": "invalid api_key or data"} wrong key, USERNAME or GROUPNAMEUpdate IPv4 whitelist
Replaces the proxy's whitelist with the addresses you send. An empty value switches IP authentication off.
https://proxypanel.io/proxy/update-ipv4/USERNAME/GROUPNAME/API_KEYParameters
| Attributes | Types | Description |
|---|---|---|
| ipv4_whitelist | string | IPv4 addresses separated by commas, for example 203.0.113.10,198.51.100.7 (up to 15). Send it as a form field or in a JSON body. |
Entries that aren't valid IPv4 addresses are skipped without an error (and if none is valid, the whitelist is switched off), so check the result with Get IP Auth info below. The whitelist port keeps the protocol it already had (HTTP when none was set); to switch it to SOCKS5, use the dashboard or the current API. On a server without the whitelist the answer is HTTP 200 with "proxy does not support ipv4 whitelist", so check the body as well as the status.
Request & Response
curl -s -X POST "https://proxypanel.io/proxy/update-ipv4/USERNAME/GROUPNAME/API_KEY" \
--data-urlencode "ipv4_whitelist=203.0.113.10,198.51.100.7"HTTP 200 {"status": "updated ipv4 whitelist"}
HTTP 200 {"status": "proxy does not support ipv4 whitelist"}
HTTP 400 {"error": "too many IPs - max 15"}
HTTP 400 {"error": "invalid api_key"} wrong key, USERNAME or GROUPNAME
HTTP 500 {"error": "server error"} the ipv4_whitelist field was missingAppend IPv4 whitelist
Adds addresses to the current whitelist instead of replacing it; addresses already on it stay as they are. It takes the same ipv4_whitelist field, and the 15-address limit applies to the combined list. Only POST is accepted.
https://proxypanel.io/proxy/append-ipv4/USERNAME/GROUPNAME/API_KEYRequest & Response
curl -s -X POST "https://proxypanel.io/proxy/append-ipv4/USERNAME/GROUPNAME/API_KEY" \
--data-urlencode "ipv4_whitelist=198.51.100.8"HTTP 200 {"status": "appended to ipv4 whitelist"}
HTTP 200 {"status": "proxy does not support ipv4 whitelist"}
HTTP 400 {"error": "too many IPs - max 15"} counted after adding
HTTP 400 {"error": "invalid api_key"}
HTTP 405 {"status": "only POST request is supported"}Get IP Auth info
Reads the whitelist settings: the protocol, the host and whitelist port to connect to, and the allowed addresses. Both URLs below give the same answer. When the whitelist is off, you get HTTP 400 saying so.
https://proxypanel.io/proxy/auth_info/USERNAME/GROUPNAME/API_KEYhttps://proxypanel.io/proxy/ip-auth-get/USERNAME/GROUPNAME/API_KEYAs on the old site, port is a string and allowed_ips is a single comma-separated string that ends with a comma.
Request & Response
curl -s "https://proxypanel.io/proxy/auth_info/USERNAME/GROUPNAME/API_KEY"HTTP 200
{
"type": "http",
"host": "HOST",
"port": "WHITELIST_PORT",
"allowed_ips": "203.0.113.10,198.51.100.7,"
}
HTTP 400 {"status": "failure", "message": "Proxy does not have IP auth enabled"}
HTTP 400 {"status": "failure", "message": "Invalid API key"}Stuck on something? Open a ticket from Tickets in your dashboard or write to [email protected].