Get the spam allow list
GET/api/accounts/:accountId/spam_allowlist
Returns the account mailbox's spam allow list: the addresses or domains whose mail is never treated as spam. The list is kept by the platform, not by the Mail app, and is [] when the platform returns none.
The request is made with the session's platform access token, so a session without one gets 401. Platform failures return 424.
Request
Responses
- 200
- 401
- 404
- 424
Allow list.
The session has no mailbox access token (code is mail_token_missing) or no platform access token.
The account does not exist or belongs to another user.
The IMAP, SMTP or Sieve server, or the platform, refused the request or could not be reached.