{
  "openapi": "3.1.0",
  "info": {
    "title": "Heffl Public API",
    "version": "1.0.0",
    "description": "Public API endpoints for Heffl.com agent and integration discovery."
  },
  "servers": [
    {
      "url": "https://heffl.com",
      "description": "Heffl marketing site"
    }
  ],
  "paths": {
    "/api/hello": {
      "get": {
        "operationId": "hello",
        "summary": "Health check",
        "description": "Simple health check endpoint.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "name": { "type": "string" }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/markdown": {
      "get": {
        "operationId": "getMarkdown",
        "summary": "Markdown page content",
        "description": "Returns markdown representation of a page for AI agents.",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "schema": { "type": "string" },
            "description": "Page path (e.g. /pricing)"
          }
        ],
        "responses": {
          "200": {
            "description": "Markdown content",
            "content": {
              "text/markdown": {
                "schema": { "type": "string" }
              }
            }
          }
        }
      }
    }
  },
  "x-service-info": {
    "categories": ["crm", "field-service", "projects", "business-tools"]
  }
}
