{
  "openapi": "3.1.0",
  "info": {
    "title": "Kayee Public REST & MCP API",
    "version": "1.1.0",
    "summary": "Versioned read-only REST (/api/v1) and Streamable HTTP MCP (/api/mcp) API for Kayee's SitecoreAI, XM Cloud, DAM, and AI engineering knowledge base, case studies, and consulting services.",
    "description": "Official OpenAPI 3.1.0 specification for Kayee (https://www.kayee.nl), the independent digital consultancy of Robbert Hock (17x Sitecore MVP & AI Solutions Architect). All endpoints are public, read-only, and require no API key.\n\n## Versioning & deprecation policy\n- **URL path versioning**: All REST endpoints are versioned under `/api/v1/` and return `X-API-Version: v1`.\n- **Deprecation & sunset policy**: Breaking changes are never introduced inside `/api/v1/`. Any future version deprecation is announced at least **6 months in advance** using RFC 9745 `Deprecation` and RFC 8594 `Sunset` HTTP headers alongside a notice at https://www.kayee.nl/en/docs#deprecation-policy.\n\n## Rate limiting\n- Public read-only endpoints return RFC rate-limit headers (`RateLimit-Limit`, `RateLimit-Remaining`, `RateLimit-Reset`, `RateLimit-Policy`).\n- Exceeded limits return `HTTP 429` with `application/problem+json` and a `Retry-After` header in seconds.\n\n## Error model\n- All `4xx` and `5xx` error responses use RFC 9457 `application/problem+json` (`ProblemDetails`) with machine-readable `code`, human-readable `message`/`detail`, and actionable `hint` fields.",
    "x-deprecation-policy": "https://www.kayee.nl/en/docs#deprecation-policy",
    "contact": {
      "name": "Robbert Hock — Kayee",
      "url": "https://www.kayee.nl/en/contact",
      "email": "info@kayee.nl"
    }
  },
  "servers": [
    {
      "url": "https://www.kayee.nl",
      "description": "Production (v1)"
    }
  ],
  "externalDocs": {
    "description": "Kayee API Documentation & Deprecation Policy",
    "url": "https://www.kayee.nl/en/docs#deprecation-policy"
  },
  "paths": {
    "/api/v1/articles": {
      "get": {
        "operationId": "listArticles",
        "summary": "Search and list Kayee technical articles",
        "description": "Search 250+ SitecoreAI, XM Cloud, Design Studio atoms, Bynder DAM, Next.js, and AI engineering articles by free-text query or exact tag.",
        "parameters": [
          { "$ref": "#/components/parameters/ApiVersionHeader" },
          {
            "name": "query",
            "in": "query",
            "required": false,
            "description": "Optional case-insensitive free-text search query matching title, excerpt, category, tags, or body.",
            "schema": { "type": "string" }
          },
          {
            "name": "tag",
            "in": "query",
            "required": false,
            "description": "Optional exact tag filter (for example: sitecore, sitecoreai, ai, bynder, xm-cloud).",
            "schema": { "type": "string" }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum number of articles to return (integer between 1 and 50, default 10).",
            "schema": { "type": "integer", "minimum": 1, "maximum": 50, "default": 10 }
          }
        ],
        "responses": {
          "200": {
            "description": "Matching technical articles",
            "headers": {
              "RateLimit-Limit": { "$ref": "#/components/headers/RateLimitLimit" },
              "RateLimit-Remaining": { "$ref": "#/components/headers/RateLimitRemaining" },
              "RateLimit-Reset": { "$ref": "#/components/headers/RateLimitReset" },
              "RateLimit-Policy": { "$ref": "#/components/headers/RateLimitPolicy" },
              "X-API-Version": { "$ref": "#/components/headers/ApiVersion" },
              "Deprecation": { "$ref": "#/components/headers/Deprecation" },
              "Sunset": { "$ref": "#/components/headers/Sunset" }
            },
            "content": {
              "application/json": {
                "schema": { "$ref": "#/components/schemas/ArticlesResponse" }
              }
            }
          },
          "400": {
            "description": "Invalid query parameter (RFC 9457 Problem Details).",
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              },
              "application/json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            }
          },
          "404": {
            "description": "Resource not found (RFC 9457 Problem Details).",
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              },
              "application/json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded (RFC 9457 Problem Details).",
            "headers": {
              "Retry-After": { "$ref": "#/components/headers/RetryAfter" }
            },
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              },
              "application/json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            }
          },
          "500": {
            "description": "Unexpected server error (RFC 9457 Problem Details).",
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              },
              "application/json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            }
          }
        }
      }
    },
    "/api/v1/articles/{slug}": {
      "get": {
        "operationId": "getArticleBySlug",
        "summary": "Get full Markdown and metadata for a technical article",
        "description": "Retrieve the complete Markdown body, canonical URL, publication date, category, tags, and excerpt for a single Kayee blog article.",
        "parameters": [
          { "$ref": "#/components/parameters/ApiVersionHeader" },
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "description": "Canonical blog article slug (returned by listArticles).",
            "schema": { "type": "string" }
          }
        ],
        "responses": {
          "200": {
            "description": "Full article record with Markdown body",
            "headers": {
              "RateLimit-Limit": { "$ref": "#/components/headers/RateLimitLimit" },
              "RateLimit-Remaining": { "$ref": "#/components/headers/RateLimitRemaining" },
              "RateLimit-Reset": { "$ref": "#/components/headers/RateLimitReset" },
              "RateLimit-Policy": { "$ref": "#/components/headers/RateLimitPolicy" },
              "X-API-Version": { "$ref": "#/components/headers/ApiVersion" },
              "Deprecation": { "$ref": "#/components/headers/Deprecation" },
              "Sunset": { "$ref": "#/components/headers/Sunset" }
            },
            "content": {
              "application/json": {
                "schema": { "$ref": "#/components/schemas/ArticleDetail" }
              }
            }
          },
          "400": {
            "description": "Invalid slug parameter (RFC 9457 Problem Details).",
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              },
              "application/json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            }
          },
          "404": {
            "description": "Article not found (RFC 9457 Problem Details).",
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              },
              "application/json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded (RFC 9457 Problem Details).",
            "headers": {
              "Retry-After": { "$ref": "#/components/headers/RetryAfter" }
            },
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              },
              "application/json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            }
          },
          "500": {
            "description": "Unexpected server error (RFC 9457 Problem Details).",
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              },
              "application/json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            }
          }
        }
      }
    },
    "/api/v1/case-studies": {
      "get": {
        "operationId": "listCaseStudies",
        "summary": "Search and list Kayee client case studies",
        "description": "Search 30+ enterprise and SME client case studies by keyword, client name, or technology stack.",
        "parameters": [
          { "$ref": "#/components/parameters/ApiVersionHeader" },
          {
            "name": "query",
            "in": "query",
            "required": false,
            "description": "Optional free-text search query matching title, client, summary, or technologies.",
            "schema": { "type": "string" }
          },
          {
            "name": "client",
            "in": "query",
            "required": false,
            "description": "Optional client name or slug filter (for example: velir, human-digital, lukkien).",
            "schema": { "type": "string" }
          },
          {
            "name": "technology",
            "in": "query",
            "required": false,
            "description": "Optional technology filter (for example: Sitecore, Bynder, XM Cloud, Solr, WordPress).",
            "schema": { "type": "string" }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum number of case studies to return (integer between 1 and 50, default 10).",
            "schema": { "type": "integer", "minimum": 1, "maximum": 50, "default": 10 }
          }
        ],
        "responses": {
          "200": {
            "description": "Matching client case studies",
            "headers": {
              "RateLimit-Limit": { "$ref": "#/components/headers/RateLimitLimit" },
              "RateLimit-Remaining": { "$ref": "#/components/headers/RateLimitRemaining" },
              "RateLimit-Reset": { "$ref": "#/components/headers/RateLimitReset" },
              "RateLimit-Policy": { "$ref": "#/components/headers/RateLimitPolicy" },
              "X-API-Version": { "$ref": "#/components/headers/ApiVersion" },
              "Deprecation": { "$ref": "#/components/headers/Deprecation" },
              "Sunset": { "$ref": "#/components/headers/Sunset" }
            },
            "content": {
              "application/json": {
                "schema": { "$ref": "#/components/schemas/CaseStudiesResponse" }
              }
            }
          },
          "400": {
            "description": "Invalid query parameter (RFC 9457 Problem Details).",
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              },
              "application/json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            }
          },
          "404": {
            "description": "Resource not found (RFC 9457 Problem Details).",
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              },
              "application/json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded (RFC 9457 Problem Details).",
            "headers": {
              "Retry-After": { "$ref": "#/components/headers/RetryAfter" }
            },
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              },
              "application/json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            }
          },
          "500": {
            "description": "Unexpected server error (RFC 9457 Problem Details).",
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              },
              "application/json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            }
          }
        }
      }
    },
    "/api/v1/case-studies/{slug}": {
      "get": {
        "operationId": "getCaseStudyBySlug",
        "summary": "Get full Markdown and metadata for a client case study",
        "description": "Retrieve the complete Markdown case study, client context, technology tags, and canonical URL for a specific project slug.",
        "parameters": [
          { "$ref": "#/components/parameters/ApiVersionHeader" },
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "description": "Canonical project slug (returned by listCaseStudies).",
            "schema": { "type": "string" }
          },
          {
            "name": "lang",
            "in": "query",
            "required": false,
            "description": "Preferred language for title, summary, and canonical URL.",
            "schema": { "type": "string", "enum": ["en", "nl"], "default": "en" }
          }
        ],
        "responses": {
          "200": {
            "description": "Full client case study record",
            "headers": {
              "RateLimit-Limit": { "$ref": "#/components/headers/RateLimitLimit" },
              "RateLimit-Remaining": { "$ref": "#/components/headers/RateLimitRemaining" },
              "RateLimit-Reset": { "$ref": "#/components/headers/RateLimitReset" },
              "RateLimit-Policy": { "$ref": "#/components/headers/RateLimitPolicy" },
              "X-API-Version": { "$ref": "#/components/headers/ApiVersion" },
              "Deprecation": { "$ref": "#/components/headers/Deprecation" },
              "Sunset": { "$ref": "#/components/headers/Sunset" }
            },
            "content": {
              "application/json": {
                "schema": { "$ref": "#/components/schemas/CaseStudyDetail" }
              }
            }
          },
          "400": {
            "description": "Invalid request parameter (RFC 9457 Problem Details).",
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              },
              "application/json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            }
          },
          "404": {
            "description": "Case study not found (RFC 9457 Problem Details).",
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              },
              "application/json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded (RFC 9457 Problem Details).",
            "headers": {
              "Retry-After": { "$ref": "#/components/headers/RetryAfter" }
            },
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              },
              "application/json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            }
          },
          "500": {
            "description": "Unexpected server error (RFC 9457 Problem Details).",
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              },
              "application/json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            }
          }
        }
      }
    },
    "/api/v1/services": {
      "get": {
        "operationId": "listServicesAndEngagements",
        "summary": "Get Kayee consulting services, engagement models, and contact details",
        "description": "Retrieve structured information about Kayee's consulting services, fixed-price SME AI pilot ranges, enterprise SitecoreAI engagement models, and direct contact details for Robbert Hock.",
        "parameters": [
          { "$ref": "#/components/parameters/ApiVersionHeader" }
        ],
        "responses": {
          "200": {
            "description": "Structured services, engagement models, and provider metadata",
            "headers": {
              "RateLimit-Limit": { "$ref": "#/components/headers/RateLimitLimit" },
              "RateLimit-Remaining": { "$ref": "#/components/headers/RateLimitRemaining" },
              "RateLimit-Reset": { "$ref": "#/components/headers/RateLimitReset" },
              "RateLimit-Policy": { "$ref": "#/components/headers/RateLimitPolicy" },
              "X-API-Version": { "$ref": "#/components/headers/ApiVersion" },
              "Deprecation": { "$ref": "#/components/headers/Deprecation" },
              "Sunset": { "$ref": "#/components/headers/Sunset" }
            },
            "content": {
              "application/json": {
                "schema": { "$ref": "#/components/schemas/ServicesResponse" }
              }
            }
          },
          "400": {
            "description": "Invalid request (RFC 9457 Problem Details).",
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              },
              "application/json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            }
          },
          "404": {
            "description": "Resource not found (RFC 9457 Problem Details).",
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              },
              "application/json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded (RFC 9457 Problem Details).",
            "headers": {
              "Retry-After": { "$ref": "#/components/headers/RetryAfter" }
            },
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              },
              "application/json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            }
          },
          "500": {
            "description": "Unexpected server error (RFC 9457 Problem Details).",
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              },
              "application/json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            }
          }
        }
      }
    },
    "/api/mcp": {
      "get": {
        "operationId": "getMcpServerMetadata",
        "summary": "Get MCP server metadata and tool definitions",
        "description": "Returns server identity, supported MCP protocol versions (including 2026-07-28), capabilities, and all 5 read-only tool definitions.",
        "responses": {
          "200": {
            "description": "MCP server metadata JSON",
            "headers": {
              "RateLimit-Limit": { "$ref": "#/components/headers/RateLimitLimit" },
              "RateLimit-Remaining": { "$ref": "#/components/headers/RateLimitRemaining" },
              "RateLimit-Reset": { "$ref": "#/components/headers/RateLimitReset" },
              "RateLimit-Policy": { "$ref": "#/components/headers/RateLimitPolicy" },
              "X-API-Version": { "$ref": "#/components/headers/ApiVersion" },
              "Deprecation": { "$ref": "#/components/headers/Deprecation" },
              "Sunset": { "$ref": "#/components/headers/Sunset" }
            },
            "content": {
              "application/json": {
                "schema": { "$ref": "#/components/schemas/McpServerMetadata" }
              }
            }
          },
          "400": {
            "description": "Invalid request (RFC 9457 Problem Details).",
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              },
              "application/json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            }
          },
          "404": {
            "description": "Resource not found (RFC 9457 Problem Details).",
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              },
              "application/json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded (RFC 9457 Problem Details).",
            "headers": {
              "Retry-After": { "$ref": "#/components/headers/RetryAfter" }
            },
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              },
              "application/json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            }
          },
          "500": {
            "description": "Unexpected server error (RFC 9457 Problem Details).",
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              },
              "application/json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "invokeMcpJsonRpc",
        "summary": "Send JSON-RPC 2.0 MCP request",
        "description": "Streamable HTTP MCP endpoint supporting initialize, server/discover, ping, tools/list, and tools/call (search_articles, get_article, list_services_and_pricing, search_case_studies, get_case_study).",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": { "$ref": "#/components/schemas/McpJsonRpcRequest" }
            }
          }
        },
        "responses": {
          "200": {
            "description": "JSON-RPC 2.0 response",
            "headers": {
              "RateLimit-Limit": { "$ref": "#/components/headers/RateLimitLimit" },
              "RateLimit-Remaining": { "$ref": "#/components/headers/RateLimitRemaining" },
              "RateLimit-Reset": { "$ref": "#/components/headers/RateLimitReset" },
              "RateLimit-Policy": { "$ref": "#/components/headers/RateLimitPolicy" },
              "X-API-Version": { "$ref": "#/components/headers/ApiVersion" },
              "Deprecation": { "$ref": "#/components/headers/Deprecation" },
              "Sunset": { "$ref": "#/components/headers/Sunset" }
            },
            "content": {
              "application/json": {
                "schema": { "$ref": "#/components/schemas/McpJsonRpcResponse" }
              }
            }
          },
          "400": {
            "description": "Invalid JSON-RPC request body (RFC 9457 Problem Details).",
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              },
              "application/json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            }
          },
          "404": {
            "description": "Resource not found (RFC 9457 Problem Details).",
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              },
              "application/json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded (RFC 9457 Problem Details).",
            "headers": {
              "Retry-After": { "$ref": "#/components/headers/RetryAfter" }
            },
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              },
              "application/json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            }
          },
          "500": {
            "description": "Unexpected server error (RFC 9457 Problem Details).",
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              },
              "application/json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            }
          }
        }
      }
    },
    "/api/mcp/server-card": {
      "get": {
        "operationId": "getMcpServerCard",
        "summary": "Get branded MCP Server Card manifest",
        "description": "Returns the branded MCP Server Card JSON document conforming to the Model Context Protocol server-card-v1 schema.",
        "responses": {
          "200": {
            "description": "MCP Server Card JSON manifest",
            "headers": {
              "RateLimit-Limit": { "$ref": "#/components/headers/RateLimitLimit" },
              "RateLimit-Remaining": { "$ref": "#/components/headers/RateLimitRemaining" },
              "RateLimit-Reset": { "$ref": "#/components/headers/RateLimitReset" },
              "RateLimit-Policy": { "$ref": "#/components/headers/RateLimitPolicy" },
              "X-API-Version": { "$ref": "#/components/headers/ApiVersion" },
              "Deprecation": { "$ref": "#/components/headers/Deprecation" },
              "Sunset": { "$ref": "#/components/headers/Sunset" }
            },
            "content": {
              "application/json": {
                "schema": { "$ref": "#/components/schemas/McpServerCard" }
              }
            }
          },
          "400": {
            "description": "Invalid request (RFC 9457 Problem Details).",
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              },
              "application/json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            }
          },
          "404": {
            "description": "Resource not found (RFC 9457 Problem Details).",
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              },
              "application/json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded (RFC 9457 Problem Details).",
            "headers": {
              "Retry-After": { "$ref": "#/components/headers/RetryAfter" }
            },
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              },
              "application/json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            }
          },
          "500": {
            "description": "Unexpected server error (RFC 9457 Problem Details).",
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              },
              "application/json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "parameters": {
      "ApiVersionHeader": {
        "name": "X-API-Version",
        "in": "header",
        "required": false,
        "description": "Optional API version header. Defaults to v1.",
        "schema": {
          "type": "string",
          "enum": ["v1"],
          "default": "v1"
        }
      }
    },
    "headers": {
      "RateLimitLimit": {
        "description": "Maximum requests permitted in the current rate-limit window.",
        "schema": { "type": "integer", "example": 120 }
      },
      "RateLimitRemaining": {
        "description": "Remaining requests available in the current rate-limit window.",
        "schema": { "type": "integer", "example": 119 }
      },
      "RateLimitReset": {
        "description": "Seconds until the current rate-limit window resets.",
        "schema": { "type": "integer", "example": 60 }
      },
      "RateLimitPolicy": {
        "description": "Structured rate-limit quota policy (quota;w=window-seconds).",
        "schema": { "type": "string", "example": "120;w=60" }
      },
      "RetryAfter": {
        "description": "Seconds to wait before retrying after a 429 Too Many Requests response.",
        "schema": { "type": "integer", "example": 60 }
      },
      "ApiVersion": {
        "description": "Active API major version serving the response.",
        "schema": { "type": "string", "example": "v1" }
      },
      "Deprecation": {
        "description": "RFC 9745 HTTP Deprecation header emitted when an API version or endpoint is scheduled for deprecation (minimum 6 months notice).",
        "schema": { "type": "string", "example": "@1893456000" }
      },
      "Sunset": {
        "description": "RFC 8594 HTTP Sunset header indicating the exact date and time after which a deprecated API version will be retired.",
        "schema": { "type": "string", "format": "date-time", "example": "Tue, 01 Jan 2030 00:00:00 GMT" }
      }
    },
    "schemas": {
      "ProblemDetails": {
        "type": "object",
        "description": "RFC 9457 Problem Details error response with machine-readable code and resolution hint.",
        "required": ["type", "title", "status", "detail", "code", "message", "hint", "documentation"],
        "properties": {
          "type": { "type": "string", "format": "uri", "description": "URI reference identifying the problem type." },
          "title": { "type": "string", "description": "Short human-readable summary of the error." },
          "status": { "type": "integer", "description": "HTTP status code." },
          "detail": { "type": "string", "description": "Detailed explanation of this error occurrence." },
          "code": { "type": "string", "description": "Stable machine-readable error code (e.g. ARTICLE_NOT_FOUND, INVALID_LIMIT, ENDPOINT_NOT_FOUND)." },
          "message": { "type": "string", "description": "Human-readable error message." },
          "hint": { "type": "string", "description": "Actionable resolution hint for agents and developers." },
          "documentation": { "type": "string", "format": "uri", "description": "Link to Kayee API documentation." }
        }
      },
      "ArticleSummary": {
        "type": "object",
        "required": ["slug", "title", "url", "date", "category", "tags", "excerpt"],
        "properties": {
          "slug": { "type": "string" },
          "title": { "type": "string" },
          "url": { "type": "string", "format": "uri" },
          "date": { "type": "string", "format": "date" },
          "category": { "type": "string" },
          "tags": { "type": "array", "items": { "type": "string" } },
          "excerpt": { "type": "string" }
        }
      },
      "ArticlesResponse": {
        "type": "object",
        "required": ["version", "count", "articles"],
        "properties": {
          "version": { "type": "string", "example": "v1" },
          "count": { "type": "integer" },
          "articles": {
            "type": "array",
            "items": { "$ref": "#/components/schemas/ArticleSummary" }
          }
        }
      },
      "ArticleDetail": {
        "type": "object",
        "required": ["version", "slug", "title", "url", "date", "category", "tags", "excerpt", "markdown"],
        "properties": {
          "version": { "type": "string", "example": "v1" },
          "slug": { "type": "string" },
          "title": { "type": "string" },
          "url": { "type": "string", "format": "uri" },
          "date": { "type": "string" },
          "category": { "type": "string" },
          "tags": { "type": "array", "items": { "type": "string" } },
          "excerpt": { "type": "string" },
          "markdown": { "type": "string" }
        }
      },
      "CaseStudySummary": {
        "type": "object",
        "required": ["slug", "title", "client", "clientSlug", "sortDate", "technologies", "summary", "url"],
        "properties": {
          "slug": { "type": "string" },
          "title": { "type": "string" },
          "client": { "type": "string" },
          "clientSlug": { "type": "string" },
          "sortDate": { "type": "string" },
          "technologies": { "type": "array", "items": { "type": "string" } },
          "summary": { "type": "string" },
          "url": { "type": "string", "format": "uri" }
        }
      },
      "CaseStudiesResponse": {
        "type": "object",
        "required": ["version", "count", "caseStudies"],
        "properties": {
          "version": { "type": "string", "example": "v1" },
          "count": { "type": "integer" },
          "caseStudies": {
            "type": "array",
            "items": { "$ref": "#/components/schemas/CaseStudySummary" }
          }
        }
      },
      "CaseStudyDetail": {
        "type": "object",
        "required": ["version", "slug", "title", "client", "clientSlug", "url", "technologies", "summary", "markdown"],
        "properties": {
          "version": { "type": "string", "example": "v1" },
          "slug": { "type": "string" },
          "title": { "type": "string" },
          "client": { "type": "string" },
          "clientSlug": { "type": "string" },
          "url": { "type": "string", "format": "uri" },
          "technologies": { "type": "array", "items": { "type": "string" } },
          "summary": { "type": "string" },
          "markdown": { "type": "string" }
        }
      },
      "ServiceItem": {
        "type": "object",
        "required": ["slug", "name", "url", "category"],
        "properties": {
          "slug": { "type": "string" },
          "name": { "type": "string" },
          "url": { "type": "string", "format": "uri" },
          "category": { "type": "string" }
        }
      },
      "EngagementModel": {
        "type": "object",
        "required": ["name", "format", "priceRangeEur"],
        "properties": {
          "name": { "type": "string" },
          "format": { "type": "string" },
          "priceRangeEur": { "type": "string" }
        }
      },
      "ServicesResponse": {
        "type": "object",
        "required": ["version", "provider", "services", "engagements"],
        "properties": {
          "version": { "type": "string", "example": "v1" },
          "provider": {
            "type": "object",
            "required": ["name", "founder", "credentials", "email", "phone", "contactUrl", "pricingUrl", "agentInstructionsUrl"],
            "properties": {
              "name": { "type": "string" },
              "founder": { "type": "string" },
              "credentials": { "type": "string" },
              "email": { "type": "string", "format": "email" },
              "phone": { "type": "string" },
              "contactUrl": { "type": "string", "format": "uri" },
              "pricingUrl": { "type": "string", "format": "uri" },
              "agentInstructionsUrl": { "type": "string", "format": "uri" }
            }
          },
          "services": {
            "type": "array",
            "items": { "$ref": "#/components/schemas/ServiceItem" }
          },
          "engagements": {
            "type": "array",
            "items": { "$ref": "#/components/schemas/EngagementModel" }
          }
        }
      },
      "McpToolDefinition": {
        "type": "object",
        "required": ["name", "description"],
        "properties": {
          "name": { "type": "string" },
          "description": { "type": "string" },
          "annotations": {
            "type": "object",
            "properties": {
              "title": { "type": "string" },
              "readOnlyHint": { "type": "boolean" },
              "destructiveHint": { "type": "boolean" },
              "idempotentHint": { "type": "boolean" },
              "openWorldHint": { "type": "boolean" }
            }
          }
        }
      },
      "McpServerMetadata": {
        "type": "object",
        "required": ["name", "title", "version", "protocolVersion", "transport", "endpoint", "tools"],
        "properties": {
          "name": { "type": "string", "example": "kayee-mcp" },
          "title": { "type": "string" },
          "version": { "type": "string", "example": "1.1.0" },
          "protocolVersion": { "type": "string", "example": "2026-07-28" },
          "transport": { "type": "string", "example": "streamable-http" },
          "endpoint": { "type": "string", "format": "uri" },
          "tools": {
            "type": "array",
            "items": { "$ref": "#/components/schemas/McpToolDefinition" }
          }
        }
      },
      "McpJsonRpcRequest": {
        "type": "object",
        "required": ["jsonrpc", "method"],
        "properties": {
          "jsonrpc": { "type": "string", "enum": ["2.0"] },
          "id": { "type": ["string", "integer", "null"] },
          "method": {
            "type": "string",
            "enum": ["initialize", "server/discover", "notifications/initialized", "ping", "tools/list", "tools/call"]
          },
          "params": {
            "type": "object",
            "additionalProperties": true
          }
        }
      },
      "McpJsonRpcResponse": {
        "type": "object",
        "required": ["jsonrpc", "id"],
        "properties": {
          "jsonrpc": { "type": "string", "enum": ["2.0"] },
          "id": { "type": ["string", "integer", "null"] },
          "result": {
            "type": "object",
            "additionalProperties": true
          },
          "error": {
            "type": "object",
            "properties": {
              "code": { "type": "integer" },
              "message": { "type": "string" }
            }
          }
        }
      },
      "McpServerCard": {
        "type": "object",
        "required": ["name", "title", "version", "protocolVersion", "endpoint", "tools"],
        "properties": {
          "name": { "type": "string" },
          "title": { "type": "string" },
          "version": { "type": "string" },
          "description": { "type": "string" },
          "protocolVersion": { "type": "string" },
          "endpoint": { "type": "string", "format": "uri" },
          "documentation": { "type": "string", "format": "uri" },
          "tools": {
            "type": "array",
            "items": { "$ref": "#/components/schemas/McpToolDefinition" }
          }
        }
      }
    }
  }
}
