Skip to main content
POST
Add an MX record

Authorizations

Authorization
string
header
required

A personal access token. Obtain one from the dashboard under Settings > API Key. Include it in the Authorization header as Bearer <token>. Unauthenticated requests to protected routes return 401 Unauthorized.

Body

application/json
order_id
integer
required

Order ID of the domain.

Example:

124680932

value
string
required

Fully qualified hostname of the mail server.

Example:

"aspmx.l.google.com"

host
string

Domain or subdomain receiving mail, relative to the zone. Use @ or omit for the root domain.

Example:

"@"

priority
integer

Mail server priority. Lower values are preferred. Common values: 10 (primary), 20 (secondary).

Example:

10

time_to_live
integer

TTL in seconds. Minimum 300. Omit to use the zone default.

Example:

300

Response

MX record added successfully.

status
string
Example:

"SUCCESS"

message
string
Example:

"Record added successfully"