{
  "openapi": "3.1.0",
  "info": {
    "title": "KI Ads Agentur Public API",
    "description": "Public contact, MCP and A2A interfaces for kiads-agentur.de.",
    "version": "1.0.0"
  },
  "servers": [{ "url": "https://www.kiads-agentur.de" }],
  "paths": {
    "/api/contact": {
      "post": {
        "operationId": "requestKiAdsAudit",
        "summary": "Request a KI Ads readiness audit",
        "requestBody": {
          "required": true,
          "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ContactRequest" } } }
        },
        "responses": { "200": { "description": "Request accepted" }, "400": { "description": "Invalid request" } }
      }
    },
    "/api/mcp": {
      "get": { "operationId": "getMcpMetadata", "summary": "Get MCP endpoint metadata", "responses": { "200": { "description": "MCP metadata" } } },
      "post": { "operationId": "callMcp", "summary": "Use the MCP Streamable HTTP JSON-RPC endpoint", "responses": { "200": { "description": "JSON-RPC response" } } }
    },
    "/api/agent": {
      "post": { "operationId": "sendAgentMessage", "summary": "Send a read-only A2A JSON-RPC message", "responses": { "200": { "description": "A2A response" } } }
    }
  },
  "components": {
    "schemas": {
      "ContactRequest": {
        "type": "object",
        "properties": {
          "name": { "type": "string" },
          "email": { "type": "string", "format": "email" },
          "company": { "type": "string" },
          "message": { "type": "string" }
        },
        "required": ["name", "email", "message"]
      }
    }
  }
}
