{
  "openapi": "3.1.0",
  "info": {
    "title": "ArchiHQ",
    "version": "1.0.0",
    "description": "ArchiHQ builds custom operational software for businesses. 15+ industries. You own the code.",
    "contact": {
      "name": "ArchiHQ",
      "url": "https://archihq.ai",
      "email": "contact@archihq.ai"
    },
    "license": {
      "name": "Proprietary"
    }
  },
  "servers": [
    {
      "url": "https://archihq.ai",
      "description": "Production"
    }
  ],
  "paths": {
    "/api/health": {
      "get": {
        "operationId": "getHealth",
        "summary": "Health check",
        "description": "Returns server health status.",
        "responses": {
          "200": {
            "description": "Healthy",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": { "type": "string", "example": "ok" }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/feed.xml": {
      "get": {
        "operationId": "getRssFeed",
        "summary": "RSS feed",
        "description": "Blog posts as RSS/Atom feed. English and Spanish posts included.",
        "responses": {
          "200": {
            "description": "RSS XML feed",
            "content": {
              "application/rss+xml": {
                "schema": { "type": "string" }
              }
            }
          }
        }
      }
    },
    "/sitemap.xml": {
      "get": {
        "operationId": "getSitemap",
        "summary": "XML sitemap",
        "description": "Full sitemap with all pages, blog posts, city pages, and Spanish translations.",
        "responses": {
          "200": {
            "description": "Sitemap XML",
            "content": {
              "application/xml": {
                "schema": { "type": "string" }
              }
            }
          }
        }
      }
    },
    "/api/analytics/collect": {
      "get": {
        "operationId": "collectAnalytics",
        "summary": "Analytics pixel",
        "description": "Server-side analytics collection endpoint. First-party, no cookies.",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "schema": { "type": "string" },
            "description": "Page path"
          },
          {
            "name": "ref",
            "in": "query",
            "schema": { "type": "string" },
            "description": "Referrer"
          }
        ],
        "responses": {
          "200": {
            "description": "1x1 transparent GIF"
          }
        }
      }
    }
  },
  "components": {},
  "tags": [],
  "externalDocs": {
    "description": "ArchiHQ site overview for AI agents",
    "url": "https://archihq.ai/llms.txt"
  }
}