Skip to main content

Get blacklisted emails

Retrieve a list of emails blacklisted in your agency. You can use the email_filter parameter to check whether specific emails are included in the blacklist.

Request

Endpoint

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

Headers

x-api-key: {YOUR_API_KEY}

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

Parameters

ParameterRequiredDescription
pageNoRequested results page (0-based)
per_pageNoNumber of records per page. Default: 100, maximum: 1000
email_filterNoComma-separated emails to check against the list
info

Page parameter is 0-based. Use page=0 to retrieve the first one.

Request sample

Retrieve first 1000 emails

curl --request GET \
--url "https://api.woodpecker.co/rest/v2/agency/blacklist/emails?page=0&per_page=1000" \
--header "x-api-key: {YOUR_API_KEY}"

Lookup a list of emails

You can check whether certain emails are listed by using the email_filter parameter. The maximum length of the request URL is 4100 characters.

curl --request GET \
--url "https://api.woodpecker.co/rest/v2/agency/blacklist/emails?email_filter=wrong@baddomain.com,worse@anotherone.com" \
--header "x-api-key: {YOUR_API_KEY}"

Response

Response examples

A list of blacklisted emails

{
"emails": [
"wrong@baddomain.com",
"worse@anotherone.com",
"john@finisheddeal.co.uk",
"drew@nomoreemails.co",
"andrew@notmyicp.design"
],
"total": 350
}

Body schema

FieldTypeDescription
emailsarray[string]List of blacklisted emails
totalintegerTotal number of blacklisted emails, or total number of found emails when using email_filter