Add a rule
Send aPOST request to /lists with the rule’s kind, direction, and pattern:
cURL
| Field | Values |
|---|---|
kind | allow or block |
direction | inbound, outbound, or both |
pattern | A full address (spam@example.com) or a bare domain (example.com) |
How rules apply
- Block (outbound) — sends to a matching recipient address are silently dropped from the recipient list. If no deliverable recipients remain after filtering, the send returns
422. - Block (inbound) — mail from a matching sender is rejected before it reaches any inbox. The sending server receives a rejection; nothing is stored.
- Allow — explicitly permits an address or domain that might otherwise be filtered by another rule.
List and remove rules
Retrieve all rules in your workspace withGET /lists. Remove an individual rule with DELETE /lists/{id} using the id returned when you created it:
cURL
Automatic suppression
Separately from your rules, Sentvia maintains an automatic suppression list. Any address that produces a hard bounce or files a spam complaint is added to the suppression list immediately — Sentvia will never attempt to send to that address again.The suppression list is managed entirely for you. It operates independently of your
allow/block rules and is designed to protect your sending reputation without any
configuration on your part.