Domains

List domains

The workspace's domains, newest first: bought, your own and pre-warmed.

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

For a new order, use ?status=unused and pick those with available_for_order: true.

Masking-only domains are in GET /masking-domains.

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.

Query parameters

  • limitintegeroptional1 to 100

    Items per page. Default 25.

  • cursorstringoptional

    The next_cursor from the previous page.

  • statusenumoptional

    Only this status. Left out: every status except cancelled and expired. cancelled lists domains that had mailboxes and whose name is not live again.

    One of: unused setting_up active updating cancelling cancelled expired

  • order_idstringoptionalat most 64 characters

    Only domains on this order (ord_...).

  • tagstringoptionalat most 60 characters

    Only domains on orders with exactly this tag (set with PATCH /orders/:id).

  • sourceenumoptional

    Only domains from this source: purchased (bought through us), own (yours, registered elsewhere) or prewarmed.

    One of: purchased own prewarmed

  • qstringoptionalat most 253 characters

    Only names that contain this text.

Response (200)

  • dataobject[]required
    Show child fields
    • 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).

  • has_morebooleanrequired

    true when there is another page.

  • next_cursorstring | nullrequired

    Pass as cursor to get the next page. null on the last page.

Responses

  • 200OK. One page of domains.
  • 400Invalid value. A filter has a value not in its list, q is longer than 253 characters, or limit is not 1 to 100 (invalid_value); cursor is not from a previous answer of this list (invalid_cursor).
  • 403Not allowed. The token can't use the workspace in Workspace (workspace_not_allowed).
  • 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.