Code Examples
3 min
Legacy API — sunsets June 1, 2027
This page documents the original mailfloss API, which is being retired on June 1, 2027. New integrations should use the v1 API.
Add blacklist endpoint
curl -X POST \
--url https://api.mailfloss.com/settings/{id}?api_key={api_key} \
-d '{"type": "blacklist","data":{
"keyword": "mailfloss.com",
"localpart": false,
"domain": true,
"email": false,
"match": "exact",
}}' -H "Content-Type: application/json"Bulk add blacklist endpoint
curl -X POST \
--url https://api.mailfloss.com/settings/{id}?api_key={api_key} \
-d '{"type": "blacklist", "data":[{
"keyword": "mailfloss.net",
"localpart": false,
"domain": true,
"email": false,
"match": "exact"
}, {
"keyword": "mailfloss.io",
"localpart": false,
"domain": true,
"email": false,
"match": "exact"
}, {
"keyword": "mailfloss.us",
"localpart": false,
"domain": true,
"email": false,
"match": "exact"
}]}' -H "Content-Type: application/json"