Domains
Check availability
Check up to 50 names at once: can you buy each one, and at what price. Nothing is bought.
https://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_; the answer is still 200.
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
Body
domainsstring[]required1 to 50 items1 to 50 full names to check, like
demo-domain-1.. 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 hascom reason: invalid_.name
Response (200)
dataobject[]requiredOne row per name (each name once), in the order you sent them. All of them in one reply.
ShowHide child fields
domainstringrequiredThe name, lower case.
availablebooleanrequiredtrue= you can buy it now withPOST /domain-purchases.pricenumberoptionalFirst-year price for this workspace. Only when
availableistrue.renewal_pricenumberoptionalPrice of each year after the first. Only when
availableistrue.reasonenumoptionalOnly when
availableisfalse:taken= registered by someone,premium= sold only at a premium price, which we don't offer through the API,in_= already used in ScaledMail (by any workspace, the pre-warmed inventory or an open domain swap),use unsupported_= we don't sell this ending,tld invalid_= not a domain name,name check_= 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).failed nullwhen available.One of:
takenpremiumin_useunsupported_tldinvalid_namecheck_failedblacklistsstring[]requiredBlacklists 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.
domainsis empty or has more than 50 names. - 400Invalid input.
domainsis not a list of text, or an entry is longer than 253 characters (validation_, every problem infailed errors). Alsoworkspace_when therequired Workspaceheader 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_, 403 workspace_. See Errors.
