Skip to the page

Retrieve domain

One domain with its DNS records and the history of its checks.

opensend domains get <id>
Needs the scopedomains:read
Only reads

Flags

  • <id>stringRequired

    The id of the item. Up to 64 characters.

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"domain"

    Always domain.

  • idstring

    The id of the domain.

  • namestring

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

  • statusstring

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

    One ofpendingverifiedfailed

  • regionstring

    The region mail from this domain is sent from.

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

  • openTrackingboolean

    Whether opens are counted for mail from this domain.

  • clickTrackingboolean

    Whether clicks are counted for mail from this domain.

  • recordsobject[]

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

  • records[].idstring

    The id of the record.

  • records[].typestring

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

    One ofMXTXTCNAME

  • records[].hoststring

    The name to publish the record under.

  • records[].valuestring

    What the record has to hold.

  • records[].priorityinteger | null

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

  • records[].ttlstring

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

  • records[].statusstring

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

    One ofpendingverifiedfailed

  • eventsobject[]

    What has happened to the domain since it was added.

  • events[].idstring

    The id of the event.

  • events[].titlestring

    What happened, in a few words.

  • events[].atstring

    When it happened.

  • events[].statusstring

    Where verification stood after it.

    One ofpendingverifiedfailed

  • events[].detailstring

    More about what happened.

  • createdAtstring

    When the domain was added.