{
  "openapi": "3.1.0",
  "info": {
    "title": "Senderlint API",
    "version": "1.0.0",
    "description": "Free email-authentication check (SPF with lookup count, DKIM, DMARC, MX, BIMI, MTA-STS/TLS-RPT). No key."
  },
  "servers": [
    {
      "url": "https://senderlint.venturesites.workers.dev"
    }
  ],
  "paths": {
    "/api/check": {
      "get": {
        "operationId": "checkDomain",
        "summary": "Check a sending domain",
        "parameters": [
          {
            "name": "domain",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "mode",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "all",
                "spf",
                "dmarc",
                "dkim",
                "mx",
                "bimi",
                "mtasts",
                "gmail",
                "yahoo",
                "outlook"
              ]
            }
          },
          {
            "name": "selectors",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Check result",
            "content": {
              "application/json": {}
            }
          },
          "400": {
            "description": "Invalid domain"
          }
        }
      }
    }
  }
}