MailMasker API
Claude Code
DKIM signing keys

Make a new signing key

POST/api/v1/domains/:domain/dkim/rotate

Who can use this: Site adminsAs Markdown

Makes a new 2048-bit key, its selector named for today's date, such as 20261103a (20261103b for a second one that day), and publishes its public half in DNS, where receivers look it up. It starts out pending and signs nothing until you switch to it.

Parameters

NameWhereWhat it is
domain required path The domain.e.g. example.com

Good to know

  • If the key can't be made or its DNS record can't be published, the answer is 502 and nothing is left behind.
  • The private half of a key is never shown.