{
  "openapi": "3.1.0",
  "info": {
    "title": "Email Validation API",
    "version": "1.0.0",
    "description": "Syntax, live MX check, disposable detection and typo suggestions for any email address.\n\nValidate an email address end to end: syntax check, live MX-record lookup, disposable-provider detection, and \"did you mean\" typo suggestions for popular mail domains — everything you need to qualify signups.",
    "contact": {
      "name": "Data and APIs",
      "url": "https://dataandapis.com/contact"
    },
    "termsOfService": "https://dataandapis.com/terms-of-service",
    "license": {
      "name": "Data and APIs Terms of Service",
      "url": "https://dataandapis.com/terms-of-service"
    },
    "x-logo": {
      "url": "https://dataandapis.com/images/email-validation.webp"
    }
  },
  "externalDocs": {
    "description": "Documentation, live tester and pricing",
    "url": "https://dataandapis.com/apis/email-validation"
  },
  "servers": [
    {
      "url": "https://api-email-validation.dataandapis.com"
    }
  ],
  "tags": [
    {
      "name": "Tools",
      "description": "Email Validation API belongs to the Tools category of the Data and APIs catalog."
    }
  ],
  "paths": {
    "/v1/validate": {
      "get": {
        "operationId": "validateEmail",
        "summary": "Validate Email",
        "description": "Validate Email endpoint of the Email Validation API. Costs 10 tokens per call.",
        "externalDocs": {
          "url": "https://dataandapis.com/apis/email-validation/validate-email"
        },
        "parameters": [
          {
            "name": "email",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "jane.doe@gmail.com"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "example": {
                  "email": "jane.doe@gmail.com",
                  "syntax_valid": true,
                  "domain": "gmail.com",
                  "mx_found": true,
                  "mx_hosts": [
                    "gmail-smtp-in.l.google.com."
                  ],
                  "is_disposable": false,
                  "did_you_mean": null,
                  "deliverable": true
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key"
          },
          "402": {
            "description": "Subscription past due; the response carries a payment_url"
          },
          "429": {
            "description": "Monthly token allowance exhausted"
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ]
      }
    }
  },
  "components": {
    "securitySchemes": {
      "ApiKey": {
        "type": "apiKey",
        "in": "header",
        "name": "X-Api-Key",
        "description": "Create a free key at https://dataandapis.com/sign-up. 500 tokens a month on the Free plan; this API costs 10 tokens per call."
      }
    }
  },
  "security": [
    {
      "ApiKey": []
    }
  ]
}