Skip to navigation

List rejection blacklist entries

Retrieves your email rejection denylist. You can provide an email address to limit the results. Returns up to 1000 results. By default, entries that have expired are excluded from the results; set include_expired to true to include them.

Request

This endpoint expects an object.
keystringRequired
A valid Mandrill API key
emailstringOptional
An optional email address to search by
include_expiredbooleanOptional
Whether to include rejections that have already expired
subaccountstringOptional<=255 characters
An optional unique identifier for the subaccount to limit the blacklist

Response

Success
emailstringformat: "email"
The email that is blocked
reasonenum
The type of event that caused this rejection
Allowed values:
detailstring or null

Extended details about the event, such as the SMTP diagnostic for bounces or the comment for manually-created rejections, or null if none was recorded

created_atstringformat: "^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}$"
When the email was added to the blocklist
last_event_atstringformat: "^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}$"
The timestamp of the most recent event that either created or renewed this rejection
expires_atstring or nullformat: "^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}$"

When the blocklist entry will expire (this may be in the past)

expiredboolean
Whether the blocklist entry has expired
senderobject or nullOptional
The sender that this blocklist entry applies to, or null if none
subaccountstring or nullOptional
The subaccount that this denylist entry applies to, or null if none

Errors

401
Unauthorized Error
404
Not Found Error
429
Too Many Requests Error
500
Internal Server Error