Platform integration overview
The REST API prepares proxy access; it does not carry proxy traffic. Your backend creates identities, buys or assigns data, generates credentials and reads usage. Your customer’s application then connects to the HTTP/SOCKS gateway with those proxy credentials.
Choose how you fund access
Section titled “Choose how you fund access”| Decision | Independent purchased data | Shared-pool quota |
|---|---|---|
| What funds access? | A paid package invoice for the recipient | A parent root order already holding purchased data |
| What does the write do? | Buys data and creates/updates an order and ledger | Increases a child’s allowed consumption from the parent pool |
| Main operation | POST /invoices | POST /users/{id}/data/add |
| Who can record external payment? | Only a superuser can create status=paid | A normal reseller cannot mark an invoice paid |
| What must be monitored? | Usable purchased data and deadlines | Child remaining quota and parent usable data |
Read how purchases and traffic fit together before choosing. A managed user can have its own purchased order; account hierarchy does not force shared accounting. Do not provision both models for the same user/package pair as if they were interchangeable.
If you only need your own proxy account
Section titled “If you only need your own proxy account”Read your profile, select a package, buy it through checkout or wallet, and verify your order. Then generate credentials and make a gateway request. You do not need sub-users to use your own account.
Keep the boundaries explicit
Section titled “Keep the boundaries explicit”Your checkout and customer records ↓ authenticated REST requestsProxyRequest users → invoices/orders → purchased ledgers or child quotas ↓ generated proxy credentialsYour customer's HTTP/SOCKS client → proxy gateway → destination ↓ accounted trafficOrder balances + analytics + signed accounting webhooksJWTs and API keys go to the API hostname. Proxy usernames/passwords go to gateway ports. A webhook signing secret verifies an inbound notification; it cannot authenticate either kind of request.
Build one complete lifecycle first
Section titled “Build one complete lifecycle first”- Identify the actor, deployment mode, package and accounting model.
- Store local-to-platform user/package mappings.
- Create the purchase or quota and save the returned resource IDs.
- Verify the resulting order, generate credentials and send a real request.
- Check usage and balances after accounting updates arrive.
- Implement retries, depletion, expiration, renewal and cancellation before launching to customers.
Continue by task
Section titled “Continue by task”- API fundamentals: hosts, authentication, pagination, roles and units.
- Reliable requests: prevent duplicate grants and lost updates.
- Users and quotas: add, subtract, recover and remove access.
- Ledger lifecycle: top-ups, independent deadlines and usable balances.
- Account security: login/MFA, keys, proxy passwords and Telegram.
- Analytics and webhooks: display and reconcile usage.
- Complete operation map: every endpoint linked to a workflow and reference.