Suppress an address
POST /suppressions
Stop sending to one address.
Body
emailstringRequiredThe address to suppress.
Request
curl -X POST "https://api.rasket.com/suppressions" \
-H "Authorization: Bearer $RASKET_API_KEY" \
-H "User-Agent: acme-billing/1.0" \
-H "Content-Type: application/json" \
-d '{
"email": "ronald.williams@example.com"
}'const response = await fetch("https://api.rasket.com/suppressions", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.RASKET_API_KEY}`,
"User-Agent": "acme-billing/1.0",
"Content-Type": "application/json",
},
body: JSON.stringify({
email: "ronald.williams@example.com"
}),
});
const { id } = await response.json();import os
import requests
response = requests.post(
"https://api.rasket.com/suppressions",
headers={
"Authorization": f"Bearer {os.environ['RASKET_API_KEY']}",
"User-Agent": "acme-billing/1.0",
},
json={
"email": "ronald.williams@example.com"
},
)
id = response.json()["id"]Response 201
{
"object": "suppression",
"id": "2c9a7f10-b4e8-4d61-8a3c-5f7b9e1d2a06"
}- A suppression added this way has
origin: manual. Hard bounces and complaints add their own withorigin: bounceorcomplaint. - Suppressions are per team. A send to a suppressed address is recorded as
email.suppressedrather than delivered.