Domains

Get domain

Read one domain: its status, order, forwarding (redirect or masking), expiry and auto-renew, and its open change requests.

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

    The domain name, like demo-domain-1.com (case is ignored).

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.

Response (200)

  • namestringrequired

    The domain name, lower case.

  • statusenumrequired

    unused = yours, not on an order (also a domain you just bought). setting_up = on an order, its mailboxes being set up. active = live. updating = a change request is being carried out. cancelling = its order is ending or it was removed from its order; live until cancel_at. cancelled / expired = gone.

    One of: unused setting_up active updating cancelling cancelled expired

  • sourceenumrequired

    purchased = bought from us, own = registered by you elsewhere, prewarmed = bought from the pre-warmed inventory.

    One of: purchased own prewarmed

  • order_idstringoptional

    The order it is on (ord_...). Only when it is on an order.

  • available_for_orderbooleanrequired

    true = you can put it in a new order (POST /orders).

  • providerenumoptional

    Mailbox provider of its order. Only when it is on an order.

    One of: google outlook smtp

  • mailbox_countintegerrequired

    Mailboxes on this domain. While they are being set up: how many the order gives each domain.

  • forwardingobjectrequired

    What visitors of the domain's website see.

    Show child fields
    • typeenumrequired

      redirect = visitors are sent to url. masking = the domain shows the site of masking_target. none = no forwarding.

      One of: none redirect masking

    • urlstringoptional

      Only with redirect: where visitors go, like example.com/page.

    • masking_targetstringoptional

      Only with masking: the domain whose site is shown.

  • expires_onstringoptional

    Day the registration ends (YYYY-MM-DD). Only for domains registered through us (not your own).

  • auto_renewbooleanoptional

    true = we renew the registration before expires_on. Only for domains registered through us.

  • renewal_pricenumberoptional

    What renewing the registration for one more year costs. Only for domains registered through us.

  • renewalenumoptional

    The registration's renewal: renewable, requested (a renewal is paid and being done) or expired (past expires_on). Only for domains registered through us.

    One of: renewable requested expired

  • subdomainsobject[]optional

    The 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.

    Show child fields
    • namestringrequired

      The full subdomain name, e.g. mail.demo-domain-1.com.

    • mailbox_countintegerrequired

      Its mailboxes (not cancelled).

    • dns_readybooleanrequired

      true once its DNS is set up and it can send.

  • cancel_atstringoptional

    When the domain and its mailboxes are removed (YYYY-MM-DD). Only while cancelling.

  • created_atstringrequired

    When the domain was added, as a date: YYYY-MM-DD (UTC).

  • open_change_requestsstring[]required

    Ids (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-After seconds.

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