{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dmarc-examiner-com/json-schema/dmarc-examiner-com-domain-detail-schema.json",
  "title": "DomainDetail",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dmarc-examiner-com-domains-api-openapi.yml#/components/schemas/DomainDetail",
  "allOf": [
    {
      "$ref": "#/$defs/Domain"
    },
    {
      "type": "object",
      "required": [
        "reporting_email",
        "dmarc_host",
        "dmarc_record"
      ],
      "properties": {
        "reporting_email": {
          "type": "string",
          "format": "email",
          "description": "Address to set in the `rua=` tag of your DNS DMARC record so reports are delivered to this organization."
        },
        "dmarc_host": {
          "type": "string",
          "description": "DNS host where the DMARC record must be published."
        },
        "dmarc_record": {
          "type": "string",
          "description": "DMARC record string ready to copy into your DNS as a TXT record.\nIncludes a `ruf=` tag only if the current plan supports forensic reports.\n"
        }
      }
    }
  ],
  "$defs": {
    "Domain": {
      "type": "object",
      "required": [
        "id",
        "name",
        "status",
        "created_at",
        "updated_at"
      ],
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "name": {
          "type": "string"
        },
        "status": {
          "type": "string",
          "enum": [
            "verified",
            "pending",
            "failed"
          ]
        },
        "verified_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "last_report_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "created_at": {
          "type": "string",
          "format": "date-time"
        },
        "updated_at": {
          "type": "string",
          "format": "date-time"
        }
      }
    }
  }
}