{
  "name": "Ben Milne",
  "description": "Founder, Brale. Writing about value design, protocol thinking, and other musings.",
  "author": "Ben Milne",
  "url": "https://benmilne.com",
  "endpoints": [
    {
      "method": "GET",
      "path": "/api",
      "description": "This index"
    },
    {
      "method": "GET",
      "path": "/api/languages",
      "description": "Supported languages and feed URLs"
    },
    {
      "method": "GET",
      "path": "/api/site",
      "description": "Site metadata and post count"
    },
    {
      "method": "GET",
      "path": "/api/posts",
      "description": "Paginated post list (?page=&per_page=&lang=)"
    },
    {
      "method": "GET",
      "path": "/api/posts/:slug",
      "description": "Single post with full content (?lang=&fallback=en)"
    },
    {
      "method": "GET",
      "path": "/api/search?q=",
      "description": "Full-text search (?lang=)"
    },
    {
      "method": "GET",
      "path": "/api/categories",
      "description": "All categories with post counts"
    },
    {
      "method": "GET",
      "path": "/api/tags",
      "description": "All tags with post counts"
    },
    {
      "method": "GET",
      "path": "/api/categories/:slug",
      "description": "Posts filtered by category"
    },
    {
      "method": "GET",
      "path": "/api/tags/:slug",
      "description": "Posts filtered by tag"
    },
    {
      "method": "GET",
      "path": "/api/products/the-value-layer",
      "description": "*The Value Layer* PDF — commerce + agent metadata"
    }
  ],
  "multilingual": {
    "supported_languages": [
      "en",
      "es",
      "zh",
      "ar",
      "pt-br",
      "fr",
      "ja",
      "de",
      "ru",
      "id",
      "hi",
      "ko",
      "tr",
      "vi"
    ],
    "usage": "Add ?lang=<code> to posts, search, site, categories, or tags endpoints",
    "fallback": "Add ?fallback=en to get English content when translation is unavailable",
    "languages_endpoint": "/api/languages"
  }
}