Skip to main content

Blacklist domains

Add domains to the agency blacklist. Blacklisting a domain does not immediately change the status of existing prospects. Instead, it prevents all current and future client accounts from contacting prospects associated with that domain. A prospect's status will be updated to BLACKLISTED during campaign processing.

Request

Endpoint

POST https://api.woodpecker.co/rest/v2/agency/blacklist/domains

Headers

x-api-key: {YOUR_API_KEY}
Content-type: application/json

For details on how to authenticate your requests, please see the authentication guide.

Body

The request body is a JSON object with the property domains holding an array of domains.

info

You can add up to 500 domains per request

{
"domains": [
"baddomain.com",
"blacklistedomain.io",
"nomoreemails.co"
]
}
FieldTypeDescription
domainsarray[string]List of blacklisted domains

Request sample

Blacklist a list of domains

curl --request POST \
--url "https://api.woodpecker.co/rest/v2/agency/blacklist/domains" \
--header "x-api-key: {YOUR_API_KEY}" \
--header "Content-Type: application/json" \
--data '{
"domains": [
"baddomain.com",
"blacklistedomain.io",
"nomoreemails.co"
]
}'

Response

Response examples

The requested domains have been blacklisted

Status: 201
Body: none