Skip to main content

Blacklist domains

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

Request

Endpoint

POST https://api.woodpecker.co/rest/v2/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

info

You can add up to 500 domains per request.

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

Request sample

Blacklist a list of domains

curl --request POST \
--url "https://api.woodpecker.co/rest/v2/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

Returns a list of successfully blacklisted domains, including those newly added and those already blacklisted.

{
"domains": [
"baddomain.com",
"blacklistedomain.io",
"nomoreemails.co"
]
}

Body schema

FieldTypeDescription
domainsarray[string]List of blacklisted domains