Domains
Get domain
Read one domain: its status, order, forwarding (redirect or masking), expiry and auto-renew, and its open change requests.
https://api.scaledmail.com/v2/domains/:domain- Rate limit
- Read: 300 calls per minute per token
If a name was in the workspace more than once, the live one is shown. Masking-only domains are in GET /masking-domains.
Path parameters
domainstringrequiredat most 253 charactersThe domain name, like
demo-domain-1.(case is ignored).com
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
Response (200)
namestringrequiredThe domain name, lower case.
statusenumrequiredunused= yours, not on an order (also a domain you just bought).setting_= on an order, its mailboxes being set up.up active= live.updating= a change request is being carried out.cancelling= its order is ending or it was removed from its order; live untilcancel_.at cancelled/expired= gone.One of:
unusedsetting_upactiveupdatingcancellingcancelledexpiredsourceenumrequiredpurchased= bought from us,own= registered by you elsewhere,prewarmed= bought from the pre-warmed inventory.One of:
purchasedownprewarmedorder_idstringoptionalThe order it is on (
ord_). Only when it is on an order.. . . available_for_orderbooleanrequiredtrue= you can put it in a new order (POST /orders).providerenumoptionalMailbox provider of its order. Only when it is on an order.
One of:
googleoutlooksmtpmailbox_countintegerrequiredMailboxes on this domain. While they are being set up: how many the order gives each domain.
forwardingobjectrequiredWhat visitors of the domain's website see.
ShowHide child fields
typeenumrequiredredirect= visitors are sent tourl.masking= the domain shows the site ofmasking_.target none= no forwarding.One of:
noneredirectmaskingurlstringoptionalOnly with
redirect: where visitors go, likeexample..com/page masking_targetstringoptionalOnly with
masking: the domain whose site is shown.
expires_onstringoptionalDay the registration ends (
YYYY-MM-DD). Only for domains registered through us (not your own).auto_renewbooleanoptionaltrue= we renew the registration beforeexpires_. Only for domains registered through us.on renewal_pricenumberoptionalWhat renewing the registration for one more year costs. Only for domains registered through us.
renewalenumoptionalThe registration's renewal:
renewable,requested(a renewal is paid and being done) orexpired(pastexpires_). Only for domains registered through us.on One of:
renewablerequestedexpiredsubdomainsobject[]optionalThe subdomains this domain's mailboxes are on, in order. Only for domains on a subdomain order; left out when the mailboxes are on the domain itself.
ShowHide child fields
namestringrequiredThe full subdomain name, e.g.
mail..demo-domain-1. com mailbox_countintegerrequiredIts mailboxes (not cancelled).
dns_readybooleanrequiredtrueonce its DNS is set up and it can send.
cancel_atstringoptionalWhen the domain and its mailboxes are removed (
YYYY-MM-DD). Only whilecancelling.created_atstringrequiredWhen the domain was added, as a date:
YYYY-MM-DD(UTC).open_change_requestsstring[]requiredIds (
chg_) of change requests on this domain that are not finished yet.. . .
Responses
- 200OK. The domain.
- 403Not allowed. The token can't use the workspace in
Workspace(workspace_).not_ allowed - 404Not found. No such domain in this workspace. A domain of another workspace looks the same.
- 429Rate limited. More than 300 read calls in a minute with this token. Wait for the
Retry-Afterseconds.
Like every call, it can also answer 401 (bad key), 400 workspace_, 403 workspace_. See Errors.
