{
  "openapi": "3.0.3",
  "info": {
    "title": "Email Check Tool API",
    "description": "Email validation API for syntax, MX, and disposable checks.",
    "version": "1.0.0"
  },
  "servers": [
    { "url": "https://emailchecktool.com/api" }
  ],
  "paths": {
    "/verify": {
      "post": {
        "summary": "Verify an email address",
        "operationId": "verifyEmail",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": ["email"],
                "properties": {
                  "email": { "type": "string", "format": "email", "example": "test@example.com" }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Verification result",
            "content": {
              "application/json": {
                "schema": { "$ref": "#/components/schemas/VerifyResponse" }
              }
            }
          },
          "400": { "description": "Invalid request" },
          "422": { "description": "Validation error" },
          "429": { "description": "Rate limit exceeded" },
          "500": { "description": "Server error" }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "VerifyResponse": {
        "type": "object",
        "properties": {
          "email": { "type": "string" },
          "valid": { "type": "boolean" },
          "score": { "type": "integer", "minimum": 0, "maximum": 100 },
          "checks": {
            "type": "object",
            "properties": {
              "syntax": { "type": "boolean" },
              "mx": { "type": "boolean" },
              "disposable": { "type": "boolean" },
              "role_based": { "type": "boolean" }
            }
          }
        }
      }
    },
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "X-API-Key",
        "description": "Coming soon"
      }
    }
  }
}
