Add MX
Adds an MX (Mail Exchanger) record to the domain’s DNS zone, directing inbound email to a mail server.
Use case: Route email for the domain to a mail server — for example, to configure Google Workspace, Microsoft 365, or a custom mail server.
Prerequisite: DNS service must be activated for the domain via POST /api/v1/dns/activate before records can be added.
Authorizations
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
Order ID of the domain.
124680932
Fully qualified hostname of the mail server.
"aspmx.l.google.com"
Domain or subdomain receiving mail, relative to the zone. Use @ or omit for the root domain.
"@"
Mail server priority. Lower values are preferred. Common values: 10 (primary), 20 (secondary).
10
TTL in seconds. Minimum 300. Omit to use the zone default.
300