> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sentfrom.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Set DMARC policy

> Ramp the DMARC policy (none -> quarantine -> reject).



## OpenAPI

````yaml POST /domains/{id}/dmarc
openapi: 3.1.0
info:
  title: SentFromAI API
  version: 0.1.0
  description: >-
    Comms infrastructure for AI agents. Email send/receive, threading,
    attachments, drafts, webhooks, realtime, and search.
servers:
  - url: https://api.sentfrom.ai/v1
security:
  - bearerAuth: []
tags:
  - name: inboxes
  - name: messages
  - name: threads
  - name: drafts
  - name: webhooks
  - name: labels
  - name: lists
  - name: attachments
  - name: domains
    description: Custom sending domains
paths:
  /domains/{id}/dmarc:
    post:
      tags:
        - domains
      summary: Set DMARC policy
      description: Ramp the DMARC policy (none -> quarantine -> reject).
      operationId: setDmarcPolicy
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            format: uuid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SetDmarc'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  hostname:
                    type: string
                  dmarc_policy:
                    type: string
                  record:
                    $ref: '#/components/schemas/DnsRecord'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
components:
  schemas:
    SetDmarc:
      type: object
      required:
        - policy
      properties:
        policy:
          type: string
          enum:
            - none
            - quarantine
            - reject
    DnsRecord:
      type: object
      properties:
        type:
          type: string
          enum:
            - CNAME
            - TXT
            - MX
        name:
          type: string
          description: Fully-qualified record name
        content:
          type: string
        priority:
          type: integer
          nullable: true
          description: For MX records
        purpose:
          type: string
          description: dkim | spf | dmarc | inbound-mx | mailfrom-mx | mailfrom-spf
      required:
        - type
        - name
        - content
        - purpose
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````