Domains

List masking domains

The workspace's masked domains: pending first, then active.

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

The only list with masking-only domains. Up to 200 per page.

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

  • typeenumoptional

    internal = masking on a domain of this workspace's orders, external = a masking-only domain (or one billed at the external price). Default all.

    One of: all internal external

  • statusenumoptional

    active = the masking works, pending = not set up yet. Default all.

    One of: all active pending

  • qstringoptionalat most 2000 characters

    Search: only domains whose name or primary domain contains the text. Several terms separated by spaces, commas or new lines match any of them (up to 1000 terms).

  • cursorstringoptionalat most 400 characters

    The next_cursor from the previous page. Pages hold up to 200 domains.

Response (200)

  • dataobject[]required
    Show child fields
    • domainstringrequired

      The masked domain, lower case.

    • primary_domainstringrequired

      The domain whose website it shows (empty text if not set yet).

    • typeenumrequired

      internal = a domain of your orders, external = a masking-only domain.

      One of: internal external

    • statusenumrequired

      active = the masking works. pending = still being set up.

      One of: active pending

    • cancelenumoptional

      requested = the domain is leaving or its masking is being taken off. cancelled = the domain was cancelled. Left out = no cancel.

      One of: requested cancelled

    • ipstringoptional

      External domains only: the proxy IP to point the domain's A record at (only once it is assigned). Never on internal domains.

  • 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 masked domains.
  • 400Invalid input. type or status is not in its list, q is longer than 2000 or cursor longer than 400 characters. Also workspace_required when the Workspace header is missing.
  • 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.