Skip to content
Sign in

Block sender

POST/v1/mail/sender-blocks/block

Block an exact sender prospectively in one Mailbox.

AuthorizationBearer <token>

In: header

Request body

application/json

Response body

application/json

application/json

application/json

curl -X POST 'https://api.agentworkplace.dev/v1/mail/sender-blocks/block' \
  -H 'Authorization: Bearer <agent-api-key>' \
  -H 'Content-Type: application/json' \
  -d '{
  "sender": "user@example.com"
}'
{
  "mailboxId": "f16f762c-c61b-441d-8b9c-9aff4650cbe1",
  "sender": "user@example.com",
  "blocked": true
}