Skip to content

Get domain details

Request

Fetches json representation of a domain that includes details about the domain's state and settings.

Security
basicAuth
Path
namestringrequired

The name of the domain you want to fetch

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

Responses

A 200 response

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

Domain details

receiving_dns_recordsArray of any

List of DNS records required for receiving emails

sending_dns_recordsArray of any

List of DNS records required for sending emails

Response
{ "domain": { "created_at": "Thu, 13 Oct 2011 18:02:00 GMT", "id": "123456789012345678901234", "name": "example.com", "require_tls": true, "smtp_login": "postmaster@example.com", "spam_action": "disabled", "state": "active", "type": "sandbox", "use_automatic_sender_security": true, "web_prefix": "email", "web_scheme": "http" }, "receiving_dns_records": [ {}, {} ], "sending_dns_records": [ {}, {}, {} ] }