Mailboxes
List mailboxes
The workspace's mailboxes, newest first. Filter by domain, order, provider or status.
https://api.scaledmail.com/v2/mailboxes- Rate limit
- Read: 300 calls per minute per token
With include=credentials the answer holds passwords. Don't log the answer or store it in plain text.
Headers
AuthorizationstringrequiredBearer <your API token>. Tokens start withsm_.live_ WorkspacestringrequiredThe workspace id to act on (from
GET /workspacesor Settings › API tokens). Required on every call except the/workspacescalls; without it:400workspace_.required
Query parameters
limitintegeroptional1 to 100Items per page. Default 25.
cursorstringoptionalThe
next_from the previous page.cursor domainstringoptionalat most 253 charactersOnly this domain, by name.
subdomainstringoptionalat most 253 charactersOnly mailboxes on this subdomain, by its full name (
mail.).demo-domain-1. com order_idstringoptionalat most 64 charactersOnly mailboxes on this order (
ord_).. . . providerenumoptionalOnly this provider.
One of:
googleoutlooksmtpstatusenumoptionalOnly this status. Left out: every status except
cancelled.One of:
setting_upactivecancellingcancelledincludeenumoptionalcredentials= add the login and password of each mailbox (the token's creator must have a role that may see passwords). Any other value answers400invalid_.value One of:
credentials
Response (200)
dataobject[]requiredShowHide child fields
emailstringrequiredThe full address,
alias@domain. A mailbox is found by its address (GET /mailboxes/:email).first_namestringrequiredSender first name.
last_namestringrequiredSender last name.
domainstringrequiredThe domain name.
subdomainstringoptionalThe subdomain the mailbox is on, e.g.
mail.. Only for mailboxes on a subdomain order; left out when it is on the domain itself.demo-domain-1. com order_idstringrequiredThe order this mailbox is on (
ord_).. . . providerenumrequiredWhere the mailbox is hosted.
One of:
googleoutlooksmtpstatusenumrequiredsetting_= being created.up active= ready to send (an open change request shows on its domain,GET /domains).cancelling= its order is ending.cancelled= gone.One of:
setting_upactivecancellingcancelledcredentialsobjectoptionalOnly with
include=credentialsand a token creator whose role may see passwords. Left out otherwise.ShowHide child fields
usernamestringrequiredThe login, the same as
email.passwordstringrequiredThe password. All mailboxes of a domain share one password. Empty when the domain has no password saved yet.
created_atstringrequiredWhen the mailbox was added, as a date:
YYYY-MM-DD(UTC).
has_morebooleanrequiredtruewhen there is another page.next_cursorstring | nullrequiredPass as
cursorto get the next page.nullon the last page.
Responses
- 200OK. One page of mailboxes. Here with
include=credentials. - 400Invalid input. A filter or
includehas a value not in its list, orlimitis not 1 to 100 (invalid_), orvalue cursoris not from a previous answer of this list (invalid_).cursor paramnames the field. - 403Not allowed. The token can't use the workspace in
Workspace(workspace_).not_ allowed - 403Role can't see passwords.
include=credentialsis sent, but the token creator's role in this workspace may not see mailbox passwords. - 429Rate limited. More than 300 read calls in a minute. Wait for the
Retry-Afterseconds.
Like every call, it can also answer 401 (bad key), 400 workspace_, 403 workspace_. See Errors.
