Mailboxes

List mailboxes

The workspace's mailboxes, newest first. Filter by domain, order, provider or status.

GEThttps://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

  • 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

  • limitintegeroptional1 to 100

    Items per page. Default 25.

  • cursorstringoptional

    The next_cursor from the previous page.

  • domainstringoptionalat most 253 characters

    Only this domain, by name.

  • subdomainstringoptionalat most 253 characters

    Only mailboxes on this subdomain, by its full name (mail.demo-domain-1.com).

  • order_idstringoptionalat most 64 characters

    Only mailboxes on this order (ord_...).

  • providerenumoptional

    Only this provider.

    One of: google outlook smtp

  • statusenumoptional

    Only this status. Left out: every status except cancelled.

    One of: setting_up active cancelling cancelled

  • 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)

  • dataobject[]required
    Show child fields
    • 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).

  • has_morebooleanrequired

    true when there is another page.

  • next_cursorstring | nullrequired

    Pass as cursor to get the next page. null on the last page.

Responses

  • 200OK. One page of mailboxes. Here with include=credentials.
  • 400Invalid input. A filter or include has a value not in its list, or limit is not 1 to 100 (invalid_value), or cursor is not from a previous answer of this list (invalid_cursor). param names the field.
  • 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.
  • 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.