{
  "openapi": "3.1.0",
  "info": {
    "title": "Amir-OS Public API Hub",
    "version": "1.0.0",
    "description": "Public-safe developer endpoints for API discovery and health. Protected product APIs remain separately authorized."
  },
  "servers": [
    {
      "url": "https://api.amir-os.com/hub-api/v1"
    }
  ],
  "paths": {
    "/ping": {
      "get": {
        "summary": "Public API Hub health",
        "description": "Returns a minimal public-safe health payload.",
        "responses": {
          "200": {
            "description": "Operational",
            "headers": {
              "RateLimit-Policy": {
                "schema": {
                  "type": "string"
                },
                "description": "Current public rate policy"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "type": "boolean"
                    },
                    "service": {
                      "type": "string"
                    },
                    "version": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Public rate limit exceeded",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        }
      }
    },
    "/catalog": {
      "get": {
        "summary": "Public integration catalog",
        "description": "Lists public developer surfaces and product families without private topology.",
        "responses": {
          "200": {
            "description": "Catalog",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Public rate limit exceeded",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        }
      }
    },
    "/openapi.json": {
      "get": {
        "summary": "This OpenAPI document",
        "responses": {
          "200": {
            "description": "OpenAPI 3.1 JSON"
          },
          "429": {
            "description": "Public rate limit exceeded"
          }
        }
      }
    }
  },
  "x-amir-os-policy": {
    "publicRateLimit": "60 requests/minute per network address with bounded burst",
    "transport": "HTTPS only",
    "secrets": "Never submit production credentials to public tooling",
    "versioning": "Breaking changes use a new major version"
  }
}