Skip to main content

Blacklist emails

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

Request

Endpoint

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

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 emails holding an array of emails.

info

You can add up to 500 emails per request

{
"emails": [
"wrong@baddomain.com",
"worse@anotherone.com",
"john@finisheddeal.co.uk",
"drew@nomoreemails.co",
"andrew@notmyicp.design"
]
}
FieldTypeDescription
emailsarray[string]List of blacklisted emails

Request sample

Blacklist a list of emails

curl --request POST \
--url "https://api.woodpecker.co/rest/v2/agency/blacklist/emails" \
--header "x-api-key: {YOUR_API_KEY}" \
--header "Content-Type: application/json" \
--data '{
"emails": [
"wrong@baddomain.com",
"worse@anotherone.com",
"john@finisheddeal.co.uk"
]
}'

Response

Response examples

The requested emails have been blacklisted

Status: 201
Body: none