API catalog discovery
Fern Docs sites implement RFC 9727 to let AI agents, MCP clients, and API catalog crawlers discover your APIs without scraping HTML. The catalog is generated from your visible API Reference navigation and advertised on every page via a Link response header — no configuration required. References hidden via hidden: true (or with all endpoints hidden) are excluded.
Your API catalog is available at your-documentation-site.com/.well-known/api-catalog. For example, this site’s catalog is at buildwithfern.com/learn/.well-known/api-catalog:
For sites with a basepath like /docs, the catalog lives under that basepath (e.g. https://example.com/docs/.well-known/api-catalog).
Response format
The endpoint returns a Linkset document listing each visible API. Each entry contains:
anchor— the URL of the human-readable API Reference pageservice-desc— the machine-readable OpenAPI specservice-doc— the same reference page as the anchor