Skip to main content

Blacklist domains

Add domains to the blacklist. Blacklisting a domain doesn't change the status of prospects instantly - it happens while processing the prospect in a campaign.

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

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/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 domains array will return the domains that were successfully blacklisted in this request. Domains that were not added, for example because they were already blacklisted or were of incorrect format, will not be returned.

{
"domains": [
"baddomain.com",
"blacklistedomain.io",
"nomoreemails.co"
],
"status": {
"status": "OK",
"code": "OK",
"msg": "Domains were added to blacklist successfully."
}
}

Body schema

FieldTypeDescription
domainsarray[string]List of blacklisted domains
statusObjectStatus details of the request
└─ statusStringGeneral status indicator of request
└─ codeStringCode representing the status of the request
└─ msgStringMessage providing additional information about the outcome.