CUSTOMER API DOCUMENTATION
Manage authorized source IPs.
Authorize the public IPv4 address your application connects from. Generate IP-authenticated endpoints after adding it.
On this page
Read the source IP allowlist↗
/api/v1.0/customer/proxies/whitelistAuthorization: Bearer <PS_API_KEY>120 requests / minute / account
{
"whitelist": [
"YOUR_PUBLIC_IPV4"
],
"limit": 5,
"authentication": "ip"
}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/proxies/whitelist",
headers={"Authorization": f"Bearer {key}"},
timeout=30,
)
response.raise_for_status()
print(response.json())
Response fields 3 fields +
| Field | Meaning |
|---|---|
whiteliststring[] | Your authorized outbound public IPv4 addresses. |
limitinteger | Maximum stored source addresses: 5. |
authenticationstring | The saved proxy authentication mode: ip or credentials. |
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. |
Authorize one source IPv4↗
/api/v1.0/customer/proxies/whitelistAuthorization: Bearer <PS_API_KEY>120 / minute overall · allowlist changes: 15 / 5 minutes
Add the source address before setting authentication: ip. Adding an address does not itself switch a saved credential-based selection to IP authentication.
{
"gatewayReady": true,
"synced": true,
"access": true,
"allowance": {
"ports": 500,
"threads": 500,
"trial": false
},
"settings": {
"mode": "request",
"protocol": "http",
"authentication": "credentials",
"country": "world",
"count": 2,
"interval": 30
},
"whitelist": [
"YOUR_PUBLIC_IPV4"
],
"credentials": {
"username": "ps_user_7_example",
"password": "your-proxy-password"
},
"endpoints": [
{
"id": 1,
"host": "192.0.2.10",
"port": 40300,
"country": "world",
"pool": "world",
"mode": "request",
"interval": 30
},
{
"id": 2,
"host": "192.0.2.11",
"port": 40301,
"country": "world",
"pool": "world",
"mode": "request",
"interval": 30
}
],
"distribution": {
"192.0.2.10": 1,
"192.0.2.11": 1
},
"user": {
"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"
}
}
}JSON request body
{
"ip": "YOUR_PUBLIC_IPV4"
}Python 3.10+ · pip install requests · Set PS_API_KEY in your environment. Set PS_SOURCE_IP to your application’s outbound public IPv4.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(
"POST",
f"{base}/customer/proxies/whitelist",
headers={"Authorization": f"Bearer {key}"},
json={"ip": os.environ["PS_SOURCE_IP"]},
timeout=120,
)
response.raise_for_status()
print(response.json())
Request parameters 1 inputs +
| Parameter | Where | Value |
|---|---|---|
ipstring · required | body | Your application/server’s public outbound IPv4. Replace YOUR_PUBLIC_IPV4 before running; no port or CIDR suffix. |
Response fields 7 fields +
| Field | Meaning |
|---|---|
access / allowanceboolean / object | null | Whether the account can use proxies, with its ports, threads and trial flag. |
gatewayReady / syncedboolean | Gateway access is configured and the saved settings have reached all three gateways. |
settingsobject | null | The active mode, protocol, authentication, location, count and interval. |
credentialsobject | Separate proxy username and password. These are private and are not your API key. |
endpoints[]array | Gateway host/port entries to use in your client. They are not a list of dedicated exit IPs. |
distributionobject | How many returned endpoints belong to each gateway host. |
whitelist / userarray / object | Authorized source addresses and the public account/plan summary. |
Errors & recovery 7 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. |
403 | No active trial or paid proxy access. | Read /customer/account and activate a plan if needed. |
409 | Another account configuration update is still running. | Wait, then read /customer/proxies before changing it again. |
422 | A setting, source IP, inventory selection or count is invalid. | Use the returned field error and the location capacity response. |
503 | Gateway synchronization could not finish. | The desired settings are retained. Read the saved state before retrying. |
Remove one source IPv4↗
/api/v1.0/customer/proxies/whitelistAuthorization: Bearer <PS_API_KEY>120 / minute overall · allowlist changes: 15 / 5 minutes
Whitelisted source IPs and username/password credentials work independently. Removing the last source IP leaves existing credentials active. If your list format is IP authentication, add an authorized IP or select username/password before exporting that list.
{
"gatewayReady": true,
"synced": true,
"access": true,
"allowance": {
"ports": 500,
"threads": 500,
"trial": false
},
"settings": {
"mode": "request",
"protocol": "http",
"authentication": "credentials",
"country": "world",
"count": 2,
"interval": 30
},
"whitelist": [],
"credentials": {
"username": "ps_user_7_example",
"password": "your-proxy-password"
},
"endpoints": [
{
"id": 1,
"host": "192.0.2.10",
"port": 40300,
"country": "world",
"pool": "world",
"mode": "request",
"interval": 30
},
{
"id": 2,
"host": "192.0.2.11",
"port": 40301,
"country": "world",
"pool": "world",
"mode": "request",
"interval": 30
}
],
"distribution": {
"192.0.2.10": 1,
"192.0.2.11": 1
},
"user": {
"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"
}
}
}JSON request body
{
"ip": "YOUR_PUBLIC_IPV4"
}Python 3.10+ · pip install requests · Set PS_API_KEY in your environment. Set PS_SOURCE_IP to your application’s outbound public IPv4.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(
"DELETE",
f"{base}/customer/proxies/whitelist",
headers={"Authorization": f"Bearer {key}"},
json={"ip": os.environ["PS_SOURCE_IP"]},
timeout=120,
)
response.raise_for_status()
print(response.json())
Request parameters 1 inputs +
| Parameter | Where | Value |
|---|---|---|
ipstring · required | body | An address already in your allowlist. Replace YOUR_PUBLIC_IPV4 with that address. |
Response fields 7 fields +
| Field | Meaning |
|---|---|
access / allowanceboolean / object | null | Whether the account can use proxies, with its ports, threads and trial flag. |
gatewayReady / syncedboolean | Gateway access is configured and the saved settings have reached all three gateways. |
settingsobject | null | The active mode, protocol, authentication, location, count and interval. |
credentialsobject | Separate proxy username and password. These are private and are not your API key. |
endpoints[]array | Gateway host/port entries to use in your client. They are not a list of dedicated exit IPs. |
distributionobject | How many returned endpoints belong to each gateway host. |
whitelist / userarray / object | Authorized source addresses and the public account/plan summary. |
Errors & recovery 8 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. |
403 | No active trial or paid proxy access. | Read /customer/account and activate a plan if needed. |
409 | Another account configuration update is still running. | Wait, then read /customer/proxies before changing it again. |
422 | A setting, source IP, inventory selection or count is invalid. | Use the returned field error and the location capacity response. |
503 | Gateway synchronization could not finish. | The desired settings are retained. Read the saved state before retrying. |
404 | The address is not on your allowlist. | Read the allowlist before removing it. |
Use the allowlist for proxy traffic↗
Send the full configuration with authentication: ip, then export the resulting endpoints. The proxy connection uses host:port without embedding a username or password.
Use your outbound public IPv4, not the exit IP you want to receive. Private LAN addresses, IPv6, subnets and addresses belonging to another account are not accepted.
Common questions
Can another account authorize the same source IP?
Source IP ownership is enforced between accounts. A conflicting authorization returns 409; use a source address you control or contact support.