API For Whitelist
Returns a paginated list of whitelist entries for the authenticated account, with support for sorting and ordering.
Maximum number of items to return per page. Default: 30
Requested page number (1-based). Default: 1
Field to sort by: 'id', 'ip', 'status', 'created_at', 'updated_at', 'description'. Default: id
Sort order: desc or asc. Default: desc
Successful response
Whitelist entries list response payload.
Indicates whether the request was successful.
Human-readable response message.
Bad request
Authentication error
GET /client/v1/white-list/get-list HTTP/1.1
Host: sandbox.9proxy.com
Accept: */*
{
"success": true,
"message": "text",
"result": {
"items": [
{
"id": 1,
"ip": "text",
"status": 1,
"description": "text",
"created_at": 1,
"updated_at": 1
}
],
"total_items": 1,
"total_pages": 1
}
}Creates one or more whitelist entries from the provided list of IP addresses.
List of IP addresses to add to the whitelist.
["127.0.0.1","127.0.0.2","127.0.0.3"]Successful response
Whitelist creation response payload.
Indicates whether the request was successful.
Human-readable response message.
Bad request
Authentication error
POST /client/v1/white-list/create HTTP/1.1
Host: sandbox.9proxy.com
Content-Type: application/json
Accept: */*
Content-Length: 45
{
"ips": [
"127.0.0.1",
"127.0.0.2",
"127.0.0.3"
]
}{
"success": true,
"message": "text",
"result": {
"id": 1,
"ip": "text",
"status": 1,
"description": "text",
"created_at": 1,
"updated_at": 1
}
}Updates one or more whitelist entries by ID, allowing changes to status and description.
List of whitelist entry IDs.
[111,222,333]Description for the whitelist entries.
white list 1Whitelist entry status. 1: enabled, 2: disabled
1Successful response
Whitelist update response payload.
Indicates whether the request was successful.
Human-readable response message.
Bad request
Authentication error
PUT /client/v1/white-list/update HTTP/1.1
Host: sandbox.9proxy.com
Content-Type: application/json
Accept: */*
Content-Length: 61
{
"ids": [
111,
222,
333
],
"description": "white list 1",
"status": 1
}{
"success": true,
"message": "text",
"result": {
"id": 1,
"ip": "text",
"status": 1,
"description": "text",
"created_at": 1,
"updated_at": 1
}
}Deletes one or more whitelist entries by ID.
List of whitelist entry IDs.
[111,222,333]Successful response
Whitelist deletion response payload.
Indicates whether the request was successful.
Human-readable response message.
Bad request
Authentication error
DELETE /client/v1/white-list/delete HTTP/1.1
Host: sandbox.9proxy.com
Content-Type: application/json
Accept: */*
Content-Length: 21
{
"ids": [
111,
222,
333
]
}{
"success": true,
"message": "text",
"result": {
"deleted": true
}
}Last updated
Was this helpful?