Skip to the page

List domains

The domains of the workspace, newest first, with their status and region.

domains_list
Needs the scopedomains:read
Only reads

Arguments

  • qstring

    Text to search for. Only items that contain it are returned. Up to 40 characters.

  • limitinteger

    How many items to return, from 1 to 100. Without it you get 25.

  • offsetinteger

    How many items to skip. Use it with limit to read the next page. Default: 0.

  • afterstring

    The id of the last item you have. The answer starts with the item that follows it, which reads a long list without skipping or repeating when it changes meanwhile. Up to 64 characters.

  • beforestring

    The id of the first item you have. The answer ends with the item just before it. Give this or after, not both. Up to 64 characters.

  • statusstring

    Only domains in this state: pending, verified or failed.

    One ofpendingverifiedfailed

  • regionstring

    Only domains in this region.

    One ofus-east-1eu-west-1ap-northeast-1

Returns

The answer comes back under structuredContent, with the same JSON as text in content. A call the API refuses comes back with isError set, and the code and the message under structuredContent.error. MCP shows how to connect a client.

  • object"list"

    Always list.

  • dataobject[]

    The items on this page.

  • data[].object"domain"

    Always domain.

  • data[].idstring

    The id of the domain.

  • data[].namestring

    The domain name, such as mail.example.com.

  • data[].statusstring

    Where verification stands: pending until every record is found, verified after that, failed when a record is wrong.

    One ofpendingverifiedfailed

  • data[].regionstring

    The region mail from this domain is sent from.

    One ofus-east-1eu-west-1ap-northeast-1

  • data[].openTrackingboolean

    Whether opens are counted for mail from this domain.

  • data[].clickTrackingboolean

    Whether clicks are counted for mail from this domain.

  • data[].recordsobject[]

    The DNS records to publish, each with whether it was found.

  • data[].records[].idstring

    The id of the record.

  • data[].records[].typestring

    The type of DNS record: MX, TXT or CNAME.

    One ofMXTXTCNAME

  • data[].records[].hoststring

    The name to publish the record under.

  • data[].records[].valuestring

    What the record has to hold.

  • data[].records[].priorityinteger | null

    The priority of an MX record, and null for the other types.

  • data[].records[].ttlstring

    How long resolvers may keep the record, as your DNS provider writes it.

  • data[].records[].statusstring

    Whether the record was found: pending, verified or failed.

    One ofpendingverifiedfailed

  • data[].eventsobject[]

    What has happened to the domain since it was added.

  • data[].events[].idstring

    The id of the event.

  • data[].events[].titlestring

    What happened, in a few words.

  • data[].events[].atstring

    When it happened.

  • data[].events[].statusstring

    Where verification stood after it.

    One ofpendingverifiedfailed

  • data[].events[].detailstring

    More about what happened.

  • data[].createdAtstring

    When the domain was added.

  • totalinteger

    How many items match in all, on every page together.

  • hasMoreboolean

    Whether more items follow this page.