POST
/
zone
/
domain_perm
curl --request POST \
  --url https://api.brightdata.com/zone/domain_perm \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "zone": "<string>",
  "type": "whitelist",
  "domain": "<string>"
}'

Paste your API token to the authorization field. To get a token, Create an account and learn how to generate a token

Authorizations

Authorization
string
headerrequired

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

Body

application/json
zone
string
required

Zone name

type
enum<string>
required

whitelist to whitelist domain(s), blacklist to blacklist domain(s)

Available options:
whitelist,
blacklist
domain
string

space separated list of domains