{
  "openapi": "3.0.3",
  "info": {
    "title": "GlobConnect World Public Developer API",
    "description": "Free, sovereign, real-time B2B website performance inspection, SEO grader, and cold email spam detection API powered by the AEOS Empire.",
    "version": "1.0.0",
    "contact": {
      "name": "GlobConnect Developer Relations",
      "url": "https://globconnectworld.com"
    }
  },
  "servers": [
    {
      "url": "https://globconnectworld.com",
      "description": "Production Global Gateway"
    }
  ],
  "paths": {
    "/api/v1/inspect": {
      "get": {
        "summary": "Inspect Website TTFB, SSL, SEO & IndexNow Status",
        "description": "Scans any public website in sub-seconds and returns response latency, security headers, metadata, and IndexNow support.",
        "parameters": [
          {
            "name": "domain",
            "in": "query",
            "required": true,
            "description": "Domain or full URL to inspect (e.g. stripe.com or https://example.com)",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful real-time inspection report",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": { "type": "string", "example": "success" },
                    "data": {
                      "type": "object",
                      "properties": {
                        "domain": { "type": "string" },
                        "score": { "type": "integer" },
                        "ttfbMs": { "type": "integer" },
                        "issuesCount": { "type": "integer" }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/spam-check": {
      "post": {
        "summary": "Cold Email Spam Trigger Words Scanner",
        "description": "Scans outreach emails against hundreds of spam triggers and returns a deliverability score.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "subject": { "type": "string", "example": "Partnership inquiry" },
                  "body": { "type": "string", "example": "Hello, wanted to follow up..." }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Spam analysis result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": { "type": "string" },
                    "score": { "type": "integer" },
                    "verdict": { "type": "string" }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}
