{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/qualisend-com/json-schema/qualisend-com-result-schema.json",
  "title": "Result",
  "x-generated": "2026-11-22",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/qualisend-com-openapi.yml#/components/schemas/Result",
  "type": "object",
  "properties": {
    "email": {
      "type": "string",
      "format": "email"
    },
    "status": {
      "$ref": "#/$defs/Status"
    },
    "score": {
      "type": "integer",
      "minimum": 0,
      "maximum": 100
    },
    "sub_flags": {
      "type": "object",
      "properties": {
        "free_mail": {
          "type": "boolean"
        },
        "disposable": {
          "type": "boolean"
        },
        "role": {
          "type": "boolean"
        },
        "catch_all": {
          "type": "boolean"
        },
        "full_mailbox": {
          "type": "boolean"
        },
        "disabled": {
          "type": "boolean"
        }
      },
      "additionalProperties": {
        "type": "boolean"
      }
    },
    "did_you_mean": {
      "type": [
        "string",
        "null"
      ],
      "description": "A typo correction, e.g. \"jane@gmail.com\"."
    },
    "smtp": {
      "type": "string",
      "enum": [
        "pending",
        "cached",
        "skipped"
      ],
      "description": "`pending`: the SMTP mailbox probe is queued; poll `GET /jobs/{id}`\nfor the final verdict. `cached` or `skipped`: this result is already\nfinal.\n"
    },
    "reason": {
      "oneOf": [
        {
          "$ref": "#/$defs/Reason"
        },
        {
          "type": "null"
        }
      ]
    },
    "detail": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "$defs": {
    "Reason": {
      "type": "string",
      "enum": [
        "accepted_email",
        "low_deliverability",
        "low_quality",
        "invalid_email",
        "invalid_domain",
        "rejected_email",
        "timeout",
        "unavailable_smtp",
        "unknown"
      ]
    },
    "Status": {
      "type": "string",
      "enum": [
        "deliverable",
        "risky",
        "undeliverable",
        "unknown"
      ]
    }
  }
}