Skip to main content
POST
/
zone
/
whitelist
cURL
curl --request POST \
  --url https://api.brightdata.com/zone/whitelist \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "zone": "<string>",
  "ip": "<string>"
}'
Warning: This API can modify your account settings, damage your operations or incur charges.
Paste your API key to the authorization field. To get an API key, Create an account and learn how to generate an API key

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
ip
required

string or array of strings

Single IP, IP Array, IP range, IP subnet or IP mask

Example

  • Single IP: 10.20.30.40

  • IP Array: ["10.20.30.40", "50.60.70.80",...]

  • Range: 10.20.30.40-10.20.30.50

  • Subnet: 10.20.30.0/24

  • Netmask: 10.20.30.0/255.255.252.0

Note IP array syntax requires quotes " for each IP string in array

zone
string

Zone name. Can be skipped to affect all your zones

Response

201

OK