---
title: "Spam policy object"
url: "https://help.internetx.com/en/api/core-spam-policy-object/"
lang: "en"
section: "API reference — API reference (XML/JSON)"
breadcrumb: "API documentation (JSON/XML) > Objects"
updated: "2023-09-25"
---

# Spam policy object

## Function

The SpamPolicy object represents the policy for handling spam.

## Structure

| Keywords JSON | Keywords XML | Occurs | Type | Format | Description |
| --- | --- | --- | --- | --- | --- |
| modifySubject | modify\_subject | 0 - 1 | boolean |  | Setting for the flag in the subject:<br>• false = The emails should not be marked in the subject<br>• true = The emails should receive the label in the subject.<br>Default= false<br>For XML, 0 (false) and 1 (true) can also be used. |
| tagHeader | tag\_header | 0 - 1 | number | double | Enter a score. If an incoming email reaches this value, the email will be marked as spam in the header. (Header X-Spam Status and X-Spam Level).<br>Recommendation: Value between -999 and 1<br>Minimum: -999.9 Maximum: 999.9 |
| spam | spam | 0 - 1 | number | double | Enter a score from which an email should be classified as spam. The header X-Spam-Flag will be added to emails that reach this score.<br>Minimum: -999.9 Maximum: 999.9 |
| kill | kill | 0 - 1 | number | double | Enter a score at what value an email should be quarantined for the selected task Minimum: -999.9 Maximum: 999.9<br>Note that the value of the kill score must be higher than the spam score. |
| quarantineDigestIntervall | quarantine\_digest\_interval | 0 - 1 | integer |  | Specify how long an email should be kept in quarantine.<br>• Time unit: minutes<br>• Default: 1440 min<br>• Minimum: 1440 min |
