mail

GET /v1/mail/services/{mailServiceId}/spam-settings

The domain's spam settings.

All mail endpoints

All developer docs →

Zinn®, our Viking, hammering at his anvil beside an API endpoint sending events to several listeners.

Authentication

Send an API key as a bearer token. The key must carry the mail.view permission; a key without it is refused with 403, not 404.

This endpoint takes no organisation id. Your key already identifies the organisation it belongs to, and the response is scoped to it.

Try it

Replace anything in angle brackets with your own values, and the key placeholder with a key from your dashboard.

curl -X GET https://api.zinndigital.com/v1/mail/services/{mailServiceId}/spam-settings \
  -H "Authorization: Bearer zdk_live_…"

Signed in? The API console in your dashboard fills in your real organisation id and your own key, and runs the request against the live API so you can see the actual response. Open this endpoint in the API console

Details

Allowed senders, blocked senders and the junk policy for every mailbox on this domain (P4-073). The defaults (both lists empty, junk on) when never saved. Requires mail.view.

Parameters

NameTypeRequiredWhat it is
mailServiceId (path)UuidYesEmail service ID (UUIDv7).

Response

NameTypeRequiredWhat it is
allowstring[]YesSenders always delivered to the inbox (addresses or whole domains).
blockstring[]YesSenders always filed into Junk (addresses or whole domains).
junkbooleanYesWhen false, mail the spam filter scores as spam stays in the inbox.
appliedbooleanNoFalse while at least one mailbox on the domain does not carry these settings yet (a new mailbox failed to take them). Retried hourly and staff are alerted; saving again also…
notAppliedSinceobjectNoWhen applying the settings to a mailbox first failed; null when applied.

Errors this endpoint can return

401 · 403 · 404 · 429