# Remove source IPs from the allowlist in bulk

Removes the dynamic IP source IP allowlist for the current account in batch by IP.

The white list is written item by item, without rollback to other successful items. Over 100 or invalid external structures reject the whole batch. The example retains the IP only to display the structure, and the actual addition will reject the document address.

All examples are synthesised data and placement credentials, showing only structure. The interface contract does not mean that the target environment is open.

## Interfaces and authentication

`POST /openapi/v1/proxy/whitelist/delete`

(a) Use of HTTPS. The only non-empty api_key Query, accepting only account API tokens.

## Request parameters

| Field | Type | Required field | Default values / Limits | Notes |
| --- | --- | --- | --- | --- |
| api_key | string | Yes, I am. | Query · Only non-empty | Account API tokens stored on a controlled server. The example uses a placeholder. |

### Application/json

| Field | Type | Required field | Default values / Limits | Notes |
| --- | --- | --- | --- | --- |
| ips | string | Yes, I am. | Minimum 1. Maximum 100 | 1–100 of your own allowlisted IP addresses, no existing ones, failed to unify with others' attribution. |

## Example of a request

```bash
curl --request POST \
  "https://api.zzhttp.com/openapi/v1/proxy/whitelist/delete?api_key=${API_KEY}" \
  --header 'Content-Type: application/json' \
  --data '{"ips":["203.0.113.10"]}'
```

Examples of requests:

```json
{
  "ips": [
    "203.0.113.10"
  ]
}
```

## Successful response

The response does not contain internal fields or proxy passwords. HTTP 200 / code 0 is extracted as successful. Whitelist and country catalog code 200 for success. The POST extracts are incorrectly formatted as code/message. The country directory successfully responded without a requestId.

HTTP 200 · JSON: Success or batch results, check the business code at the same time.

| Field | Type | Required field | Default values / Limits | Notes |
| --- | --- | --- | --- | --- |
| code | integer | Yes, I am. | — | Success 200. The whitelist batch fails any for 10431. |
| message | string | Yes, I am. | — | (b) Outcome statement. |
| requestId | string | Yes, I am. | — | Request a tracking ID. |
| data | object | Yes, I am. | — | This interface is business data. |
| data.success_count | integer | Yes, I am. | — | The number of successfully processed rows. |
| data.failed_count | integer | Yes, I am. | — | The number of failed lines. |
| data.failed_items | object | Yes, I am. | — | (a) Details of failure. The successful address is not listed in the response. |
| data.failed_items.ip | string | Yes, I am. | — | Failed address. |
| data.failed_items.code | integer | Yes, I am. | — | This is the numeric error code. |
| data.failed_items.reason | string | Yes, I am. | — | Causes of failure. |

```json
{
  "code": 200,
  "message": "Processing complete",
  "requestId": "demo-request-001",
  "data": {
    "success_count": 1,
    "failed_count": 0,
    "failed_items": []
  }
}
```

HTTP 200 · Partial Failure: Success or batch results, check the business code at the same time.

| Field | Type | Required field | Default values / Limits | Notes |
| --- | --- | --- | --- | --- |
| code | integer | Yes, I am. | — | Success 200. The whitelist batch fails any for 10431. |
| message | string | Yes, I am. | — | (b) Outcome statement. |
| requestId | string | Yes, I am. | — | Request a tracking ID. |
| data | object | Yes, I am. | — | This interface is business data. |
| data.success_count | integer | Yes, I am. | — | The number of successfully processed rows. |
| data.failed_count | integer | Yes, I am. | — | The number of failed lines. |
| data.failed_items | object | Yes, I am. | — | (a) Details of failure. The successful address is not listed in the response. |
| data.failed_items.ip | string | Yes, I am. | — | Failed address. |
| data.failed_items.code | integer | Yes, I am. | — | This is the numeric error code. |
| data.failed_items.reason | string | Yes, I am. | — | Causes of failure. |

```json
{
  "code": 10431,
  "message": "Partial failure",
  "requestId": "demo-request-001",
  "data": {
    "success_count": 0,
    "failed_count": 1,
    "failed_items": [
      {
        "ip": "203.0.113.10",
        "code": 10403,
        "reason": "Invalid parameters or allowlist entry not found"
      }
    ]
  }
}
```

## Errors and Retry

Each token is queued 60 times/minute, and added or deleted 10 times/minute each. 429 Wait for Retry-After. The list of unsuccessful attempts is re-written.

Error code, HTTP status, and error response fields are unified.[Error Codes and Recommendations](/en/developers/errors/error-codes).

html pre.shiki code .sScJk, html code.shiki .sScJk{--shiki-default:#6F42C1;--shiki-dark:#B392F0}html pre.shiki code .sj4cs, html code.shiki .sj4cs{--shiki-default:#005CC5;--shiki-dark:#79B8FF}html pre.shiki code .sZZnC, html code.shiki .sZZnC{--shiki-default:#032F62;--shiki-dark:#9ECBFF}html pre.shiki code .sVt8B, html code.shiki .sVt8B{--shiki-default:#24292E;--shiki-dark:#E1E4E8}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}
