HTTP API access for AI agents

AI agents can now access authenticated documentation directly via HTTP API. This enables custom integrations and AI tools to retrieve protected content programmatically.

Agents obtain a JWT via the /api/fern-docs/get-jwt endpoint with a Fern API key, then use it to access protected documentation:

$curl https://docs.example.com/platform/overview \
> -H 'Accept: text/plain' \
> -H 'x-fern-host: docs.example.com' \
> -H 'FERN_TOKEN: your-jwt-here'

Content is served as clean Markdown for token-efficient processing.

Learn more in the MCP server documentation.

Folder-based navigation

Auto-generate navigation from a folder of markdown files using the new folder configuration. Instead of manually listing each page in docs.yml, point to a folder. Fern discovers all .md and .mdx files and adds them to the navigation.

docs.yml
1navigation:
2 - section: Getting started
3 contents:
4 - page: Introduction
5 path: ./pages/intro.mdx
6 - folder: ./pages/guides
7 title: Guides # Display name for folder section
8 icon: fa-regular fa-book
9 collapsed: true
10 availability: beta # Optional badge to display in navigation

Subfolders become nested sections. Supported options: title, slug, icon, collapsed, hidden, skip-slug, availability.

Learn more about navigation configuration.


Tab variants

Create multiple content variations within a single tab using the new variants feature. This allows you to show different perspectives, user types, or implementation approaches for the same topic without creating separate tabs.

You can now define variants for tabs with different layouts, titles, subtitles, and icons. Each variant can have its own navigation structure, and you can explicitly set which variant should be the default.

docs.yml
1navigation:
2 - tab: guides
3 variants:
4 - title: For developers
5 layout:
6 - section: Getting started
7 contents:
8 - page: Quick start
9 path: ./pages/dev-quickstart.mdx
10 - title: For product managers
11 default: true
12 layout:
13 - section: Getting started
14 contents:
15 - page: Overview
16 path: ./pages/pm-overview.mdx

Learn more about tab variants.

Custom icons across your navigation

You can now use your own image files as icons throughout your docs.yml navigation config, including for navbar link, section, page, and product icons.

Icons now support three formats:

  • Font Awesome icons: Use icon names like fa-solid fa-seedling or fa-regular fa-leaf. Pro and Brand icons from Font Awesome are supported.
  • Custom image files: Use relative paths to custom image files (e.g., ./assets/icons/plant-icon.svg). Paths are relative to the docs.yml file.
  • Inline SVG: Provide an SVG string wrapped in quotes.
Sidebar icons in docs.yml
1navigation:
2 - section: Home
3 icon: fa-regular fa-home # Font Awesome icon
4 contents:
5 - page: Introduction
6 icon: ./assets/icons/intro-icon.svg # Custom image file
7 path: ./pages/intro.mdx
8 - page: Custom Features
9 icon: "<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'><path d='M12 2L2 7v10c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V7l-10-5z'/></svg>" # Inline SVG
10 path: ./pages/custom.mdx
11 - api: API Reference
12 icon: fa-regular fa-puzzle

You can now configure products to link to external URLs (separate applications, third-party documentation, or other external resources) instead of documentation within your site.

External products appear in the product switcher alongside internal products but navigate users to the specified URL when selected. Unlike internal products, external products are defined directly in docs.yml using href—no standalone product .yml file is needed.

To define an external product, add an item to the products list in docs.yml with an href instead of a path:

docs.yml
1products:
2 - display-name: API Documentation
3 path: ./products/api-docs.yml
4 icon: fa-solid fa-book
5 slug: api-docs
6 subtitle: Complete API reference
7
8 - display-name: Dashboard # External product
9 href: https://dashboard.example.com
10 icon: fa-solid fa-chart-line
11 subtitle: Analytics and insights

Visit the product switching documentation to learn more.


Group related links in your navbar with new dropdown menus. Organize resources, tools, or external links under a single button to keep your header clean.

docs.yml
1navbar-links:
2 - type: dropdown
3 text: Resources # dropdown button text
4 icon: fa-solid fa-seedling # optional icon
5 links:
6 - text: Plant database # link display text
7 href: https://example.com/plants # destination URL
8 icon: fa-regular fa-leaf # optional icon
9 - text: Growing guides
10 href: https://example.com/guides

Learn more in the navbar links configuration documentation.

API Explorer direct requests

You can now send API Explorer requests directly to your API instead of through Fern’s proxy. This is useful for testing Cross-Origin Resource Sharing (CORS) configuration and debugging authentication flows.

docs.yml
1settings:
2 disable-explorer-proxy: true

Your API must have CORS enabled to allow requests from the documentation domain.

Learn more in the docs.yml reference documentation.


HTTP Snippets now enabled by default

HTTP snippets are now enabled by default for all documentation sites, making it easier for developers to see cURL, Python, Ruby, and other HTTP client examples directly in your API reference. Previously, this feature required internal configuration to activate.

You can now control HTTP snippets directly in your docs.yml file:

docs.yml
1# Turn off HTTP snippets
2settings:
3 http-snippets: false
4
5# Or specify only certain languages
6settings:
7 http-snippets:
8 - python
9 - ruby

Visit the HTTP snippets documentation to learn more.

Introducing Runnable Endpoint

Test API endpoints directly from your documentation with our new interactive component. Runnable Endpoint allows your users to send real HTTP requests to your API without leaving your docs, making it easier for developers to explore and understand your API.

Runnable Endpoint component

Embed the component anywhere in your MDX documentation to create an interactive request builder with form inputs for headers, path parameters, query parameters, and request bodies. Users can execute requests and see real-time responses, complete with status codes and syntax highlighting.

Key features include:

  • Interactive form builder that automatically generates inputs based on your endpoint definition
  • Multiple examples support with a dropdown selector when you have multiple pre-configured scenarios
  • Environment selector for testing against production, staging, or development
  • Form persistence that saves user input in local storage across sessions
  • Direct navigation to the full API reference with an “Open in API reference” button

To learn more about using Runnable Endpoints in your documentation, visit the Runnable Endpoint docs.


Introducing The Product Switcher

Organize your docs by product so developers can find what they need quickly. Perfect for companies with multiple APIs, each with their own references, guides, versions, and changelogs.

Features:

  • Optimized for Search with SEO-friendly structure.
  • Keyword and AI Search functionality works both within and across products.
  • Customizable to your products with versions and unique icons to reflect your brand identity.

A dropdown of the available products

To add products to your docs, visit the product switcher docs page to get started.


Table of contents customization

We’ve added a max-toc-depth frontmatter option to control the depth of the table of contents. Use this to limit the heading ranks included in the table of contents.

You can read more about this feature in the frontmatter documentation.


Improvements to 404 Pages

We now have themed 404 pages for your docs, using your theme colors, fonts, and buttons. We also maintain the best-effort navigation state on this page using the 404 page URL, so that users can easily navigate back to your docs.

404 Page


  • feat: improvements to local preview mode, including support for custom javascript and bug fixes for reloading performance issues.
  • minor bugfixes and improvements to AI search


  • feat(cli): using fern docs dev on the latest CLI will now better reflect the docs in production
  • feat(search): the search UX now uses infinite scroll and allows for searching based on breadcrumb paths
  • fix(ai): small bug fixes to the AI chat experience