v51

latestOpenAPI 3.1.0raw.githubusercontent.com2026-08-01960201.2 KB
Domain antispam policies

Create domain policy

You may create your own domain policy using this action. It takes a JSON object containing a domain informations.

post/api/v1/add/domain-policy

Request body

domainstring

domain name to which policy is associated to

object_fromstring

exact address or use wildcard to match whole domain

object_list'wl' | 'bl'

Example request

{
  "domain": "domain.tld",
  "object_from": "*@baddomain.tld",
  "object_list": "bl"
}

Response

OK

type'success' | 'danger' | 'error'