{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/sendly-now/json-schema/sendly-now-dmarc-report-v1-list-schema.json",
  "title": "DmarcReportV1List",
  "description": "Cursor-paginated DMARC aggregate reports, newest window first.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sendly-now-deliverability-api-openapi.yml#/components/schemas/DmarcReportV1List",
  "properties": {
    "data": {
      "items": {
        "$ref": "#/$defs/DmarcReportV1"
      },
      "type": "array"
    },
    "has_more": {
      "type": "boolean"
    },
    "intake_configured": {
      "description": "Whether this deployment has a DMARC report intake mailbox configured. When `false` no report can ever arrive, so an empty `data` means the feature is off rather than that your domains are clean — the two are otherwise indistinguishable.",
      "type": "boolean"
    },
    "next_cursor": {
      "description": "Pass as `after` to fetch the next page. `null` on the last page.",
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [
    "data",
    "has_more",
    "next_cursor",
    "intake_configured"
  ],
  "type": "object",
  "$defs": {
    "DmarcReportV1": {
      "description": "One DMARC aggregate (RUA) report.",
      "properties": {
        "fail_count": {
          "type": "integer"
        },
        "id": {
          "type": "string"
        },
        "org_name": {
          "description": "The reporting receiver, e.g. `google.com`.",
          "type": "string"
        },
        "pass_count": {
          "description": "Messages DMARC-ALIGNED (SPF or DKIM aligned and passing), from `policy_evaluated`. Not the raw auth results: a message can pass SPF for a domain that is not the one in its From header, which is the case DMARC exists to catch.",
          "type": "integer"
        },
        "policy_domain": {
          "description": "The domain of yours the report is about.",
          "type": "string"
        },
        "range_begin": {
          "format": "date-time",
          "type": "string"
        },
        "range_end": {
          "format": "date-time",
          "type": "string"
        },
        "received_at": {
          "format": "date-time",
          "type": "string"
        },
        "report_id": {
          "description": "The receiver's own id for this report.",
          "type": "string"
        },
        "sources": {
          "description": "Per-sending-source rows, as the receiver reported them.",
          "items": {
            "properties": {
              "count": {
                "type": "integer"
              },
              "disposition": {
                "type": "string"
              },
              "dkim": {
                "type": "string"
              },
              "header_from": {
                "type": "string"
              },
              "source_ip": {
                "type": "string"
              },
              "spf": {
                "type": "string"
              }
            },
            "required": [
              "source_ip",
              "count",
              "disposition",
              "dkim",
              "spf",
              "header_from"
            ],
            "type": "object"
          },
          "type": "array"
        },
        "total_count": {
          "type": "integer"
        }
      },
      "required": [
        "id",
        "report_id",
        "org_name",
        "policy_domain",
        "range_begin",
        "range_end",
        "total_count",
        "pass_count",
        "fail_count",
        "sources",
        "received_at"
      ],
      "type": "object"
    }
  }
}