Verify the domains DNS records (includes A, CNAME, SPF, DKIM and MX records) to ensure the domain is ready and able to send
Security
basicAuth
- US Mailgunhttps://api.mailgun.net/v4/domains/{name}/verify
- EU Mailgunhttps://api.eu.mailgun.net/v4/domains/{name}/verify
curl -i -X PUT \
-u '<username>:<password>' \
'https://api.mailgun.net/v4/domains/{name}/verify'A 200 response
Any of:
Domain record information
Response
{ "message": "Domain DNS records have been updated", "domain": { "created_at": "Mon, 02 Jan 2006 15:04:05 MST", "id": "123456789012345678901234", "name": "example.com", "require_tls": true, "smtp_login": "postmaster@example.com", "spam_action": "disabled", "state": "unverified", "type": "sandbox", "use_automatic_sender_security": true, "web_prefix": "email", "web_scheme": "http", "disabled": { … } }, "sending_dns_records": [ { … } ], "receiving_dns_records": [ { … } ] }