suppressions.md
title: "suppressions"
description: "Addresses we will not send to. The machinemail suppressions commands: arguments, flags, examples and the API routes they call."
canonical: "https://machinemail.dev/docs/cli/commands/suppressions"
suppressions
Addresses we will not send to. The
machinemail suppressionscommands: arguments, flags, examples and the API routes they call.
Source: https://machinemail.dev/docs/cli/commands/suppressions
Addresses we will not send to. Also spelled suppression.
| Command | Summary |
|---|---|
suppressions create |
Add suppression |
suppressions delete |
Remove suppression |
suppressions get |
Get suppression |
suppressions list |
List suppressions |
Every command also takes the global flags.
suppressions create
Add suppression.
Suppress an address for the whole organization, with --reason "manual". Adding an address that is already suppressed replaces a bounce or manual suppression (its --reason becomes manual); a complaint suppression is returned unchanged. Sends to a suppressed address return 403.
Requires the list_entry_create permission.
machinemail suppressions create [flags]
Flags
| Field | Type | Description | |
|---|---|---|---|
--email <value> |
string |
Address to suppress. | |
--detail <value> |
string |
Note stored as --detail. | |
--reason <value> |
string |
Old name of --detail (it is stored as --detail; the suppression --reason is always manual). Ignored when --detail is set. | |
| `-d, --data <json | @file | ->` | string |
Examples
machinemail suppressions create --email someone@example.com
machinemail suppressions create --data @body.json
API
suppressions delete
Remove suppression.
Also: machinemail suppressions rm.
Allow sending to the address again. Organization-scoped credentials only: pod and inbox credentials get 403. Only bounce and manual suppressions can be removed: a complaint suppression returns 403 (Complaint suppressions can only be removed by MachineMail support; email support@machinemail.dev).
Requires the list_entry_delete permission.
machinemail suppressions delete <email> [flags]
Arguments
| Field | Type | Description | |
|---|---|---|---|
<email> |
string |
required | The suppressed address (URL-encoded). |
Examples
machinemail suppressions delete someone@example.com
API
suppressions get
Get suppression.
Requires the list_entry_read permission.
machinemail suppressions get <email> [flags]
Arguments
| Field | Type | Description | |
|---|---|---|---|
<email> |
string |
required | The suppressed address (URL-encoded). |
Examples
machinemail suppressions get someone@example.com
API
suppressions list
List suppressions.
Also: machinemail suppressions ls.
Every suppressed address in the organization (also for pod and inbox credentials). Addresses are added automatically on permanent bounces and complaints.
Requires the list_entry_read permission.
machinemail suppressions list [flags]
Flags
| Field | Type | Description | |
|---|---|---|---|
--limit <n> |
integer |
Maximum number of items to return. Default 50, maximum 500; larger values are capped. Default: 50. |
|
--page-token <value> |
string |
next_page_token from the previous page. | |
--ascending |
boolean |
Sort oldest first. | |
--all |
boolean |
Follow next_page_token and return every page. |
Examples
machinemail suppressions list
machinemail suppressions list --all --json | jq '.suppressions | length'