GET /v1/mail/services/{mailServiceId}/spam-settings
The domain's spam settings.
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
| Name | Type | Required | What it is |
|---|---|---|---|
mailServiceId (path) | Uuid | Yes | Email service ID (UUIDv7). |
Response
| Name | Type | Required | What it is |
|---|---|---|---|
allow | string[] | Yes | Senders always delivered to the inbox (addresses or whole domains). |
block | string[] | Yes | Senders always filed into Junk (addresses or whole domains). |
junk | boolean | Yes | When false, mail the spam filter scores as spam stays in the inbox. |
applied | boolean | No | False 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… |
notAppliedSince | object | No | When applying the settings to a mailbox first failed; null when applied. |
Errors this endpoint can return
401 · 403 · 404 · 429