Mailboxes

Get mailbox

Read one mailbox by its address. Cancelled mailboxes are found too.

GEThttps://api.scaledmail.com/v2/mailboxes/:email
Rate limit
Read: 300 calls per minute per token

Path parameters

  • emailstringrequiredat most 320 characters

    The mailbox address, like jane@demo-domain-1.com (case is ignored).

Headers

  • Authorizationstringrequired

    Bearer <your API token>. Tokens start with sm_live_.

  • Workspacestringrequired

    The workspace id to act on (from GET /workspaces or Settings › API tokens). Required on every call except the /workspaces calls; without it: 400 workspace_required.

Query parameters

  • includeenumoptional

    credentials = add the login and password of each mailbox (the token's creator must have a role that may see passwords). Any other value answers 400 invalid_value.

    One of: credentials

Response (200)

  • emailstringrequired

    The full address, alias@domain. A mailbox is found by its address (GET /mailboxes/:email).

  • first_namestringrequired

    Sender first name.

  • last_namestringrequired

    Sender last name.

  • domainstringrequired

    The domain name.

  • subdomainstringoptional

    The subdomain the mailbox is on, e.g. mail.demo-domain-1.com. Only for mailboxes on a subdomain order; left out when it is on the domain itself.

  • order_idstringrequired

    The order this mailbox is on (ord_...).

  • providerenumrequired

    Where the mailbox is hosted.

    One of: google outlook smtp

  • statusenumrequired

    setting_up = being created. active = ready to send (an open change request shows on its domain, GET /domains). cancelling = its order is ending. cancelled = gone.

    One of: setting_up active cancelling cancelled

  • credentialsobjectoptional

    Only with include=credentials and a token creator whose role may see passwords. Left out otherwise.

    Show child fields
    • usernamestringrequired

      The login, the same as email.

    • passwordstringrequired

      The password. All mailboxes of a domain share one password. Empty when the domain has no password saved yet.

  • created_atstringrequired

    When the mailbox was added, as a date: YYYY-MM-DD (UTC).

Responses

  • 200OK. The mailbox. Without include=credentials, so no credentials.
  • 400Invalid input. include is not credentials.
  • 403Not allowed. The token can't use the workspace in Workspace (workspace_not_allowed).
  • 403Role can't see passwords. include=credentials is sent, but the token creator's role in this workspace may not see mailbox passwords.
  • 404Not found. No such mailbox in this workspace. A mailbox of another workspace looks the same.
  • 429Rate limited. More than 300 read calls in a minute. Wait for the Retry-After seconds.

Like every call, it can also answer 401 (bad key), 400 workspace_required, 403 workspace_not_allowed. See Errors.