Add domain
Adds a domain to the workspace and returns the DNS records to publish before it can send.
opensend.domains.create(input)opensend domains createInput
namestringRequiredThe domain to send from, such as
mail.example.com. A subdomain keeps your main domain apart from your sending. Up to 120 characters.regionstringThe region to send from:
us-east-1,eu-west-1orap-northeast-1. Without it the domain is inus-east-1.One of
us-east-1eu-west-1ap-northeast-1openTrackingbooleanWhether to count opens for mail from this domain. Without it, yes. Default:
true.clickTrackingbooleanWhether to count clicks for mail from this domain. Without it, no. Default:
false.
Returns
The call resolves to the answer, already parsed. A call the API refuses throws OpenSendError with the code and the message of the answer. SDK lists the errors of the client itself.
object"domain"Always
domain.idstringThe id of the domain.
namestringThe domain name, such as
mail.example.com.statusstringWhere verification stands:
pendinguntil every record is found,verifiedafter that,failedwhen a record is wrong.One of
pendingverifiedfailedregionstringThe region mail from this domain is sent from.
One of
us-east-1eu-west-1ap-northeast-1openTrackingbooleanWhether opens are counted for mail from this domain.
clickTrackingbooleanWhether clicks are counted for mail from this domain.
recordsobject[]The DNS records to publish, each with whether it was found.
records[].idstringThe id of the record.
records[].typestringThe type of DNS record:
MX,TXTorCNAME.One of
MXTXTCNAMErecords[].hoststringThe name to publish the record under.
records[].valuestringWhat the record has to hold.
records[].priorityinteger | nullThe priority of an
MXrecord, andnullfor the other types.records[].ttlstringHow long resolvers may keep the record, as your DNS provider writes it.
records[].statusstringWhether the record was found:
pending,verifiedorfailed.One of
pendingverifiedfailedeventsobject[]What has happened to the domain since it was added.
events[].idstringThe id of the event.
events[].titlestringWhat happened, in a few words.
events[].atstringWhen it happened.
events[].statusstringWhere verification stood after it.
One of
pendingverifiedfailedevents[].detailstringMore about what happened.
createdAtstringWhen the domain was added.