{
  "openapi": "3.1.0",
  "info": {
    "title": "BrandHoop public content API",
    "version": "1.0.0",
    "description": "Read-only access to published content. No checkout, booking or contact submission."
  },
  "servers": [
    {
      "url": "https://brandhoop.at"
    }
  ],
  "paths": {
    "/agent-api/health": {
      "get": {
        "summary": "Service health",
        "responses": {
          "200": {
            "description": "Published content",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/agent-api/services": {
      "get": {
        "summary": "Published services, glossary and FAQ",
        "responses": {
          "200": {
            "description": "Published content",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/agent-api/search": {
      "get": {
        "summary": "Search published pages",
        "responses": {
          "200": {
            "description": "Published content",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            }
          }
        ]
      }
    },
    "/agent-api/page": {
      "get": {
        "summary": "Read a canonical page as Markdown",
        "responses": {
          "200": {
            "description": "Published content",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "path",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 200
            }
          }
        ]
      }
    },
    "/agent-api/private/content": {
      "get": {
        "summary": "Read-only content export for registered agents",
        "responses": {
          "200": {
            "description": "Published content",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Bearer token required; see WWW-Authenticate resource_metadata"
          }
        },
        "security": [
          {
            "oauth": [
              "content:read"
            ]
          }
        ]
      }
    }
  },
  "components": {
    "securitySchemes": {
      "oauth": {
        "type": "oauth2",
        "flows": {
          "clientCredentials": {
            "tokenUrl": "https://brandhoop.at/oauth/token",
            "scopes": {
              "content:read": "Read already-public BrandHoop content"
            }
          }
        }
      }
    }
  }
}
