MOLTED EMAIL

Suppressions & Consent

Manage suppression lists, record consent, and enforce compliance across scopes.

Suppressions prevent email from being sent to specific recipients. Consent records track the legal basis for contacting someone. Both are enforced automatically by the policy engine.

Suppression scopes

Suppressions can be applied at three levels:

ScopeDescription
globalBlocked across all tenants. Checked first.
tenantBlocked for a specific tenant.
campaignBlocked for a specific campaign only.

When evaluating a send request, global suppressions are checked first, then tenant, then campaign.

Add a suppression

POST https://api.molted.email/v1/suppressions
curl
curl -X POST https://api.molted.email/v1/suppressions \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "tenantId": "tenant_abc123",
    "email": "user@example.com",
    "scope": "tenant",
    "reasonCode": "manual_dnc"
  }'
FieldTypeRequiredDescription
tenantIdstringYesYour tenant identifier.
emailstringYesEmail address to suppress.
scopestringYesSuppression scope: global, tenant, or campaign.
reasonCodestringYesReason for suppression.

Reason codes

CodeDescription
complaintRecipient marked an email as spam.
hard_bounceEmail address hard-bounced.
manual_dncManually added to do-not-contact list.
legal_requestSuppressed due to a legal request (e.g., GDPR erasure).
role_accountRole account (e.g., info@, admin@) that should not receive automated email.

Remove a suppression

DELETE https://api.molted.email/v1/suppressions/:id
curl
curl -X DELETE https://api.molted.email/v1/suppressions/SUPPRESSION_ID \
  -H "Authorization: Bearer YOUR_API_KEY"

List suppressions

GET https://api.molted.email/v1/suppressions
curl
curl "https://api.molted.email/v1/suppressions?tenantId=tenant_abc123&email=user@example.com" \
  -H "Authorization: Bearer YOUR_API_KEY"
ParameterTypeRequiredDescription
tenantIdstringYesYour tenant identifier.
emailstringNoFilter by email address.

Consent records document the legal basis for contacting someone. They support GDPR and other privacy regulation compliance.

POST https://api.molted.email/v1/consent
curl
curl -X POST https://api.molted.email/v1/consent \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "tenantId": "tenant_abc123",
    "email": "user@example.com",
    "basis": "explicit_opt_in",
    "jurisdiction": "EU"
  }'
BasisDescription
explicit_opt_inThe recipient explicitly opted in to receive email.
legitimate_interestSending is justified by a legitimate business interest.
contractualEmail is necessary for fulfilling a contract.
legal_obligationEmail is required by law.
GET https://api.molted.email/v1/consent
curl
curl "https://api.molted.email/v1/consent?tenantId=tenant_abc123&email=user@example.com" \
  -H "Authorization: Bearer YOUR_API_KEY"