v1

latestOpenAPI 3.0.2cPanel License2026-08-06657427.1 MB
EmailAuth
Email DNS Settings

Validate domains' DMARC records

This function checks the validity of the current DMARC record for one or more domains.

get/EmailAuth/validate_current_dmarcs

Query parameters

domainstring domain

The domain for which to check the DMARC record.

Note:

If you do not include this argument, the system will validate DMARC records for all domains owned by the user.

Response

HTTP Request was successful.

apiversioninteger

The version of the API.

funcstring

The name of the method called.

modulestring

The name of the module called.

Example response

{
  "apiversion": 3,
  "func": "validate_current_dmarcs",
  "module": "EmailAuth",
  "result": {
    "data": [
      {
        "domain": "example.com",
        "error": "(XID 4krw35) DNS returned SERVFAIL (code 2)\nin response to the system's query for _dmarc.example.com\nTXT records.",
        "record": "v=DMARC1; p=none;",
        "state": "VALID",
        "subdomain": "_dmarc.example.com",
        "suggested": "v=DMARC1; p=none;"
      }
    ],
    "status": 1
  }
}