Domains
List masking domains
The workspace's masked domains: pending first, then active.
https://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
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
Query parameters
typeenumoptionalinternal= masking on a domain of this workspace's orders,external= a masking-only domain (or one billed at the external price). Defaultall.One of:
allinternalexternalstatusenumoptionalactive= the masking works,pending= not set up yet. Defaultall.One of:
allactivependingqstringoptionalat most 2000 charactersSearch: 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 charactersThe
next_from the previous page. Pages hold up to 200 domains.cursor
Response (200)
dataobject[]requiredShowHide child fields
domainstringrequiredThe masked domain, lower case.
primary_domainstringrequiredThe domain whose website it shows (empty text if not set yet).
typeenumrequiredinternal= a domain of your orders,external= a masking-only domain.One of:
internalexternalstatusenumrequiredactive= the masking works.pending= still being set up.One of:
activependingcancelenumoptionalrequested= the domain is leaving or its masking is being taken off.cancelled= the domain was cancelled. Left out = no cancel.One of:
requestedcancelledipstringoptionalExternal domains only: the proxy IP to point the domain's A record at (only once it is assigned). Never on internal domains.
has_morebooleanrequiredtruewhen there is another page.next_cursorstring | nullrequiredPass as
cursorto get the next page.nullon the last page.
Responses
- 200OK. One page of masked domains.
- 400Invalid input.
typeorstatusis not in its list,qis longer than 2000 orcursorlonger than 400 characters. Alsoworkspace_when therequired Workspaceheader 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-Afterseconds.
Like every call, it can also answer 401 (bad key), 400 workspace_, 403 workspace_. See Errors.
