Skip to content

Update DKIM authority

Request

You can delegate the domain authority to an other domain. Domain's authority is set to itself by default.

Security
basicAuth
Path
namestringrequired

The domain name

Bodymultipart/form-datarequired
selfboolean

Change the DKIM authority for a domain. If set to true, the domain will be the DKIM authority for itself even if the root domain is registered on the same mailgun account If set to false, the domain will have the same DKIM authority as the root domain registered on the same mailgun account.

curl -i -X PUT \
  -u '<username>:<password>' \
  'https://api.mailgun.net/v3/domains/{name}/dkim_authority' \
  -H 'Content-Type: multipart/form-data' \
  -F self=true

Responses

A 200 response

Bodyapplication/json
messagestringrequired
sending_dns_recordsArray of anyrequired
changedbooleanrequired
Response
{ "message": "string", "sending_dns_records": [ {} ], "changed": true }