DMARC Report icon

DMARC Report

API documentation for DMARC Report v2. Provides endpoints for managing accounts, domains, aggregate reports, forensic (failure) reports, MTA-STS reports, postmaster account records, and account members.

Domains → Generate a DMARC record

AI-generated

Summary

Generate a DMARC DNS record for a specified domain within an account, optionally publishing it to hosted DMARC if enabled.

Inputs

  • account_id (required) — The account identifier for the domain's account.
  • id (required) — The domain identifier for which to generate the DMARC record.
  • p (required) — The DMARC policy to apply: none (monitor), quarantine (spam folder), or reject (block).
  • additionalFields — Optional additional DMARC record parameters including subdomain policy, percentage policy application, DKIM/SPF alignment, forensic options, extra report email addresses, DMARCbis options, and whether to publish the record.

Output shape

a single record representing the generated DMARC record and response from the API

The response includes the generated DMARC record details; if 'publish' is set true and hosted DMARC is enabled, the record is also published. Debug information can be included if enabled.

Links

Discussion