{
  "openapi": "3.1.0",
  "info": {
    "title": "SkipSend API",
    "version": "1.0",
    "description": "Check whether an email address or domain is disposable. Free, no API key. Limits: 2,000 requests per IP each month (per /64 for IPv6) and 1 per second; requests that return an error count too. The API sends no CORS headers, so call it from a server."
  },
  "externalDocs": {
    "url": "https://skipsend.com/api-docs/"
  },
  "servers": [
    {
      "url": "https://skipsend.com"
    }
  ],
  "paths": {
    "/api/v1/check/": {
      "get": {
        "operationId": "checkEmail",
        "summary": "Check an email address or domain",
        "description": "Looks up the domain after the @ (or the bare domain) against known disposable domains and the mail servers disposable services run. Use the skip field to decide whether to accept the address.",
        "parameters": [
          {
            "name": "email",
            "in": "query",
            "required": true,
            "description": "An email address, or a bare domain such as example.com.",
            "schema": {
              "type": "string"
            },
            "example": "jo@guerrillamail.com"
          }
        ],
        "responses": {
          "200": {
            "description": "Check result.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CheckResult"
                },
                "example": {
                  "domain": "guerrillamail.com",
                  "matched_domain": "guerrillamail.com",
                  "skip": true,
                  "disposable": true,
                  "provider": "guerrillamail.com",
                  "no_mx": false,
                  "cf_routed": false,
                  "relay": false
                }
              }
            }
          },
          "400": {
            "description": "missing_parameter: email is empty or missing. invalid_email: an @ with nothing before or after it. invalid_domain: the part after the @ isn't a valid domain.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: over the per-second or monthly limit. Monthly limits reset at 00:00 UTC on the 1st.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before the next request.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "lookup_failed: the DNS lookup for the domain got no answer, so there's no verdict. Try again shortly, and let the signup through meanwhile.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "CheckResult": {
        "type": "object",
        "required": ["domain", "matched_domain", "skip", "disposable", "provider", "no_mx", "cf_routed", "relay"],
        "properties": {
          "domain": {
            "type": "string",
            "description": "The domain that was checked, taken from the part after the @."
          },
          "matched_domain": {
            "type": "string",
            "description": "The domain on the list that matched. For a subdomain such as mail.guerrillamail.com it's guerrillamail.com; otherwise the same as domain."
          },
          "skip": {
            "type": "boolean",
            "description": "True when any of disposable, no_mx, cf_routed or relay is true. The one field most forms need."
          },
          "disposable": {
            "type": "boolean",
            "description": "The domain, or the mail server behind it, belongs to a disposable email service."
          },
          "provider": {
            "type": ["string", "null"],
            "description": "The disposable service's main domain, or null."
          },
          "no_mx": {
            "type": "boolean",
            "description": "The domain has no MX records, doesn't exist, or its DNS servers fail to answer, so it can't receive email."
          },
          "cf_routed": {
            "type": "boolean",
            "description": "Mail goes through Cloudflare Email Routing, which hides the real inbox. Read this field yourself to allow these domains."
          },
          "relay": {
            "type": "boolean",
            "description": "A forwarding alias from a privacy service such as Sign in with Apple, SimpleLogin, Proton Pass, Firefox Relay or DuckDuckGo, which hides the real inbox. Read this field yourself to allow these addresses. If you offer Sign in with Apple, let privaterelay.appleid.com addresses through: Apple gives each person only one per app."
          }
        }
      },
      "Error": {
        "type": "object",
        "required": ["error", "message"],
        "properties": {
          "error": {
            "type": "string",
            "enum": ["missing_parameter", "invalid_email", "invalid_domain", "rate_limited", "lookup_failed"]
          },
          "message": {
            "type": "string",
            "description": "A readable explanation."
          }
        }
      }
    }
  }
}
