CUSTOMER API DOCUMENTATION
Read plan access and trial balance.
Check whether your automation has proxy access before configuring a pool or starting a workload.
On this page
Read your account and subscription↗
GET
Returns account status, the effective tier, current subscription details and measured trial consumption./api/v1.0/customer/accountAuthorization: Bearer <PS_API_KEY>120 requests / minute / account
The free trial is 1,000,000,000 bytes (1 GB). A paid plan uses its own port/thread allowance; trial counters remain available as account history.
application/json
Example response
{
"account": {
"id": 7,
"email": "[email protected]",
"username": "casey",
"role": "customer",
"emailVerified": true,
"status": "ACTIVE",
"createdAt": "2026-10-20T10:00:00+00:00",
"providers": [],
"canEditCredentials": true,
"tier": "premium",
"trial": {
"active": false,
"used": true,
"limitBytes": 1000000000,
"usedBytes": 1000000000,
"requests": 2500
},
"plan": {
"id": "growth",
"autoRenew": true,
"paymentProvider": "stripe",
"amountCents": 6000,
"subscriptionId": "sub_example",
"name": "Growth",
"status": "active",
"concurrency": 500,
"ports": 500,
"billingPeriod": "monthly",
"expiresAt": "2026-11-24T10:00:00+00:00"
}
}
}request.pyPython
Before you run
Python 3.10+ · pip install requests · Set PS_API_KEY in your environment.import os
import requests
base = os.getenv("PS_API_BASE_URL", "https://proxysight.com/api/v1.0").rstrip("/")
key = os.environ["PS_API_KEY"]
response = requests.request(
"GET",
f"{base}/customer/account",
headers={"Authorization": f"Bearer {key}"},
timeout=30,
)
response.raise_for_status()
print(response.json())
Response fields 4 fields +
| Field | Meaning |
|---|---|
account.tierstring | premium for a current paid plan, otherwise trial while the free allowance remains, otherwise user. |
account.planobject | Plan name/status, ports, concurrency, billing period, amountCents, renewal preference and expiresAt. |
account.trialobject | active, used, limitBytes, usedBytes and requests. Remaining trial bytes are max(0, limitBytes − usedBytes). |
account.emailVerified / statusboolean / string | Account verification and availability. The key must belong to an active verified account. |
Errors & recovery 3 cases +
| HTTP | What happened | What to do |
|---|---|---|
401 | The API key is missing, revoked, or its account is unavailable. | Use the current Bearer key from Settings → API key. |
429 | The account request limit was reached. | Wait for the Retry-After header before retrying. |
500 | The request could not be completed. | Retry reads with backoff. After a write, read the saved state before sending it again. |
Use the fields to decide what happens next↗
| Response | Your application can |
|---|---|
| tier: premium | Use the paid allowance while the plan is active and expiresAt is in the future. |
| tier: trial; trial.active: true | Start using the trial while usedBytes remains below limitBytes. |
| tier: user | Show a choose-plan action; configuration writes and export will be denied. |
| plan.autoRenew: false with current paid access | Continue through the paid-through date; renewal is not scheduled. |
Keep billing actions in the dashboard↗
Purchase, payment details, cancellation and upgrade quotes are handled in the dashboard. The customer API reads the resulting plan; it does not create charges or change renewal settings.
Common questions
Is plan.status alone enough to decide access?
Use the effective tier and saved proxy access response, and check plan expiry. A stored plan name or past subscription does not by itself grant current proxy access.
Need help with this guide?Send us your question