v1 is deprecated. Please move to API v2 (recommended). v1 keeps working until March 31, 2027, then it stops. See Moving from v1.

Domains

List domains

List the domains on your live orders, with their mailboxes, tag, status, redirect and masking. Newest first, up to 2,000 per page.

GEThttps://server.scaledmail.com/api/v1/domains
Token access
Read
Rate limit
120 read calls per minute per token

Always paged. While next_cursor is not null, call again with &cursor=<next_cursor> to get the next page.

Domains with a cancellation requested are listed (Cancel requested). Cancelled, expired and released domains, masking-only domains and bought domains not on an order are not.

?password=true puts mailbox passwords in the answer. Only ask for them when you need them.

Headers

  • Authorizationstringrequired

    Bearer <your API token>. The token needs Read access.

Query parameters

  • organization_idstringrequired

    Your workspace id (org_...). Must be a workspace this token was made for.

  • limitintegeroptional1 to 2000

    How many domains to return in one call. Default 2000.

  • cursorstringoptional

    To get the next page, send the next_cursor of the previous answer. Leave it out for the first page.

  • passwordstringoptional

    Send true to include mailbox_password. Any other value, or none, leaves passwords out. Every workspace role (owner, admin, member) may see passwords.

Response (200)

  • totalintegerrequired

    How many domains are in this page, not in the workspace.

  • domainsobject[]required

    The domains, newest first.

    Show child fields
    • idstringrequired

      The domain's id (a UUID).

    • domainstringrequired

      The domain name.

    • tagstringrequired

      The tag of this domain's order. Empty when none.

    • redirectstringrequired

      Where the domain redirects to. Empty when none.

    • mailbox_passwordstringoptional

      The password shared by this domain's mailboxes. Only with ?password=true. Empty when it has no live mailbox or can't be read.

    • order_typeenum | nullrequired

      The mailbox provider of the domain's order.

    • payment_idstringrequired

      The order this domain is on (sub_...), as in GET /orders.

    • domain_providerstringrequired

      Where the domain comes from: Scaledmail (bought from us), Pre-Warm Scaledmail, or the registrar you named. Empty when unknown.

    • total_mailboxesintegerrequired

      How many mailboxes are on this domain.

    • mailboxobject[]required

      The domain's mailboxes, by address.

      Show child fields
      • first_namestringrequired

        First name of the sender.

      • last_namestringrequired

        Last name of the sender.

      • aliasstringrequired

        The part before the @. The address is {alias}@{domain}.

    • statusstringrequired

      The domain's status as the app shows it, e.g. Active, New order, In progress, Waiting, Updating, Cancel requested.

    • domain_maskingbooleanrequired

      true when Domain Masking is on for this domain.

    • mask_domainstringrequired

      The domain it is masked to. Empty when none.

    • domain_masking_ipstringrequired

      The masking IP. Empty when none.

    • domain_masking_statusstringrequired

      Status of the domain's redirect or masking setup: Pending, Active, Failed, Cancelling (masking is being removed), or empty when none.

  • next_cursorstring | nullrequired

    Send it as cursor to get the next page. null = no more pages. When the last page is exactly full, the next call answers an empty page with null.

Responses

  • 200OK. One page of domains. Here with ?password=true; without it mailbox_password is left out.
  • 400Invalid paging. limit is not a whole number from 1 to 2000, or cursor is not a next_cursor from a previous answer.
  • 401No token. The Authorization header is missing or not Bearer <token>.
  • 429Busy. Too many large list calls are running at once. Wait for the Retry-After seconds and try again.
  • 429Rate limited. More than 120 read calls in a minute. Wait for the Retry-After seconds.
  • 500Server error. Something went wrong on our side. Try again.