Skip to main content

Replace the spam block list

POST 

/api/accounts/:accountId/spam_blocklist

Replaces the account mailbox's spam block list on the platform with blocklist, an array of addresses or domains. The whole list is replaced, so send every entry, not just new ones; an empty array clears it.

The response echoes the list that was sent rather than reading it back. The request uses the session's platform access token (401 without one), and platform failures return 424.

Request​

Responses​

Block list.