inboxes
Inboxes (an inbox id is its email address). The `machinemail inboxes` commands: arguments, flags, examples and the API routes they call.
Inboxes (an inbox id is its email address). Also spelled inbox.
| Command | Summary |
|---|---|
inboxes availability | Check inbox availability |
inboxes create | Create inbox |
inboxes delete | Delete inbox |
inboxes export | Export inbox |
inboxes get | Get inbox |
inboxes list | List inboxes |
inboxes new | Create an inbox and print its address (pipe-friendly) |
inboxes search | Search inboxes |
inboxes update | Update inbox |
Every command also takes the global flags.
inboxes availability
Check inbox availability.
Whether username@domain can be created by this organization now. Never a 4xx for a bad name: reason says why it is not available.
Requires the inbox_read permission.
Flags
--pod <pod-id>string--username <value>string--domain <domain>stringExamples
API
inboxes create
Create inbox.
—ephemeral without —ttl-seconds creates an inbox with a one hour TTL (3600 seconds).
An organization can have at most 1000 inboxes on the shared domain (deployment setting); past that the API returns 403. Inbox-scoped credentials cannot create inboxes (403).
Requires the inbox_create permission.
Flags
--pod <pod-id>string--username <value>string--domain <domain>string--display-name <value>string--client-id <id>string--statusactive | paused--metadata <json>JSON--ephemeralboolean--ttl-seconds <n>integer | null-d, --data <json|@file|->stringExamples
API
POST /v0/inboxesPOST /v0/pods/{pod_id}/inboxeswith--pod
inboxes delete
Delete inbox.
Also: machinemail inboxes rm.
Deletes the inbox with its messages, attachments, threads and drafts. Inbox-scoped credentials cannot delete their own inbox (403).
Requires the inbox_delete permission.
Arguments
<inbox-id>stringRequiredFlags
--pod <pod-id>stringExamples
API
inboxes export
Export inbox.
Every message in the inbox, oldest first, streamed as an attachment named <inbox_id>.<format>.
Requires the message_read permission.
Arguments
<inbox-id>stringRequiredFlags
--pod <pod-id>string--formatmbox | jsonl-o, --output <file|dir|->stringExamples
API
inboxes get
Get inbox.
Requires the inbox_read permission.
Arguments
<inbox-id>stringRequiredFlags
--pod <pod-id>stringExamples
API
inboxes list
List inboxes.
Also: machinemail inboxes ls.
Requires the inbox_read permission.
Flags
--pod <pod-id>string--limit <n>integer--page-token <value>string--ascendingboolean--ephemeralboolean--allbooleanExamples
API
GET /v0/inboxesGET /v0/pods/{pod_id}/inboxeswith--pod
inboxes new
Create an inbox and print its address (pipe-friendly).
Creates an inbox through POST /v0/inboxes. Without —username the address gets a random, hard-to-guess local part. —ephemeral or —ttl makes the inbox delete itself (with its mail) after the TTL, which each inbound message extends; —ephemeral alone means one hour. On a terminal it shows the inbox; piped it prints only the address, or the whole inbox with —json.
Flags
--username <name>string--domain <domain>string--display-name <name>string--ephemeralboolean--ttl <duration>string--pod <pod-id>string--client-id <id>string--metadata <json>JSONExamples
inboxes search
Search inboxes.
Inboxes whose address or display name contains —q (case-insensitive), newest first. Searches the newest 500 inboxes in scope; the response has truncated: true when there were more. Not ranked by relevance.
Requires the inbox_read permission.
Flags
--pod <pod-id>string--q <value>stringRequired--limit <n>integer--page-token <value>string--allbooleanExamples
API
inboxes update
Update inbox.
Fields you omit are unchanged. To pause an inbox, set —status to paused; set it back to active to resume.
Requires the inbox_update permission.
Arguments
<inbox-id>stringRequiredFlags
--pod <pod-id>string--display-name <value>string--statusactive | paused--metadata <json>JSON | null--ttl-seconds <n>integer | null--ephemeralboolean-d, --data <json|@file|->string