{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/lumail-io/json-schema/lumail-io-verify-response-schema.json",
  "title": "VerifyResponse",
  "x-generated": "2026-11-17",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/lumail-io-openapi.json#/components/schemas/VerifyResponse",
  "type": "object",
  "required": [
    "object",
    "id",
    "email",
    "result",
    "accept",
    "status",
    "score",
    "suggestion",
    "issues",
    "quota",
    "retry_at",
    "cache_hit"
  ],
  "additionalProperties": false,
  "properties": {
    "object": {
      "type": "string",
      "const": "email_verification"
    },
    "id": {
      "type": "string"
    },
    "email": {
      "type": "string",
      "format": "email"
    },
    "result": {
      "type": "string",
      "enum": [
        "deliverable",
        "undeliverable",
        "risky",
        "unknown"
      ]
    },
    "accept": {
      "type": "boolean",
      "description": "Policy decision. Can be true when the monthly quota is exhausted."
    },
    "status": {
      "type": "string",
      "enum": [
        "completed",
        "skipped",
        "failed"
      ]
    },
    "score": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": 0,
      "maximum": 100,
      "description": "Deliverability confidence. null when nothing was verified."
    },
    "suggestion": {
      "type": [
        "string",
        "null"
      ],
      "description": "Corrected address when the domain looks like a typo."
    },
    "issues": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/VerifyIssue"
      }
    },
    "quota": {
      "type": "object",
      "required": [
        "limit",
        "used",
        "remaining",
        "resets_at"
      ],
      "properties": {
        "limit": {
          "type": "integer"
        },
        "used": {
          "type": "integer"
        },
        "remaining": {
          "type": "integer"
        },
        "resets_at": {
          "type": "string",
          "format": "date-time"
        }
      },
      "additionalProperties": false
    },
    "retry_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "cache_hit": {
      "type": "boolean"
    }
  },
  "$defs": {
    "VerifyIssue": {
      "type": "object",
      "required": [
        "code",
        "message",
        "severity",
        "retryable"
      ],
      "properties": {
        "code": {
          "type": "string"
        },
        "message": {
          "type": "string"
        },
        "severity": {
          "type": "string",
          "enum": [
            "error",
            "warning"
          ]
        },
        "retryable": {
          "type": "boolean"
        }
      },
      "additionalProperties": false
    }
  }
}