{
  "openapi": "3.1.0",
  "info": {
    "title": "anything2shell Passive Exposure Scanner & Advisory API",
    "version": "1.0.0",
    "description": "Passive HTTP header, DNS (SPF/DMARC/CAA), and Shodan InternetDB exposure checker and security alert subscription API for Java4Shell, PHP2Shell, Node2Shell, HTTP2Shell / NGINX2Shell, React2Shell, and Ruby2Shell.",
    "contact": {
      "name": "Jorge Liauw Calo",
      "url": "https://anything2shell.com/"
    }
  },
  "servers": [
    {
      "url": "https://anything2shell.com"
    }
  ],
  "paths": {
    "/api/check": {
      "get": {
        "operationId": "checkDomainGet",
        "summary": "Passively check a public domain for *2Shell exposure",
        "parameters": [
          {
            "name": "domain",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "example": "example.com"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Passive scan result with 9 scanner findings and site telemetry"
          }
        }
      },
      "post": {
        "operationId": "checkDomainPost",
        "summary": "Passively check a public domain for *2Shell exposure (fast or full mode)",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": ["domain"],
                "properties": {
                  "domain": {
                    "type": "string",
                    "example": "example.com"
                  },
                  "mode": {
                    "type": "string",
                    "enum": ["fast", "full"],
                    "default": "fast"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Passive scan result with 9 scanner findings and site telemetry"
          }
        }
      }
    },
    "/api/subscribe": {
      "post": {
        "operationId": "manageAlertSubscription",
        "summary": "Subscribe, verify, or unsubscribe for critical *2Shell email advisories",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": ["action"],
                "properties": {
                  "action": {
                    "type": "string",
                    "enum": ["register", "verify", "unsubscribe"]
                  },
                  "email": {
                    "type": "string",
                    "format": "email"
                  },
                  "domain": {
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Subscription action status"
          }
        }
      }
    }
  }
}
