惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
G
Google Developers Blog
Hugging Face - Blog
Hugging Face - Blog
博客园 - 【当耐特】
S
SegmentFault 最新的问题
宝玉的分享
宝玉的分享
博客园 - Franky
博客园_首页
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
WordPress大学
WordPress大学
有赞技术团队
有赞技术团队
月光博客
月光博客
博客园 - 聂微东
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
小众软件
小众软件
Microsoft Security Blog
Microsoft Security Blog
Last Week in AI
Last Week in AI
Vercel News
Vercel News
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
爱范儿
爱范儿
J
Java Code Geeks
博客园 - 叶小钗
Engineering at Meta
Engineering at Meta
阮一峰的网络日志
阮一峰的网络日志

Mintlify Blog

22 UX improvements to the web editor Introducing the Mintlify Help Center Starter Kit Introducing the collaborative editor built for teams and agents Workflows, rebuilt Is your documentation agent-ready? Mintlify raises $45M Series B led by Andreessen Horowitz and Salesforce Ventures 5 things you didn't know you could do in the Mintlify web editor The improved Mintlify CLI Docs on autopilot: From zero to self-maintaining with Mintlify The state of agent traffic in documentation (March 2026) How we built a virtual filesystem for our Assistant We Replaced Our Internal Wiki With a Slack Bot. You Should Too. 8 ways teams use Mintlify to keep docs updated automatically Documentation is your AI interface What three years of watching AI in production taught us Bridging two JSX runtimes: How we solved Astro's React children problem AI agents are shipping faster than anyone can document Knowledge management systems for technical teams Workflows: Automate documentation maintenance Mintlify acquires Helicone to redefine AI knowledge infrastructure Why more product managers are switching to Mintlify Auto-generating documentation sites from GitHub repos Your docs, your frontend, our content engine Take control of your documentation system Almost half your docs traffic is AI, time to understand the agent experience @mintlify for better docs, faster Mintlify for Enterprise Real llms.txt examples from leading tech companies (and what they got right) Mintlify + Claude Opus 4.6: Powering AI-native knowledge management Declaring Clankruptcy: An experiment in agent orchestration
The /api Namespace is Now Open
Nick Khami · 2025-10-06 · via Mintlify Blog

You can now create documentation pages at the /api path in your Mintlify docs. This means your API reference can live at /api/endpoint-name instead of /api-reference/endpoint-name, giving you cleaner URLs that match your actual API structure.

Previously, Mintlify reserved the /api path for internal endpoints, forcing API documentation to use alternative paths like /api-reference. This created a disconnect between your documentation URLs and the APIs they describe.

Now you can structure your docs.json navigation to put pages at /api/{route}, creating a more intuitive sitemap:

{
  "navigation": [
    {
      "group": "API Reference",
      "pages": ["api/users", "api/authentication", "api/webhooks"]
    }
  ]
}

Your documentation will be available at URLs like docs.yourcompany.com/api/users instead of docs.yourcompany.com/api-reference/users.

This feature became available through Mintlify's migration from NextJS Pages Router to App Router.

The Pages Router Limitation

In Pages Router, the /pages/api/* directory is reserved exclusively for API routes. Any file placed in /pages/api/ automatically becomes a serverless function endpoint, not a page that can render documentation. This structural constraint meant:

  • Users couldn't create documentation pages at /api/* because that entire namespace was reserved for API route handlers
  • Mintlify's internal endpoints (playground requests, file uploads, OG image generation, cache revalidation) had to live in /pages/api/, blocking the path for everyone

There was no way to have both API endpoints and rendered pages coexisting under /api.

The App Router Solution

App Router changes this completely. Instead of entire directories being reserved for specific purposes, App Router uses explicit file naming:

  • route.ts files define API endpoints
  • page.tsx files define rendered pages

This means /app/api/users/route.ts can be an API endpoint while /app/api/authentication/page.tsx is a documentation page. They coexist in the same namespace because the file system is explicit about intent.

By moving Mintlify's internal endpoints to /app/_mintlify/api/*/route.ts, the entire /app/api/* namespace opened up for user-defined pages. The underscore prefix keeps internal routes clearly separated from user content while maintaining organization within the app directory structure.

Your API reference can now live at /api/{route} instead of /api-reference/{route}. Update your docs.json navigation to use /api paths and deploy, no other changes required.