List SMS denylist
Retrieves your SMS rejection denylist. You can provide a phone number 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.
key
A valid Mandrill API key
phone
An optional phone number to search by in E.164 format
include_expired
Whether to include rejections that have already expired
subaccount
An optional unique identifier for the subaccount to limit the denylist
Response
Success
phone
The phone number on the denylist
created_at
The date and time that the entry was created
expired
Whether the entry has expired
expires_at
The date and time that the entry expires
subaccount
The subaccount that the entry belongs to
Errors
401
Unauthorized Error
422
Unprocessable Entity Error
429
Too Many Requests Error
500
Internal Server Error