Automatic Sender Security DKIM Key APIs. To enable this feature please see 'Update a domain' API docs.
The minimum allowed interval for rotation is 5 days.
A 200 response
A 400 response
A 404 response
{- "domain": {
- "state": "enabled",
- "records": [
- {
- "comment": "Customer DKIM CNAME Record",
- "identifier": "DKIM",
- "name": "pdk1._domainkey.example.com",
- "type": "CNAME",
- "value": "pdk1._domainkey.1234567.service.mailgun.com"
}, - {
- "comment": "Customer DKIM CNAME Record",
- "identifier": "DKIM",
- "name": "pdk2._domainkey.example.com",
- "type": "CNAME",
- "value": "pdk2._domainkey.1234567.service.mailgun.com"
}
], - "account_id": "000000000000000000000001",
- "active_selector": "pdk1",
- "id": "000000000000000000000002",
- "sid": "789",
- "name": "example.com",
- "rotation_enabled": "true",
- "rotation_interval": "24h"
}
}
Immediately rotate your DKIM key. This will trigger a rotation even if auto-rotation is disabled on the domain.
{- "message": "ok"
}