Block a sender

POST/api/v1/mailbox/blocked-senders
Requires amailbox token— it acts as one mailbox holder, not as the organization.

Adds one address. Matching is on the visible From address, whole address, case-insensitive. Blocking an address that is already blocked is not an error.

Request body

Request

POST/api/v1/mailbox/blocked-senders
curl -X POST 'https://app.mailyte.com/api/v1/mailbox/blocked-senders' \
  -H 'Authorization: Bearer MAILBOX_TOKEN'
The key names its own organization, so no X-Organization-ID header is needed.

Response

Successful Response

Returned inside the standard envelope.

Errors

StatusWhen
422Validation Error

Every status, with what causes it and what to do, is on the error reference.