# DMARC Validator API

> DMARC Validator is a DMARC record validator API that checks the Domain-based Message Authentication, Reporting and Conformance (DMARC) record for a domain to ensure it is correctly configured.

**Endpoint:** `GET https://api.apiverve.com/v1/dmarcvalidator`  
**Category:** Domain Data  
**Cost:** 10 credits per call  
**Canonical page:** https://apiverve.com/marketplace/dmarcvalidator

## Overview

A DMARC record lookup API. Send a domain and it reads the published DMARC policy, splits it into its tags and tells you whether the record is usable: the policy (none, quarantine or reject), the subdomain policy, the rollout percentage, the DKIM and SPF alignment modes, the reporting options and any problems found, such as a missing or misspelled policy.

Email security teams, deliverability consultants and SaaS products that send on a customer's behalf use it to audit sender domains, to check a DMARC change after it propagates, and to screen vendors or new signups for how easily their domain can be spoofed.

The Free plan returns the raw record, every parsed tag, the domain that aggregate and forensic reports go to, the issues list and an overall verdict. Paid plans add the full report addresses with a check that each is a well-formed email address, whether the domain actively enforces DMARC, and an email-spoofing risk score from 0 to 100 with a low, medium or high band, so you can rank domains by email deliverability and protection against spoofing without reading each policy yourself.

## Authentication

Every call carries your key in an `x-api-key` header. The same key works across the whole
APIVerve catalog — there are no per-API subscriptions. Responses always use the same three
top-level keys: `status`, `error`, and `data`.

## Example request

```bash
curl "https://api.apiverve.com/v1/dmarcvalidator?domain=paypal.com" \
  -H "x-api-key: YOUR_API_KEY"
```

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `domain` | string | Yes | The domain to validate the DMARC record for. domain |

## Response fields

- `host` — string · The domain name that was validated
- `dmarcHost` — string · The DMARC DNS record hostname for the domain
- `hasDmarc` — boolean · Indicates whether a DMARC record exists for domain
- `dmarc_record` — string · The complete DMARC record string from DNS
- `rua` — object · Aggregate report destination from the rua tag, with the address and whether it is valid
  - `rua.email` — string · Email address for aggregate report delivery · (premium)
  - `rua.domain` — string · Domain name extracted from aggregate report email
  - `rua.valid` — boolean · Indicates if aggregate report email is valid · (premium)
- `ruf` — object · Forensic report destination from the ruf tag, with the address and whether it is valid
  - `ruf.email` — string · Email address for forensic report delivery · (premium)
  - `ruf.domain` — string · Domain name extracted from forensic report email
  - `ruf.valid` — boolean · Indicates if forensic report email is valid · (premium)
- `v` — string · DMARC protocol version from record
- `p` — string · DMARC policy for domain (reject, quarantine, none)
- `sp` — object · Policy applied to subdomains from the sp tag; null when the record does not set one
- `pct` — object · Percentage of mail the policy applies to from the pct tag; null means the default of 100
- `adkim` — object · DKIM alignment mode from the adkim tag, relaxed or strict; null means the default of relaxed
- `aspf` — object · SPF alignment mode from the aspf tag, relaxed or strict; null means the default of relaxed
- `fo` — object · Forensic reporting options from the fo tag, controlling when a report is generated
- `rf` — object · Forensic report format from the rf tag
- `ri` — object · Requested interval between aggregate reports in seconds, from the ri tag
- `valid` — boolean · Overall validation status of DMARC record
- `issues` — array · Problems found in the record, such as a missing policy or an unreachable report address
- `isEnforced` — boolean · Whether the domain actively enforces DMARC — policy is quarantine or reject and applied to 100% of mail. False for monitoring-only (p=none), partial rollout (pct<100), or no DMARC record · (premium)
- `riskScore` — number · Composite 0-100 email-spoofing risk based on the DMARC policy and rollout percentage — higher means the domain is more easily spoofed (no DMARC or p=none scores high; enforced reject scores low) · (premium)
- `riskLevel` — string · Risk band derived from the score: low, medium or high · (premium)

## Sample response

```json
{
  "status": "ok",
  "error": null,
  "data": {
    "host": "paypal.com",
    "dmarcHost": "_dmarc.paypal.com",
    "hasDmarc": true,
    "dmarc_record": "v=DMARC1; p=reject; rua=mailto:d@rua.agari.com,mailto:dmarc_agg@vali.email; ruf=mailto:d@ruf.agari.com,mailto:MTc4Mzcw@ruf.vali.email",
    "rua": {
      "email": "d@rua.agari.com,dmarc_agg@vali.email",
      "domain": "rua.agari.com",
      "valid": true
    },
    "ruf": {
      "email": "d@ruf.agari.com,MTc4Mzcw@ruf.vali.email",
      "domain": "ruf.agari.com",
      "valid": true
    },
    "v": "DMARC1",
    "p": "reject",
    "sp": null,
    "pct": null,
    "adkim": null,
    "aspf": null,
    "fo": null,
    "rf": null,
    "ri": null,
    "valid": true,
    "issues": [],
    "isEnforced": true,
    "riskScore": 5,
    "riskLevel": "low"
  }
}
```

## Use cases

- **Vendor Security Audits** — Audit partner domains during vendor reviews by inspecting their published DMARC policy and flagging entries set to none instead of reject.
- **Outbound Campaign Verification** — Before sending mass marketing broadcasts, deliverability platforms verify sender domains to confirm that DMARC records exist and specify strict alignment modes.
- **Inbound Mail Protection** — To stop spoofed sender addresses, secure email gateways evaluate incoming message domains against live DMARC policies and quarantine suspicious traffic.
- **Domain Portfolio Health** — DNS administrators track customer domains across registrars to detect misconfigured report addresses, missing subdomain policies, and unaddressed syntax issues.

## SDKs

- **npm** — `npm install @apiverve/dmarcvalidator` (https://www.npmjs.com/package/@apiverve/dmarcvalidator)
- **NuGet** — `dotnet add package APIVerve.API.DMARCValidator` (https://www.nuget.org/packages/APIVerve.API.DMARCValidator)
- **Source** — https://github.com/apiverve/dmarcvalidator-api

## More

- Full reference: https://docs.apiverve.com/ref/dmarcvalidator
- Get an API key: https://dashboard.apiverve.com
- Full catalog: https://apiverve.com/marketplace
