nextmail addresses
Every command in this namespace, with its arguments, flags and examples.
Commands
Which addresses and domains the key may send from.
Every command here also takes the global flags, such as --json, --profile and --dry-run. See the global flags
nextmail addresses list
List the addresses and domains this key may send as
lsUsage
nextmail addresses list [flags]
Answers the question behind an unexplained 403 from_address_forbidden: which addresses this key may put in from. It returns one page of the addresses the key reaches, alphabetically, as the address list of the app shows them, each with a canSend verdict for this key and the role the key reaches it with, plus the domains themselves.
unrestricted is true when the key is narrowed by nothing, in which case the API accepts any local-part on the workspace's domains, including ones nobody has created, and every address created on them is listed. A key can be narrowed by whole domains, by individual addresses, or by both, and any of those makes unrestricted false. A narrowed key lists only what it covers: the addresses on the whole domains it holds and the addresses on its address list, and domains holds only those whole domains and the domains of the addresses on its list. An address it does not cover is left out, not listed with canSend false.
role is owner on every address when the key acts for the workspace owner, as an API key always does. An app a member connected reads member where the member may read the address and send from it, through the address itself, its whole domain or a role that reaches every address, and viewer where they may only read it, so canSend is false there.
The SDK reshapes the wire envelope: the server's data array arrives as addresses, so the result is a single object rather than a list.
Add --all to walk every page: a table on a terminal, one JSON object per line when piped or with --ndjson, and one JSON document with --json, shaped as Returns describes. --max <n> stops after that many items.
Flags
--limit <n>Page size, from 1 to 100. The server defaults to 25.
Default25--cursor <value>The
nextCursorof the previous page. Leave it out for the first page.--allFetch every page and stream the items as they arrive.
--max <n>Stop after this many items. Implies
--all.--ndjsonPrint every item as one JSON object per line. Implies
--all
Examples
nextmail addresses listnextmail addresses list --limit 100nextmail addresses list --all --max 100nextmail addresses list --all > addresses.ndjsonAlso available in
- API
GET /addresses- TypeScript
addresses.list()- Python
addresses.list()- Ruby
addresses.list- PHP
addresses->list- Go
Addresses.List- Java
addresses().list- C#
Addresses.ListAsync