Mailboxes

Suggest aliases

Make sender addresses (jane.doe, janedoe, jdoe ...) from a first and last name. Nothing is saved.

POSThttps://api.scaledmail.com/v2/alias-suggestions
Rate limit
Read: 300 calls per minute per token

Accents are made plain: Zoë O'Neil gives zoe.oneil.

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.

Body

  • first_namestringrequired1 to 64 characters

    First name, 1 to 64 characters: letters (accents are fine), spaces, ', . and -.

  • last_namestringrequired1 to 64 characters

    Last name, same rules as first_name.

  • domainstringoptionalat most 253 characters

    A domain name, up to 253 characters (made lower case). Addresses already used by this workspace's mailboxes on it are skipped. Gives full addresses in email. It is not checked to be one of your domains.

  • countintegeroptional1 to 100

    How many aliases you want. Default 10.

Response (200)

  • dataobject[]required

    The aliases, always in the same order for the same name.

    Show child fields
    • aliasstringrequired

      The part before the @, lower case: only a-z, 0-9, ., _ and -.

    • emailstringoptional

      alias@domain. Only when you sent a domain.

Responses

  • 200OK. The first 3 aliases that no mailbox on demo-domain-1.com uses yet.
  • 400Invalid input. A name is missing, empty, too long or has characters other than letters, spaces, ', . and -, or count is not 1 to 100. Every problem is listed in errors (each with code invalid). If no alias can be made from the names: validation_failed with param first_name.
  • 403Not allowed. The token can't use the workspace in Workspace (workspace_not_allowed).
  • 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.