{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/sortance/json-schema/sortance-check-response-schema.json",
  "title": "CheckResponse",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sortance-openapi.json#/components/schemas/CheckResponse",
  "type": "object",
  "properties": {
    "email": {
      "type": "string"
    },
    "domain": {
      "type": "string"
    },
    "passes": {
      "type": "boolean",
      "description": "Syntax valid, MX present, not disposable, not on your blocklists. Does not claim the mailbox exists."
    },
    "disposable": {
      "type": "boolean"
    },
    "suspected": {
      "type": "boolean"
    },
    "reason": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "syntax_invalid",
            "address_blocklisted",
            "domain_blocklisted",
            "no_mx",
            "mx_unresolved",
            "disposable_domain",
            "disposable_suspected",
            "domain_allowlisted",
            "address_allowlisted"
          ]
        },
        {
          "type": "null"
        }
      ]
    },
    "reasons": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "syntax_invalid",
          "address_blocklisted",
          "domain_blocklisted",
          "no_mx",
          "mx_unresolved",
          "disposable_domain",
          "disposable_suspected",
          "domain_allowlisted",
          "address_allowlisted"
        ]
      }
    },
    "checks": {
      "type": "object",
      "properties": {
        "syntax": {
          "type": "string",
          "enum": [
            "pass",
            "fail"
          ]
        },
        "mx": {
          "type": "string",
          "enum": [
            "pass",
            "fail",
            "unknown"
          ]
        },
        "disposable": {
          "type": "string",
          "enum": [
            "pass",
            "fail",
            "suspected"
          ]
        }
      }
    },
    "esp": {
      "type": "string",
      "enum": [
        "microsoft365",
        "google_workspace",
        "consumer_esp",
        "self_hosted",
        "unknown"
      ]
    },
    "email_type": {
      "type": "string",
      "enum": [
        "business",
        "free",
        "role",
        "disposable",
        "relay",
        "unknown"
      ]
    },
    "mx_hosts": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "mx_provider": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "latency_ms": {
      "type": "integer"
    },
    "trace_id": {
      "type": "string",
      "description": "ck_-prefixed."
    }
  },
  "required": [
    "email",
    "domain",
    "passes",
    "disposable",
    "suspected",
    "reason",
    "reasons",
    "checks",
    "esp",
    "email_type",
    "mx_hosts",
    "mx_provider",
    "latency_ms",
    "trace_id"
  ]
}