MailMasker API
Claude Code
Your addresses and blocking

Block an address

POST/api/v1/domains/recipient-access/mine

Who can use this: Any signed-in accountAs Markdown

From now on, mail to this address is refused while it is being delivered, so the sender gets a rejection and you never see it. Blocking an address that is already blocked updates its reason.

Parameters

NameWhereWhat it is
recipient required body The address to block. It must be one of yours.e.g. shop@example.com
action required body REJECT to block. (OK would make it an allow entry instead.)e.g. REJECT
reason body Shown to whoever sends mail to it, in the rejection.e.g. This address is no longer in use

Good to know

  • Your main (login) address can't be blocked, because that would cut off all of your mail; the answer is 400.
  • An address you don't own is refused with 403.