Skip to content

Activate a domain key

Request

Activate a key to be used to DKIM sign emails with. Note: dns records must be valid for a domain key to be activated

Security
basicAuth
Path
authority_namestringrequired

The domain authority name you want to activate. Must be a valid domain

selectorstringrequired

The selector you want to activate for the domain key. Must be a valid dot atom

curl -i -X PUT \
  -u '<username>:<password>' \
  'https://api.mailgun.net/v4/domains/{authority_name}/keys/{selector}/activate'

Responses

A 200 response

Bodyapplication/json
messagestringrequired
authoritystringrequired
selectorstringrequired
activebooleanrequired
Response
{ "message": "domain key activated", "authority": "authority.domain.tld", "selector": "selector", "active": true }