# Quickstart: buy GB and connect through the Pool Gateway Last verified: 2026-10-28. Base URL `https://api.proxies.sx/v1`. Every money step needs the user's approval of the amount. Full contract: https://agents.proxies.sx/pool/skill.md 1. **Sign up** (2 per minute per IP; disposable email domains are refused). ```bash curl -s -X POST https://api.proxies.sx/v1/login/signup -H 'Content-Type: application/json' \ -d '{"email":"agent@example.com","password":"A-long-password-1"}' ``` Verify: 201 and a verification email arrives. Sign-in answers 401 `EMAIL_NOT_VERIFIED` until step 2. 2. **Verify the email** (a human clicks the link, or you call it with the token from the link; the token lives 24 hours). ```bash curl -s "https://api.proxies.sx/v1/login/verify-email?token=" ``` Verify: 200 with `access_token`. Later sign-ins: `POST /v1/login/signin {"email","password"}` -> `{"access_token":"eyJ..."}`. 3. **Create an API key** in the dashboard (https://client.proxies.sx/account, API keys; tick `billing:topup` if the agent should request top-ups) or with the JWT: ```bash curl -s -X POST https://api.proxies.sx/v1/api-keys -H "Authorization: Bearer $JWT" -H 'Content-Type: application/json' \ -d '{"name":"agent","scopes":["account:read","account:write","traffic:read","billing:read","ports:read"]}' ``` Verify: `{"apiKey":"psx_...","keyInfo":{...}}`; the key is shown once. A key cannot create keys. 4. **Top up the balance** (needs the user's yes on the amount): https://agents.proxies.sx/quickstart/topup.md, or the dashboard https://client.proxies.sx/billing. Verify: `curl -s https://api.proxies.sx/v1/account/summary -H "X-API-Key: $KEY"` shows the new `balance`. 5. **Buy GB** in the dashboard at https://client.proxies.sx/purchase (a customer API key cannot; a dashboard JWT can: `POST /v1/billing/purchase-traffic {"amount": 50}`). Preview first: ```bash curl -s 'https://api.proxies.sx/v1/billing/calculate-price?amount=50' -H "X-API-Key: $KEY" # -> {"pricePerGB":3.2,"totalPrice":160,"discountPercent":20,...} ($4/GB base; 10/20/30/40% off at 25/50/100/250 GB, so $2.40/GB at 250 GB+) ``` Verify: `GET /v1/account/summary` shows `trafficGB.available` above 0. 6. **Set the proxy password** (required; the gateway never accepts the account login password). ```bash curl -s -X PATCH https://api.proxies.sx/v1/account/proxy-password -H "X-API-Key: $KEY" -H 'Content-Type: application/json' \ -d '{"proxyPassword":"myProxyPass123"}' ``` Verify: `{"proxyUsername":"psx_",...}`. 7. **Connect.** Country, pool and rotation live in the username; stock per country is public: ```bash curl -s https://api.proxies.sx/v1/gateway/credentials -H "X-API-Key: $KEY" # ready proxy URLs curl -s https://api.proxies.sx/v1/gateway/pool/stock | jq '.pools.peer.us' # counts only, never IPs curl -s -x "http://psx_-peer-us-rot-sticky-sid-job0001:myProxyPass123@gw.proxies.sx:7000" https://api.ipify.org ``` Verify: an IP `x.x.x.x` comes back (HTTP 200). A `407 E_BALANCE_EXHAUSTED: ...` means no GB left; `407 E_AUTH_INVALID` means the proxy password is wrong; `502 E_NO_STOCK_COUNTRY` means pick another country. All codes: https://agents.proxies.sx/errors.md While country tiers are live (`pricing.live` in the stock response) a GB of traffic uses 1.00 / 0.375 / 0.1875 GB of balance by exit country; check `GET /v1/account/usage?period=7d` after the first run. Volume from 1 TB on the peer pool is quoted by maya@proxies.sx (from $0.50/GB), not bought at checkout.