Skip to main content

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:
If successful, you should receive a list of existing accounts or an empty array.

Step 2: Create a New Account

Let’s create a new reseller account:
If successful, you’ll receive a response with the new account’s ID.

Step 3: Retrieve Account Details

Now, let’s fetch the details of the account we just created:
Replace with the ID received in Step 2.

Step 4: Monitor Usage Across Your Accounts

To track how much traffic your sub-accounts have used, list your accounts:
Every account in the response includes:
  • used_bytes - cumulative traffic used by that account, in bytes
  • limit - the traffic allocated to it
  • limit_reached - whether it has hit that allocation
Use this endpoint to monitor usage. One call returns the figures for all of your sub-accounts at once, so you do not need to request each account individually. 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.

Next Steps

You’ve now successfully created and retrieved an account using the Proxy Resellers API! To learn more about available operations, check out our API Reference section.