{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/orbisearch-com/json-schema/orbisearch-com-bulk-job-results-response-schema.json",
  "title": "BulkJobResultsResponse",
  "description": "Results of a completed bulk verification job.",
  "x-generated": "2026-11-22",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/orbisearch-com-openapi.json#/components/schemas/BulkJobResultsResponse",
  "properties": {
    "job_id": {
      "type": "string",
      "format": "uuid",
      "title": "Job Id",
      "description": "Unique job identifier."
    },
    "status": {
      "type": "string",
      "enum": [
        "complete",
        "partial_complete_retrying"
      ],
      "title": "Status",
      "description": "Job status when results were fetched."
    },
    "total_results": {
      "type": "integer",
      "title": "Total Results",
      "description": "Total number of results in this response."
    },
    "results": {
      "items": {
        "$ref": "#/$defs/EmailVerificationResponse"
      },
      "type": "array",
      "title": "Results",
      "description": "Array of email verification results."
    },
    "pending_retries": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Pending Retries",
      "description": "Emails still being retried (greylisted, awaiting MTA retry window). Empty when the job has fully settled."
    },
    "retry_count": {
      "type": "integer",
      "title": "Retry Count",
      "description": "The number of emails still queued for retry. Always the same as the number of entries in `pending_retries`.",
      "default": 0
    },
    "next_offset": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Next Offset",
      "description": "Offset of the next page. Present only when limit is set; null on the last page."
    }
  },
  "type": "object",
  "required": [
    "job_id",
    "status",
    "total_results",
    "results"
  ],
  "$defs": {
    "EmailVerificationResponse": {
      "properties": {
        "email": {
          "type": "string",
          "title": "Email",
          "description": "The email address that was verified."
        },
        "status": {
          "type": "string",
          "enum": [
            "safe",
            "risky",
            "invalid",
            "unknown"
          ],
          "pattern": "^(safe|risky|invalid|unknown)$",
          "title": "Status",
          "description": "Overall verification status: safe (deliverable), risky (uncertain), invalid (undeliverable), unknown (verification failed)."
        },
        "substatus": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Substatus",
          "description": "Specific reason for the status (e.g., deliverable, catch_all, inactive, policy_blocked, mailbox_not_found, invalid_syntax, greylisted, timeout)."
        },
        "explanation": {
          "type": "string",
          "title": "Explanation",
          "description": "Plain-English explanation of the verification result."
        },
        "email_provider": {
          "type": "string",
          "title": "Email Provider",
          "description": "Email service provider (Google Workspace, Gmail, Microsoft Outlook, etc.)."
        },
        "mx_record": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Mx Record",
          "description": "The main mail server the domain uses to receive email. Null if the domain has no mail server configured. When that happens, `substatus` will be `no_mx_records`."
        },
        "is_domain_catch_all": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "title": "Is Domain Catch All",
          "description": "True if the domain accepts mail for any username (catch-all). Null if we could not determine whether the domain is catch-all."
        },
        "is_secure_email_gateway": {
          "type": "boolean",
          "title": "Is Secure Email Gateway",
          "description": "True if the domain is protected by a secure email gateway: Proofpoint, Mimecast, Barracuda, or Trend Micro.",
          "default": false
        },
        "is_disposable": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "title": "Is Disposable",
          "description": "True if this is a temporary/disposable email service, false if not, null if unknown."
        },
        "is_role_account": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "title": "Is Role Account",
          "description": "True if this is a generic role-based email (info@, support@, etc.), false if not, null if unknown."
        },
        "is_free": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "title": "Is Free",
          "description": "True if this is from a free email provider (gmail.com, yahoo.com, etc.), false if not, null if unknown."
        },
        "confidence": {
          "anyOf": [
            {
              "type": "integer",
              "maximum": 100.0,
              "minimum": 0.0
            },
            {
              "type": "null"
            }
          ],
          "title": "Confidence",
          "description": "How certain we are in the result, on a 0–100 scale. Use it alongside `status` to tune how aggressively you filter. For `safe` results: 99 = deliverable, highest certainty; 98 = deliverable, but the domain sits behind a secure email gateway (Mimecast, Proofpoint, Barracuda, Trend Micro) that may still filter the message after accepting it; 97 = the address exists, but carries some risk of bouncing after acceptance. For `invalid` and `risky`, 99 means we are certain of the negative result. For `unknown`, 0. `null` when no score could be attached to the result. Treat that as unscored, not as low confidence."
        }
      },
      "type": "object",
      "required": [
        "email",
        "status",
        "explanation",
        "email_provider"
      ],
      "title": "EmailVerificationResponse",
      "description": "Verification result for a single email address."
    }
  }
}