Add source IPs to the allowlist in bulk
Use the Account Token to add up to 100 IPv4 overseas public networks to the account whitelist.
Interfaces and authentication
/openapi/v1/proxy/whitelist/addEntries are written individually and successful entries are not rolled back. Batches over 100 entries or with an invalid outer structure are rejected in full. Reserved IPs are used to illustrate the format and are rejected by the live endpoint.
Use HTTPS and provide one nonempty api_key query parameter containing an account API token.
Examples are synthesis data and placement credentials, which only describe structure. The interface contract does not mean that the target environment is open, and the open status is determined by the console.
Download OpenAPI · Import Apifox / PostmanRequest parameters
| Field | Type | Required field | Default values / Limits | Notes |
|---|---|---|---|---|
api_key | string | Yes, I am. | Query · One nonempty value | Account API token. Keep it on a trusted server. Examples use placeholders. |
Request example · application/json
| Field | Type | Required field | Default values / Limits | Notes |
|---|---|---|---|---|
items | object[] | Yes, I am. | Min items 1; Max items 100 | Entries are processed independently. Provide 1–100 overseas public IPv4 addresses. |
items[].ip | string | Yes, I am. | — | Authorized overseas public IPv4 address. IPv6, private, and reserved addresses are rejected. |
items[].remark | string | No. | Max length 255 | Optional note. |
Example of a request
curl --request POST \
"https://api.zzhttp.com/openapi/v1/proxy/whitelist/add?api_key=${API_KEY}" \
--header 'Content-Type: application/json' \
--data '{"items":[{"ip":"203.0.113.10","remark":"office"}]}'Successful response
Success or a per-item batch result. Check the business code as well as the HTTP status.
Responses omit internal fields and proxy passwords. Extraction succeeds with HTTP 200 and code 0. Allowlist and country catalog requests use code 200 for success. Extraction POST errors use code and message. Successful country catalog responses omit requestId.
| Field | Type | Required field | Default values / Limits | Notes |
|---|---|---|---|---|
code | integer | Yes, I am. | — | Success uses 200. Any item failure in an allowlist batch produces 10431. |
message | string | Yes, I am. | — | Response message. |
requestId | string | Yes, I am. | — | Request ID for troubleshooting. |
data | object | Yes, I am. | — | Response data for this endpoint. |
data.success_count | integer | Yes, I am. | — | Number of successful entries. |
data.failed_count | integer | Yes, I am. | — | Number of failed entries. |
data.failed_items | object[] | Yes, I am. | — | Failure details. Successful addresses are omitted. |
data.failed_items[].ip | string | Yes, I am. | — | Address that failed. |
data.failed_items[].code | integer | Yes, I am. | — | Numeric error code for this entry. |
data.failed_items[].reason | string | Yes, I am. | — | Reason for failure. |
{
"code": 200,
"message": "Processing complete",
"requestId": "demo-request-001",
"data": {
"success_count": 1,
"failed_count": 0,
"failed_items": []
}
}Errors and Retry
Each token can make 60 list requests per minute and 10 add or delete requests per minute for each operation. On HTTP 429, wait as directed by Retry-After. If a write has an unknown outcome, check the allowlist first and retry only failed items.
Error code, HTTP status, error response field and recovery method are unified inError Codes and Recommendations.
Did this answer your question?
Feedback is used only to improve the public documentation and does not submit accounts or request information.