Mobile proxy port API for x402 wallets

Choose a country, a port duration and a traffic allowance. The API returns a USDC quote. If you accept it, the paid response provides HTTP and SOCKS5 credentials for the port.

Read a port quote before paying

For a one-hour storefront check, select a country from the dedicated-port list. This example requests a US port with 1 GB for 3,600 seconds. It sends no wallet credentials or payment signature.

bash
curl -sS -i 'https://api.proxies.sx/v1/x402/proxy?country=US&duration=3600&traffic=1&tier=shared'

An eligible request returns HTTP 402. For each item in accepts, check the requested resource, network, USDC asset, maxAmountRequired and payTo. Stop if the country is unavailable or if any payment term differs from the approved quote.

After authorization, use the port purchase and payment reference to submit proof for the same request. Store the returned credentials and management.sessionToken securely. The x402 integration guide covers pricing and session management.

What the US port quote returned

On , the unsigned request above returned 4000000 in six-decimal USDC units, or 4 USDC, on Base and Solana. The port price list showed a minimum of 0.1 GB and a duration from one hour to 30 days. These are dated examples. Read the current port price limits and calculate the same allocation before authorizing a transfer.

For a reusable gateway balance, consult wallet pool pricing. The account price per GB uses separate country rates.

Check country inventory for the product you need

The port country list returned the United States and United Kingdom during the November 20 check. A fresh response gives each listed country’s two-letter code and availableDevices. If a country is missing or its count is zero, recheck later or choose another region with the buyer’s agreement.

bash
curl -fsS 'https://api.proxies.sx/v1/x402/countries'

To choose between per-GB traffic and a whole device, compare mobile proxy products and private modem rentals. For an assistant exploring pooled stock, use the public MCP stock check.

Connect during the purchased term

Use the returned proxy.http for HTTP or HTTPS via CONNECT, or proxy.socks5 for a SOCKS5 client. The response also gives the port expiry and management credentials. A carrier can change its exit IP during the term. Keep connection strings out of application logs.

Inspect the unsigned offer in code

These examples return the quote and stop before payment. Use a currently listed country when reproducing the request.

curl
curl -sS -i 'https://api.proxies.sx/v1/x402/proxy?country=US&duration=3600&traffic=1&tier=shared'

Session Management API Reference

Manage active proxy sessions using the X-Session-Token header, set to the management.sessionToken returned when you provision a proxy.

GET/v1/x402/proxyProvision a new proxy session

Parameters

ParamTypeRequiredDescription
countrystringRequiredTwo-letter code listed by GET /v1/x402/countries
trafficnumberRequiredBandwidth in GB (e.g. 0.1 for 100MB)
tierstringOptional"shared" (the only tier)
durationnumberRequiredRequested duration in seconds, within the current port price limits

Response (200 OK)

json
{
  "proxy": {
    "http": "http://PROXY_USERNAME:PROXY_PASSWORD@proxy.example.invalid:HTTP_PORT",
    "socks5": "socks5://PROXY_USERNAME:PROXY_PASSWORD@proxy.example.invalid:SOCKS_PORT",
    "server": "SERVER",
    "httpPort": 0,
    "socksPort": 0,
    "username": "PROXY_USERNAME",
    "password": "PROXY_PASSWORD",
    "expiresAt": "2026-02-08T13:00:00Z"
  },
  "rotationUrl": "https://api.proxies.sx/v1/rotate/ROTATION_TOKEN",
  "sessionId": "...",
  "portId": "...",
  "management": { "sessionToken": "SESSION_TOKEN" }
}

management.sessionToken is the value for the X-Session-Token header in session management calls.

GET/v1/x402/manage/sessionCheck session status and bandwidth usage

Headers

X-Session-Token: <token from provision response>
json
{
  "sessionId": "sess_abc123",
  "status": "active",
  "country": "US",
  "tier": "shared",
  "bytesUsed": 1048576,
  "bytesRemaining": 106300416,
  "expiresAt": "2026-02-08T13:00:00Z"
}
POST/v1/x402/manage/session/topupAdd bandwidth to an active session

Headers

X-Session-Token: <token>Payment-Signature: <new tx signature for top-up amount>

Body

json
{ "addTrafficGB": 0.5 }

Extends the session with additional bandwidth. The same session token and proxy credentials remain valid.

POST/v1/x402/manage/ports/replaceReplace port (get new IP) within active session

Headers

X-Session-Token: <token>

Requests a replacement port. Check the response for new connection details. The carrier controls the exit address.

Frequently Asked Questions