Skip to content

Rotate Automatic Sender Security DKIM key for a domain

Request

Immediately rotate your DKIM key. This will trigger a rotation even if auto-rotation is disabled on the domain.

Security
basicAuth
Path
namestringrequired

The Domain name

curl -i -X POST \
  -u '<username>:<password>' \
  'https://api.mailgun.net/v1/dkim_management/domains/{name}/rotate'

Responses

A 200 response

Bodyapplication/json
messagestringrequired

Response message

Response
{ "message": "ok" }