---
title: "Generate a DMARC record"
method: POST
path: "/email/dmarc/generate"
tags: ["email"]
---

# Generate a DMARC record

`POST /email/dmarc/generate`

## Request

- Base URL: `https://intodns.ai/api`
- URL: `https://intodns.ai/api/email/dmarc/generate`
- Auth: none required

Build a DMARC TXT record with rollout and reporting warnings. Pure computation: no DNS is changed and no data is stored.

## Request body

- object
  - `policy` 'none' | 'quarantine' | 'reject'
  - `subdomainPolicy` 'none' | 'quarantine' | 'reject'
  - `rua` union
    - string
    - string[]
  - `ruf` union
    - string
    - string[]
  - `percentage` integer
  - `spfAlignment` 'relaxed' | 'strict'
  - `dkimAlignment` 'relaxed' | 'strict'
  - `reportFormat` string
  - `reportInterval` integer

## Response `200`

Generated DMARC record, warnings, and DNS entry

- object

## Other responses

- `400`: Invalid generator input

---

[API](https://skmtc.dev/intodns/apis/intodns-ai-api.md) · [All operations](https://skmtc.dev/intodns/apis/intodns-ai-api/llms.txt) · [OpenAPI document](https://skmtc.dev/intodns/apis/intodns-ai-api/revisions/c6c196b2fb4c?raw)
