# DKIM Security Automatic Sender Security DKIM Key APIs. To enable this feature please see 'Update a domain' API docs. ## Update Automatic Sender Security DKIM key rotation for a domain - [PUT /v1/dkim_management/domains/{name}/rotation](https://documentation.mailgun.com/docs/inboxready/api-reference/optimize/mailgun/dkim-security/put-v1-dkim-management-domains--name--rotation.md): The minimum allowed interval for rotation is 5 days. ## Rotate Automatic Sender Security DKIM key for a domain - [POST /v1/dkim_management/domains/{name}/rotate](https://documentation.mailgun.com/docs/inboxready/api-reference/optimize/mailgun/dkim-security/post-v1-dkim-management-domains--name--rotate.md): Immediately rotate your DKIM key. This will trigger a rotation even if auto-rotation is disabled on the domain.