If you send both, the reseller key is used.
cURL
x-reseller-key is not the same header as the residential usage API, which uses x-api-key. The reseller key only works for your reseller account and its pool.
Since the dashboard token also works, a logged-in user with reseller access doesn’t need an API key. The key is for integrations that run without someone logged in.
Keeping Your Key Safe
Your key is shown once, when it is created. We only store a hash of it, so nobody can look it up later, including support.Checking Your Access
GET /reseller/self
Use your dashboard token here, not the reseller key. It tells you whether the logged-in user has reseller access.cURL
Response
Rotating Your Key
POST /reseller/self/rotate-key
This also uses your dashboard token, so it works even if you lost the key. The new key is returned once, in the response.cURL
You can also rotate the key in your dashboard under Reseller → Rotate key.
Rotation takes effect immediately:
- The old key stops working as soon as the new one is created. There is no grace period.
- The new key is shown once, like the first one.
- Anything still using the old key starts failing with
401 Invalid reseller API key.
Rotating your key doesn’t affect your sub-users or proxy allocations. Their credentials keep working.
Suspension
A suspended reseller account (isActive: false) gets 401 on every reseller endpoint. Existing sub-users keep working until their data runs out, so your customers aren’t cut off right away.
Troubleshooting
See Error Handling for all errors.