---
title: "Validate DMARC records"
method: GET
path: "/validate_current_dmarcs"
tags: ["Mail", "Mail DNS Settings"]
---

# Validate DMARC records

`GET /validate_current_dmarcs`

This function retrieves and checks the DMARC record for one or more domains.

## Query parameters

- `domain` string

## Response `200`

HTTP Request was successful.

- object
  - `data` object
    - `payload` object[] — An array of objects containing information about the domain's DMARC records.
      - `domain` string, domain — The target domain of the DMARC policy.
      - `error` string — A message that details either why the DNS lookup failed, or if there is a SPF/DKIM failure.
      - `record` string — The domain's DMARC TXT record.
      - `state` 'VALID' | 'MALFORMED' | 'DKIM_SPF_ERROR' | 'DKIM_ERROR' | 'SPF_ERROR' | 'MISSING' | 'DNS_ERROR' — The domain's DMARC record status. Possible values: * `VALID` - A DMARC policy is set for the domain, along with valid SPF and DKIM records for the domain and IP address. * `MALFORMED` - A DMARC record is set, but it did not pass a syntax check. * `DKIM_SPF_ERROR` - A DMARC record exists; however, both the DKIM and SPF records for this domain did not pass validation. * `DKIM_ERROR` - A DMARC record exists; however, the DKIM record for this domain did not pass validation. * `SPF_ERROR` - A DMARC record exists; however, the SPF record for this domain did not pass validation. * `MISSING` - No DMARC policy record exists for the domain at the DMARC subdomain location. * `DNS_ERROR` - A DNS error prevented validation of the DMARC record.
      - `subdomain` string, domain — The domain that the function used to check the DMARC record. This will be the value of the `domain` parameter with a `_dmarc` prefix.
      - `suggested` string — The recommended DMARC policy.
  - `metadata` object
    - `command` string — The method name called.
    - `reason` string — The reason the API function failed when the `metadata.result` field is `0`. This field may display a success message when a function succeeds.
    - `result` 1 | 0 — * `1` — Success. * `0` — Failed. Check the `reason` field for more details.
    - `version` integer — The version of the API function.

---

[API](https://skmtc.net/cpanel/apis/whm-api.md) · [All operations](https://skmtc.net/cpanel/apis/whm-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/cpanel/whm-api/revisions/3da41671c02c/schema)
