Skip to main content
Suppression list entries can be managed via the suppression list page or the API. To create a suppression list entry for all sub-accounts, use an API key that belongs to the parent account, and set add_to_sub_accounts to true. Otherwise, suppression list entries belong to the account of the API key used to create them.

Create a suppression entry

Set the following before running:
  • MAILCHANNELS_API_KEY — a parent or sub-account API key.
  • RECIPIENT — the email address to suppress.
  • SUPPRESSION_TYPES — optional, a comma-separated list of suppression types to apply. If omitted, the default is non-transactional. If both transactional and non-transactional are included, the recipient will not receive any mail. If only non-transactional is included, the recipient will still receive necessary transactional messages.

List suppression entries

Set MAILCHANNELS_API_KEY before running. The list endpoint also accepts optional recipient, source, created_before, created_after, limit, and offset query parameters for filtering and pagination.

Delete a suppression entry

Set the following before running:
  • MAILCHANNELS_API_KEY — the API key that owns the suppression entry.
  • RECIPIENT — the email address whose suppression entry should be removed.
  • SOURCE — optional, defaults to api. Pass all to delete every entry for the recipient regardless of source.