Replace mailbox spam settings
Set the mailbox’s junk filter level and replace both sender lists (at most 1000 entries each). The allow list wins over the block list. Applies to new mail and reclassifies existing INBOX and Junk messages without a mailbox-specific decision.
Authorizations
Your Inbound API key. Include it in the Authorization header as: Bearer
Path Parameters
Body
null uses the account's level
"off"1000An exact sender address (alice@example.com) or a whole domain (@example.com). Case-insensitive.
2 - 2551000An exact sender address (alice@example.com) or a whole domain (@example.com). Case-insensitive.
2 - 255Response
Response for status 200
The mailbox's junk filter level; null uses the account's level
"off"off, lenient, standard, strict Senders never marked as junk by the junk filter
Senders always marked as junk