Skip to main content

Methods

Create

Creates a new domain entry.

CreateWithContext

Creates a new domain entry with context support.

Request Parameters

CreateDomainRequest

string
required
The domain name to add (e.g., “example.com”)
string
The region where emails will be sent from. Options: us-east-1, eu-west-1, sa-east-1
string
Custom return path for the domain

Response

CreateDomainResponse

string
The unique identifier for the domain
string
The domain name
string
Timestamp when the domain was created
string
The verification status of the domain
[]Record
DNS records required for domain verification. See Record structure below.
string
The region where emails will be sent from
string
The DNS provider for the domain

Record

string
The record identifier
string
The DNS record name
string
The DNS record type (e.g., “TXT”, “MX”, “CNAME”)
string
Time to live for the DNS record
string
Verification status of this specific record
string
The value to set for the DNS record
json.Number
Priority value for MX records (optional)

Example

Example with Context