{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/sendbridge-com/json-schema/sendbridge-com-mail-test-result-schema.json",
  "title": "MailTestResult",
  "x-generated": "2026-10-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sendbridge-com-openapi.json#/components/schemas/MailTestResult",
  "type": "object",
  "required": [
    "status",
    "poll_after_seconds",
    "report"
  ],
  "properties": {
    "status": {
      "type": "string",
      "enum": [
        "pending",
        "processing",
        "completed"
      ]
    },
    "poll_after_seconds": {
      "type": "integer"
    },
    "report": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "$ref": "#/$defs/MailTestReport"
        }
      ]
    }
  },
  "$defs": {
    "MailTestReport": {
      "type": "object",
      "description": "Deliverability report. Raw email and original headers are never returned.",
      "properties": {
        "test_token": {
          "type": "string"
        },
        "report_id": {
          "type": [
            "string",
            "null"
          ]
        },
        "email_from": {
          "type": [
            "string",
            "null"
          ]
        },
        "email_subject": {
          "type": [
            "string",
            "null"
          ]
        },
        "email_received_at": {
          "type": [
            "string",
            "null"
          ]
        },
        "from_domain": {
          "type": [
            "string",
            "null"
          ]
        },
        "score": {
          "type": [
            "number",
            "null"
          ]
        },
        "grade": {
          "type": [
            "string",
            "null"
          ]
        },
        "category_scores": {
          "type": [
            "object",
            "null"
          ],
          "additionalProperties": true
        },
        "rspamd_score": {
          "type": [
            "number",
            "null"
          ]
        },
        "rspamd_details": {
          "type": [
            "object",
            "null"
          ],
          "additionalProperties": true
        },
        "spamassassin_score": {
          "type": [
            "number",
            "null"
          ]
        },
        "spamassassin_details": {
          "type": [
            "object",
            "null"
          ],
          "additionalProperties": true
        },
        "spf_result": {
          "type": [
            "string",
            "null"
          ]
        },
        "spf_details": {
          "type": [
            "object",
            "null"
          ],
          "additionalProperties": true
        },
        "dkim_result": {
          "type": [
            "string",
            "null"
          ]
        },
        "dkim_details": {
          "type": [
            "object",
            "null"
          ],
          "additionalProperties": true
        },
        "dmarc_result": {
          "type": [
            "string",
            "null"
          ]
        },
        "dmarc_details": {
          "type": [
            "object",
            "null"
          ],
          "additionalProperties": true
        },
        "arc_result": {
          "type": [
            "string",
            "null"
          ]
        },
        "arc_details": {
          "type": [
            "object",
            "null"
          ],
          "additionalProperties": true
        },
        "bimi_result": {
          "type": [
            "string",
            "null"
          ]
        },
        "bimi_details": {
          "type": [
            "object",
            "null"
          ],
          "additionalProperties": true
        },
        "iprev_result": {
          "type": [
            "string",
            "null"
          ]
        },
        "iprev_details": {
          "type": [
            "object",
            "null"
          ],
          "additionalProperties": true
        },
        "alignment_details": {
          "type": [
            "object",
            "null"
          ],
          "additionalProperties": true
        },
        "headers_details": {
          "type": [
            "object",
            "null"
          ],
          "additionalProperties": true
        },
        "mime_details": {
          "type": [
            "object",
            "null"
          ],
          "additionalProperties": true
        },
        "tls_details": {
          "type": [
            "object",
            "null"
          ],
          "additionalProperties": true
        },
        "helo_details": {
          "type": [
            "object",
            "null"
          ],
          "additionalProperties": true
        },
        "unsubscribe_details": {
          "type": [
            "object",
            "null"
          ],
          "additionalProperties": true
        },
        "dns_checks": {
          "type": [
            "object",
            "null"
          ],
          "additionalProperties": true
        },
        "blacklist_checks": {
          "type": [
            "array",
            "object",
            "null"
          ]
        },
        "broken_links": {
          "type": [
            "array",
            "object",
            "null"
          ]
        },
        "content_analysis": {
          "type": [
            "object",
            "null"
          ],
          "additionalProperties": true
        },
        "sender_ip": {
          "type": [
            "string",
            "null"
          ]
        },
        "created_at": {
          "type": [
            "string",
            "null"
          ]
        },
        "expires_at": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    }
  }
}