Skip to main content

Get blacklisted emails

Retrieve a paginated list of all blacklisted emails for the authenticated account. 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/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: 500
email_filterNoComma-separated emails to check against the list. Use * as a wildcard - jimothy@woodpecker* will match jimothy@woodpecker.co and jimothy@woodpeckers.tld
info

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

Request sample

Retrieve first 500 emails

curl --request GET \
--url "https://api.woodpecker.co/rest/v2/blacklist/emails?page=0&per_page=500" \
--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": 5
}

Body schema

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