Skip to content

Verify Domain

Request

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
Path
namestringrequired

The name of the domain you want to verify

curl -i -X PUT \
  -u '<username>:<password>' \
  'https://api.mailgun.net/v4/domains/{name}/verify'

Responses

A 200 response

Bodyapplication/json
messagestringrequired

Response message

domaingithub.com-mailgun-domains-client-golang-Domain (object) or nullrequired
Any of:

Domain record information

sending_dns_recordsArray of anyrequired

List of DNS records required for sending emails

receiving_dns_recordsArray of anyrequired

List of DNS records required for receiving emails

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": [ {} ] }