Skip to main content

Delete domains from the blacklist

Remove specific domains from the blacklist. Removing a domain from the list doesn't change the status of a prospect if it was previously set to BLACKLISTED.

Request

Endpoint

DELETE https://api.woodpecker.co/rest/v2/blacklist/domains

Headers

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

Body

The request body is a JSON object with the property domains whose value is an array of domains to remove.

info

You can remove 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 were deleted successfully if they were listed.

Status: 200
Body: none