CLI: Inboxes
The commands of the doorman command line under Inboxes. Addresses on the inbox domain: issue, read, rename and delete them.
doorman inboxes list
doorman inboxes list [flags]Sends inboxes.list: GET /v1/inboxes
List inboxes. Access any: any API key, or a console session. An app token needs inboxes:read.
Flags
--qstringoptionalKeep the inboxes whose address or display name contains this text, case-insensitively.
--external-idstringoptionalKeep the inbox with exactly this
externalId: at most one, since it is unique among the account's active inboxes.--limitintegeroptionalPage size, 1 to 100. Defaults to 50.
--offsetintegeroptionalRows to skip. Defaults to 0.
doorman inboxes create
doorman inboxes create [flags]Sends inboxes.create: POST /v1/inboxes
Issue an inbox. Access account: an account-scoped key or a console session; an inbox-scoped key gets 403 forbidden. An app token needs inboxes:write.
Flags
--mailbox-namestringoptional3 to 30 lowercase letters, digits, dots or hyphens: the part before the @. Reserved names are refused with 400 validation_error: mail infrastructure (abuse, admin, administrator, api, bounce, bounces, ...), the company's role accounts (support, billing, sales, legal, security, ...), names holding such a role as a dot- or hyphen-separated label (acme-support) however the role is written (support1, supp0rt, no-reply, supportteam), and the doorman and theovex brand with its lookalikes. The full lists are under x-doorman-limits.inboxes.
--display-namestringoptionalThe sender name on outbound mail, at most 100 characters, with at least one letter or digit and no @, <, >, URL, control or invisible characters, no Latin mixed with Cyrillic or Greek, never the doorman or theovex brand, and never a bare role such as Support or Billing team: it says who, not only what.
--external-idstringoptionalYour own identifier for the inbox (a user, a job, a tenant), at most 200 characters and unique among the account's active inboxes. Look an inbox up with
GET /v1/inboxes?externalId=.--metadataobject of string | number | boolean | nulloptionalExtension state: at most 20 keys and 2048 bytes of UTF-8 JSON. Keys are 1 to 64 ASCII letters, digits, underscores, dots, colons or hyphens, starting with a letter or digit. Values are strings, finite numbers, booleans or null. Replaced as a whole; {} clears it. Do not store secrets.
--domain-idstringoptionalOne of this account's verified custom domains. Omit for the shared domain.
--webhook-urlstringoptionalSet the inbox webhook at once: an https URL without credentials. The signing secret is in the answer's
webhook.--keyobjectoptionalMint an inbox-scoped key at once. Its token is in the answer's
key.--jsonobjectoptionalThe request body as one JSON object. A flag given beside it replaces the field of the same name.
doorman inboxes create \
--mailbox-name concierge \
--display-name 'Acme concierge'doorman inboxes get
doorman inboxes get <inboxId> [flags]Sends inboxes.get: GET /v1/inboxes/{inboxId}
Read an inbox. Access any: any API key, or a console session. An app token needs inboxes:read.
Flags
--inbox-idstringoptionalThe same as the argument
<inboxId>, for a script that names everything.
doorman inboxes get inb_01jc4q7w9k2m5n8p3r6t1v4x7zdoorman inboxes update
doorman inboxes update <inboxId> [flags]Sends inboxes.update: PATCH /v1/inboxes/{inboxId}
Update an inbox. Access account: an account-scoped key or a console session; an inbox-scoped key gets 403 forbidden. An app token needs inboxes:write.
Flags
--inbox-idstringoptionalThe same as the argument
<inboxId>, for a script that names everything.--display-namestring | nulloptionalThe new sender name; null or empty clears it.
--signaturestring | nulloptionalThe new signature: plain text of at most 1000 characters, line breaks kept. It is appended to every message the inbox sends from then on, a rule's forward excepted. On the shared domain a signature may not present the sender as the company (the doorman or theovex brand beside a word such as team, support or security): that answers 400 validation_error, for this field and for
signatureHtml. Null or empty clears it.--signature-htmlstring | nulloptionalThe signature as markup, at most 10000 characters: tables, inline styles, links and https images, as a signature builder exports it. It is cleaned before it is stored (scripts, style sheets, forms, frames, event handlers, and images that are not https are removed), and the answer carries what was kept. From then on every message the inbox sends carries it in its HTML part, and a message sent as text alone gains an HTML part for it;
signaturestays the text part's. When it is set on an inbox that has nosignature, and none is given with it, the text is read from the markup. Null or empty clears it.--external-idstring | nulloptionalYour new identifier for the inbox; null clears it.
--metadataobject of string | number | boolean | nulloptionalExtension state: at most 20 keys and 2048 bytes of UTF-8 JSON. Keys are 1 to 64 ASCII letters, digits, underscores, dots, colons or hyphens, starting with a letter or digit. Values are strings, finite numbers, booleans or null. Replaced as a whole; {} clears it. Do not store secrets.
--jsonobjectoptionalThe request body as one JSON object. A flag given beside it replaces the field of the same name.
doorman inboxes update inb_01jc4q7w9k2m5n8p3r6t1v4x7z \
--display-name 'Acme concierge'doorman inboxes delete
doorman inboxes delete <inboxId> [flags]Sends inboxes.delete: DELETE /v1/inboxes/{inboxId}
Delete an inbox. Access account: an account-scoped key or a console session; an inbox-scoped key gets 403 forbidden. An app token needs inboxes:write.
Flags
--inbox-idstringoptionalThe same as the argument
<inboxId>, for a script that names everything.
doorman inboxes delete inb_01jc4q7w9k2m5n8p3r6t1v4x7zdoorman inboxes rules list
doorman inboxes rules list <inboxId> [flags]Sends inboxes.rules.list: GET /v1/inboxes/{inboxId}/rules
List inbound rules. Access account: an account-scoped key or a console session; an inbox-scoped key gets 403 forbidden. An app token needs rules:manage and mail:read and mail:write and mail:send.
Flags
--inbox-idstringoptionalThe same as the argument
<inboxId>, for a script that names everything.
doorman inboxes rules list inb_01jc4q7w9k2m5n8p3r6t1v4x7zdoorman inboxes rules create
doorman inboxes rules create <inboxId> [flags]Sends inboxes.rules.create: POST /v1/inboxes/{inboxId}/rules
Create an inbound rule. Access account: an account-scoped key or a console session; an inbox-scoped key gets 403 forbidden. An app token needs rules:manage and mail:read and mail:write and mail:send.
Flags
--inbox-idstringoptionalThe same as the argument
<inboxId>, for a script that names everything.--namestringrequired--enabledbooleanoptional--whenobjectrequiredAll supplied conditions must match. At least one condition is required.
--then(object | object | object | object)[]requiredExecuted in array order. At most one auto_reply or forward action per rule.
--jsonobjectoptionalThe request body as one JSON object. A flag given beside it replaces the field of the same name.
doorman inboxes rules create inb_01jc4q7w9k2m5n8p3r6t1v4x7z \
--name 'Invoice triage' \
--when '{"category":"personal","subjectContains":"invoice"}' \
--then '[{"type":"label","label":"billing"}]'doorman inboxes rules get
doorman inboxes rules get <inboxId> <ruleId> [flags]Sends inboxes.rules.get: GET /v1/inboxes/{inboxId}/rules/{ruleId}
Read an inbound rule. Access account: an account-scoped key or a console session; an inbox-scoped key gets 403 forbidden. An app token needs rules:manage and mail:read and mail:write and mail:send.
Flags
--inbox-idstringoptionalThe same as the argument
<inboxId>, for a script that names everything.--rule-idstringoptionalThe same as the argument
<ruleId>, for a script that names everything.
doorman inboxes rules get inb_01jc4q7w9k2m5n8p3r6t1v4x7z rul_01jc5f1a2b3c4d5e6f7g8h9j0kdoorman inboxes rules update
doorman inboxes rules update <inboxId> <ruleId> [flags]Sends inboxes.rules.update: PATCH /v1/inboxes/{inboxId}/rules/{ruleId}
Update an inbound rule. Access account: an account-scoped key or a console session; an inbox-scoped key gets 403 forbidden. An app token needs rules:manage and mail:read and mail:write and mail:send.
Flags
--inbox-idstringoptionalThe same as the argument
<inboxId>, for a script that names everything.--rule-idstringoptionalThe same as the argument
<ruleId>, for a script that names everything.--namestringoptional--enabledbooleanoptional--whenobjectoptionalAll supplied conditions must match. At least one condition is required.
--then(object | object | object | object)[]optionalExecuted in array order. At most one auto_reply or forward action per rule.
--jsonobjectoptionalThe request body as one JSON object. A flag given beside it replaces the field of the same name.
doorman inboxes rules update inb_01jc4q7w9k2m5n8p3r6t1v4x7z rul_01jc5f1a2b3c4d5e6f7g8h9j0k \
--enabled falsedoorman inboxes rules delete
doorman inboxes rules delete <inboxId> <ruleId> [flags]Sends inboxes.rules.delete: DELETE /v1/inboxes/{inboxId}/rules/{ruleId}
Delete an inbound rule. Access account: an account-scoped key or a console session; an inbox-scoped key gets 403 forbidden. An app token needs rules:manage and mail:read and mail:write and mail:send.
Flags
--inbox-idstringoptionalThe same as the argument
<inboxId>, for a script that names everything.--rule-idstringoptionalThe same as the argument
<ruleId>, for a script that names everything.
doorman inboxes rules delete inb_01jc4q7w9k2m5n8p3r6t1v4x7z rul_01jc5f1a2b3c4d5e6f7g8h9j0kdoorman inboxes rules runs
doorman inboxes rules runs <inboxId> <ruleId> [flags]Sends inboxes.rules.runs: GET /v1/inboxes/{inboxId}/rules/{ruleId}/runs
List rule executions. Access account: an account-scoped key or a console session; an inbox-scoped key gets 403 forbidden. An app token needs rules:manage and mail:read and mail:write and mail:send.
Flags
--inbox-idstringoptionalThe same as the argument
<inboxId>, for a script that names everything.--rule-idstringoptionalThe same as the argument
<ruleId>, for a script that names everything.--limitintegeroptionalPage size, 1 to 100. Defaults to 50.
--offsetintegeroptionalRows to skip. Defaults to 0.
doorman inboxes rules runs inb_01jc4q7w9k2m5n8p3r6t1v4x7z rul_01jc5f1a2b3c4d5e6f7g8h9j0k
