List domains
The domains of the workspace, newest first, with their status and region.
opensend domains list [flags]Flags
--qstringText to search for. Only items that contain it are returned. Up to 40 characters.
--limitintegerHow many items to return, from 1 to 100. Without it you get 25.
--offsetintegerHow many items to skip. Use it with
limitto read the next page. Default:0.--afterstringThe 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.
--beforestringThe 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.--statusstringOnly domains in this state:
pending,verifiedorfailed.One of
pendingverifiedfailed--regionstringOnly domains in this region.
One of
us-east-1eu-west-1ap-northeast-1
Returns
The command prints the answer: as JSON when its output goes to a file or another program, and as a table or a list of fields in a terminal. When the API refuses, the error goes to the error stream and the command ends with a code that names the failure. Output and scripts lists the codes.
object"list"Always
list.dataobject[]The items on this page.
data[].object"domain"Always
domain.data[].idstringThe id of the domain.
data[].namestringThe domain name, such as
mail.example.com.data[].statusstringWhere verification stands:
pendinguntil every record is found,verifiedafter that,failedwhen a record is wrong.One of
pendingverifiedfaileddata[].regionstringThe region mail from this domain is sent from.
One of
us-east-1eu-west-1ap-northeast-1data[].openTrackingbooleanWhether opens are counted for mail from this domain.
data[].clickTrackingbooleanWhether clicks are counted for mail from this domain.
data[].recordsobject[]The DNS records to publish, each with whether it was found.
data[].records[].idstringThe id of the record.
data[].records[].typestringThe type of DNS record:
MX,TXTorCNAME.One of
MXTXTCNAMEdata[].records[].hoststringThe name to publish the record under.
data[].records[].valuestringWhat the record has to hold.
data[].records[].priorityinteger | nullThe priority of an
MXrecord, andnullfor the other types.data[].records[].ttlstringHow long resolvers may keep the record, as your DNS provider writes it.
data[].records[].statusstringWhether the record was found:
pending,verifiedorfailed.One of
pendingverifiedfaileddata[].eventsobject[]What has happened to the domain since it was added.
data[].events[].idstringThe id of the event.
data[].events[].titlestringWhat happened, in a few words.
data[].events[].atstringWhen it happened.
data[].events[].statusstringWhere verification stood after it.
One of
pendingverifiedfaileddata[].events[].detailstringMore about what happened.
data[].createdAtstringWhen the domain was added.
totalintegerHow many items match in all, on every page together.
hasMorebooleanWhether more items follow this page.