Prerequisites
- Your API key for the Proxy Resellers API
- cURL or any HTTP client (like Postman)
Step 1: Verify Your API Key
First, let’s check if your API key is working:Step 2: Create a New Account
Let’s create a new reseller account:Step 3: Retrieve Account Details
Now, let’s fetch the details of the account we just created:Step 4: Monitor Usage Across Your Accounts
To track how much traffic your sub-accounts have used, list your accounts:used_bytes- cumulative traffic used by that account, in byteslimit- the traffic allocated to itlimit_reached- whether it has hit that allocation
GET /accounts/{account_id}/usage is only needed when you want usage for a specific
time range (via the from and to parameters, Unix timestamps in seconds). Calling it
once per sub-account in a loop is much slower for you and puts significantly more load on
the API than a single call to /accounts.