Domains

Add a DNS record to a domain bought in Migma, for example Google Workspace MX records, a site-verification TXT, or an A record pointing a subdomain at a server. Migma's email sending records are protected and managed automatically, duplicate SPF or DMARC records are refused, the root and www names are reserved for domain forwarding, and each domain is capped at 50 records. Returns 404 if the domain's DNS zone is not hosted by Migma. Requires API key with domain:write permission.

post/v1/domains/{domain}/dns-records

Request

  • Base URL
    https://api.migma.ai
  • URL
    https://api.migma.ai/v1/domains/{domain}/dns-records
  • Auth
    API key in header Authorization

Path parameters

domainstring required

The domain, e.g. 'acme.io'

Request body

namestring required

Record name. '@' for the root domain, a label like 'mail', or a full name. Root and www are reserved for domain forwarding.

contentstring required

Record value, e.g. an IP address, hostname, or TXT content

type'A' | 'AAAA' | 'CNAME' | 'MX' | 'TXT' | 'NS'

DNS record type

priorityinteger

Priority for MX records

Response

DNS record created

successboolean required
errorstring nullable

Changes