API

Mail administration

Mail domains, mailboxes, aliases, catch-all addresses and usage.

Every route here needs mail:admin, which owners and admins have. See Mail.

Every route below, with its parameters, request and response, errors and samples, is in the API reference.

RouteWhat it does
GET /v1/orgs/:orgId/mail/domainsThe organization's mail domains with their status, DNS records and which records were found.
POST /v1/orgs/:orgId/mail/domainsAdds a domain for sending and receiving mail: creates its sending identity and returns the DNS records to add. Hostnames under the platform's domain can't be added.
POST /v1/orgs/:orgId/mail/domains/:domain/dkim/rotateA new DKIM key for the domain's mail (platform-generated keys only; the customer's DNS stays).
POST /v1/orgs/:orgId/mail/domains/:domain/verifyChecks the domain's DNS records and verification now.
PATCH /v1/orgs/:orgId/mail/domains/:domainSets or clears the domain's catch-all mailbox, which receives mail to unknown addresses.
DELETE /v1/orgs/:orgId/mail/domains/:domainRemoves a domain and its aliases. Its mailboxes must be deleted first.
GET /v1/orgs/:orgId/mail/membersMembers of the organization, to choose mailbox members from.
GET /v1/orgs/:orgId/mail/admin/mailboxesEvery mailbox of the organization with its members and aliases.
POST /v1/orgs/:orgId/mail/admin/mailboxesCreates a mailbox at one of the organization's domains, with a sender name and members.
PATCH /v1/orgs/:orgId/mail/admin/mailboxes/:mailboxIdChanges a mailbox's sender name or members.
DELETE /v1/orgs/:orgId/mail/admin/mailboxes/:mailboxIdDeletes a mailbox with all of its mail, drafts, labels and aliases.
POST /v1/orgs/:orgId/mail/admin/mailboxes/:mailboxId/aliasesAdds another address, at one of the organization's domains, that delivers to the mailbox.
DELETE /v1/orgs/:orgId/mail/admin/aliases/:addressRemoves an alias.
GET /v1/orgs/:orgId/mail/usageMessages sent, received, bounced and complained about per day, and the organization's sending limits.