REST API

Automate proxies, rotation, logins and usage with a scoped API key.

Updated 2 Dec 2026 · API v1

Basics

  • Base URL: https://dengz.io/api
  • Authentication: Authorization: Bearer dzk_…. See API keys.
  • Requests and responses are JSON. Responses are never cached.
curl "https://dengz.io/api/proxies" -H "Authorization: Bearer $DENGZ_API_KEY"
import os, requests

r = requests.get("https://dengz.io/api/proxies",
                 headers={"Authorization": f"Bearer {os.environ['DENGZ_API_KEY']}"}, timeout=30)
r.raise_for_status()
print(r.json())
const res = await fetch("https://dengz.io/api/proxies", {
  headers: { Authorization: `Bearer ${process.env.DENGZ_API_KEY}` },
});
console.log(await res.json());

Proxies

MethodPathDoes
GET/proxiesYour dedicated proxies and the shared proxies you can use
GET/proxies/{id}One proxy, with its rotation state
POST/proxies/{id}/rotateRenew the IP of a dedicated mobile proxy
PATCH/proxies/{id}/rotate-intervalSet automatic renewal, rotate_interval_secs 300–43200
POST/proxies/{id}/pauseRefuse connections until resumed
POST/proxies/{id}/resumeAccept connections again
POST/proxies/{id}/rebootRestart the listener and close open connections

Pools and usage

MethodPathDoes
GET/poolsYour IPv6 pools: prefix, speed, period, status
GET/usageUpload and download per port, and your bandwidth periods

Proxy logins

MethodPathDoes
GET/accessList logins. Passwords are never returned
POST/accessCreate a login. The password is in this response only
PATCH/access/{id}Replace a login. A new username issues a new password
DELETE/access/{id}Delete a login
POST/access/{id}/resetSet or generate a new password (12–128 characters)

Errors

StatusMeaning
400Invalid input, or an action the proxy does not support in its current state
401Missing, expired or revoked API key
403Not your proxy, or the key's scope does not allow it
404Unknown resource
409A rotation is already running, the proxy never renews, or it is not healthy (RENEWAL_UNAVAILABLE)
503Proxy control is temporarily unavailable (PROXY_UNAVAILABLE). Retry with backoff