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.
host: The domain or subdomain receiving mail, relative to the zone. Use @ or omit to configure mail for the root domain. Use a subdomain label (e.g. mail) for subdomain-specific routing.
value: The fully qualified hostname of the mail server (e.g. mail.example.com or aspmx.l.google.com).
priority: Determines mail server preference when multiple MX records exist. Lower values have higher priority (e.g. 10 is preferred over 20). Omit to use the default.
TTL: Controls how long resolvers cache the record. Minimum is 300 seconds (5 minutes). Omit to use the zone default.
Prerequisite: DNS service must be activated for the domain via POST /api/v1/dns/activate before records can be added.
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.
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