Get thresholds

Fetch per-domain antispam thresholds

  • HTTP Method: GET
  • URL: https://example.domain.tld/api/v1/antispam/thresholds/domain/<domain>/
  • Require authentication: Yes
  • Permission level required: MasterAdmin / DomainAdmin

Path parameters

Parameter Type Description Required
domain str Domain name Required

Response parameters

Parameter Type Description
domain str Domain name
scores dict The threshold scores object
add_header int Score at which X-Spam header is added (used for sieving to junk folder)
greylist int Score at which message is deferred (greylisted)
reject int Score at which message is rejected
status str Status

Example request (Python)

import requests
import json
from pprint import pprint

url = "https://example.domain.tld/api/v1/antispam/thresholds/domain/"
r = requests.get(url, auth=("admin","long-auth_token-here"))

Example response (JSON)

{'domain': '',
 'scores': {'add_header': 5, 'greylist': 4, 'reject': 12},
 'status': 'applied'}