Domains

Check availability

Check up to 50 names at once: can you buy each one, and at what price. Nothing is bought.

POSThttps://api.scaledmail.com/v2/domains/availability
Rate limit
Read: 300 calls per minute per token

Each name counts toward 60 domain checks per minute.

A name the registrar could not check has reason: check_failed; the answer is still 200.

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

  • domainsstring[]required1 to 50 items

    1 to 50 full names to check, like demo-domain-1.com. Case and surrounding spaces are ignored; a name sent twice is checked once. A name that is not a domain is not refused: its row has reason: invalid_name.

Response (200)

  • dataobject[]required

    One row per name (each name once), in the order you sent them. All of them in one reply.

    Show child fields
    • domainstringrequired

      The name, lower case.

    • availablebooleanrequired

      true = you can buy it now with POST /domain-purchases.

    • pricenumberoptional

      First-year price for this workspace. Only when available is true.

    • renewal_pricenumberoptional

      Price of each year after the first. Only when available is true.

    • reasonenumoptional

      Only when available is false: taken = registered by someone, premium = sold only at a premium price, which we don't offer through the API, in_use = already used in ScaledMail (by any workspace, the pre-warmed inventory or an open domain swap), unsupported_tld = we don't sell this ending, invalid_name = not a domain name, check_failed = could not be checked right now: no domain provider answered for this name (try again in a minute; the other names still get their answer). null when available.

      One of: taken premium in_use unsupported_tld invalid_name check_failed

    • blacklistsstring[]required

      Blacklists the name is on. Empty = none found. Always empty when not available.

Responses

  • 200OK. Every name was looked at. A name that could not be checked has reason: check_failed.
  • 400Too many names. domains is empty or has more than 50 names.
  • 400Invalid input. domains is not a list of text, or an entry is longer than 253 characters (validation_failed, every problem in errors). Also workspace_required when the Workspace header is missing.
  • 403Not allowed. The token can't use the workspace in Workspace (workspace_not_allowed).
  • 403Role not allowed. The person who made the token is not an owner or admin of this workspace (only they can check domains).
  • 429Too many checks. More than 60 domain checks in a minute by the person who made the token (counted across the app and the API), or more than 300 read calls in a minute with this token.

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