Docs menu

Docs Reference

Customer API

Read your balance, bandwidth, proxy credentials and daily usage from your own scripts.

Last verified: November 2026

Authentication

Create a key under Settings in the dashboard and send it as a bearer token. Keys start with pmk_ and can only read.

Responses include proxy passwords, so the API sends no CORS headers: call it from a server or a script, never from browser code. Keep keys out of public repositories, and revoke one in Settings if it leaks.

Each key can make 60 requests a minute. Past that the API answers 429 with a Retry-After header, in seconds.

GET /api/v1/account

Your wallet balance and every product, with its bandwidth and the credentials to connect. Bandwidth refreshes from the network every 15 minutes, and syncedAt says when. Canceled products aren't listed.

request
curl -H "Authorization: Bearer pmk_YOUR_KEY" https://proxmint.com/api/v1/account
response
{
  "balance": { "cents": 1250, "usd": "12.50" },
  "products": [
    {
      "id": "cm1q2w3e4r5t6y7u8i9o0p",
      "product": "residential",
      "name": "Residential",
      "status": "active",
      "statusChangedAt": "2026-11-04T16:20:00.000Z",
      "billing": "pack",
      "bandwidth": {
        "limitBytes": 5368709120,
        "usedBytes": 1073741824,
        "remainingBytes": 4294967296,
        "syncedAt": "2026-10-01T09:45:00.000Z"
      },
      "proxy": {
        "host": "gw.proxmint.com",
        "httpPort": 823,
        "socks5Port": 824,
        "username": "PROXY_USER",
        "password": "PROXY_PASS"
      }
    }
  ]
}
FieldValues
productresidential, premium-residential, datacenter or mobile.
statusactive, suspended or expired. Expired means the bandwidth is used up; packs never expire by date.
statusChangedAtWhen status last changed. Poll and compare to catch a change. null means it hasn't changed since 2026-11-04, when recording began.
billingpack or payg.

GET /api/v1/usage

Bytes and requests per product per UTC day, oldest first. A day with no traffic has no row. The optional days parameter counts back from today, today included: a whole number from 1 to 90, default 30.

request
curl -H "Authorization: Bearer pmk_YOUR_KEY" "https://proxmint.com/api/v1/usage?days=7"
response
{
  "days": 7,
  "usage": [
    {
      "productId": "cm1q2w3e4r5t6y7u8i9o0p",
      "product": "residential",
      "day": "2026-09-29",
      "bytes": 734003200,
      "requests": 18234
    }
  ]
}

GET /api/v1/pricing

Pack sizes, prices and price per GB for each product. It needs no key. The optional product parameter returns just that product.

request
curl "https://proxmint.com/api/v1/pricing?product=residential"
response
{
  "currency": "USD",
  "products": [
    {
      "product": "residential",
      "name": "Residential",
      "packs": [
        { "gb": 1, "priceUsd": 1.8, "perGbUsd": 1.8 },
        ...
      ]
    }
  ],
  "notes": ["List prices. A sale running at checkout can be lower; ..."]
}

POST /api/v1/proxies

Builds proxy lines for one of your products, with optional location targeting and sticky sessions. The lines include your proxy password. Send the parameters as a JSON body; only product is required.

request
curl -X POST https://proxmint.com/api/v1/proxies \
  -H "Authorization: Bearer pmk_YOUR_KEY" -H "Content-Type: application/json" \
  -d '{"product":"residential","country":"us","session":"sticky","count":2}'
response
{
  "product": "residential",
  "protocol": "http",
  "session": "sticky",
  "lines": [
    "http://PROXY_USER__cr.us;sessid.3f9a1c2b7e40;sessttl.30:PROXY_PASS@gw.proxmint.com:823",
    "http://PROXY_USER__cr.us;sessid.81d0e6a4b2c9;sessttl.30:PROXY_PASS@gw.proxmint.com:823"
  ],
  "notes": ["Each line keeps one IP for up to 30 minutes, then moves to a new one. ..."]
}
FieldValues
protocolhttp (default, also carries HTTPS) or socks5.
sessionrotating (default) gives one line that gets a new IP on every request. sticky gives count lines (1 to 50), each holding one IP for sticky_minutes (1 to 120, default 30).
formaturl (default) or host:port:user:pass.
country, state, city, zip, asnOptional location. State, city, ZIP and ASN need a country. Leave them all out to use the targeting saved in the dashboard. See targeting.

POST /api/v1/check

Sends one request through a product's proxy and reports the exit IP, the country Cloudflare sees it in, and the time taken. It uses a few kilobytes of that product's bandwidth. Body: product, and an optional country. A failed test is still a 200, with ok: false, a reason and advice.

request
curl -X POST https://proxmint.com/api/v1/check \
  -H "Authorization: Bearer pmk_YOUR_KEY" -H "Content-Type: application/json" \
  -d '{"product":"residential","country":"de"}'
response
{
  "product": "residential",
  "ok": true,
  "exitIp": "203.0.113.7",
  "exitCountrySeenByCloudflare": "DE",
  "ms": 812
}

Errors

An error comes back as JSON with one field, error, that says what went wrong.

StatusCause
400A parameter is missing or invalid (for example days outside 1 to 90), or the account has no product of the kind asked for.
401The key is missing, malformed or revoked.
429More than 60 requests a minute with your key. Wait for Retry-After.

OpenAPI spec

The full schema is at /openapi.json (OpenAPI 3.1). Postman, Insomnia, Bruno and Scalar import it directly.