For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Book a demoLog inStart for free
  • Getting started
    • Overview
    • How it works
    • Quickstart
    • Project structure
    • Customer showcase
    • Changelog
  • Configuration
    • Overview
    • Site-level settings
    • Page-level settings
  • Writing content
    • Markdown basics
    • Rich media in Markdown
    • Fern Editor
    • Reusable snippets
  • AI features
    • Overview
    • Fern Writer
    • AI-generated examples
    • Markdown access
      • Overview
      • Customize LLM output
      • Agent directives
      • Analytics and integration
    • MCP server
    • API catalog discovery
      • Overview
        • Customize API Reference layout
        • Audiences
        • Write Markdown in API Reference
  • Public API
    • GETJWT from Fern API key
    • GETAlgolia search credentials
    • GETCurrent user information
  • Fern Writer API
    • GETGet Fern Writer Install Link
Checking status...
SOC2Soc 2 Type II
© 2026 Fern • Birch Solutions, Inc., a Postman company

Documentation

SDKsDocsAsk FernCLI Reference

API Definitions

OpenAPIAsyncAPIOpenRPCgRPC

Resources

BlogSupportPricing

Company

Brand KitPrivacy PolicyTerms of Service
LogoLogo
Book a demoLog inStart for free
On this page
  • Adding Markdown content to endpoints
  • API link syntax
  • Adding a summary page
  • Adding Markdown content between endpoints
API ReferencesCustomization

Write Markdown content in your API Reference

||View as Markdown|
Was this page helpful?
Edit this page
Previous

Audiences

Next

Display SDK snippets

Fern Docs allows you to write Markdown content in your API Reference documentation. This feature is useful for providing additional context, examples, or explanations for your API endpoints.

Adding Markdown content to endpoints

You can include Markdown content in your API definition using the description field in OpenAPI. This includes callouts, code blocks, and other components.

You can also use the <Footer> component to add content that renders at the bottom of an API Reference page, below the response section. The content inside the <Footer> component can include any Markdown content or components, such as links, callouts, or code blocks.

1paths:
2 /pets:
3 get:
4 summary: List all pets
5 description: |
6 Get a list of all pets in the system.
7
8 <Note>This endpoint requires authentication.</Note>
9
10 <Footer>
11 ## Related endpoints
12
13 - [Create a pet](/api-reference/pets/create)
14 - [Update a pet](/api-reference/pets/update)
15 </Footer>

API link syntax

Use api: link syntax to link to API endpoints or API Reference sections in any Markdown content. Fern resolves these links at build time, so you don’t need to hardcode slugs.

Link to an endpoint

Use api:METHOD/path, where METHOD is an HTTP method (GET, POST, PUT, PATCH, DELETE) and /path is the endpoint path from your API definition. Path parameters use curly braces, such as api:GET/v2/payments/{paymentId}.

For projects with multiple APIs, prefix with the API name: api:API-NAME:METHOD/path.

Markdown
1View the [Current user information](api:mcp-tools:GET/api/fern-docs/whoami) endpoint.
Link to the root of an API Reference section

Use api:apiName, where apiName matches the API name in your generators.yml file. This is useful when your project has multiple APIs and you want to link to the root landing page of a specific API Reference.

Markdown
1Explore the [Plant Store API](api:plant-store) reference.

Here’s how the api: link syntax looks inside API definitions:

1paths:
2 /orders:
3 post:
4 summary: Create an order
5 description: |
6 Creates a new order. To list all orders,
7 use [List orders](api:GET/v2/orders).

Adding a summary page

You can also create a Markdown page that provides an overview of your API Reference. This page can include general information about your API, such as authentication requirements, rate limits, or other important details.

To add a summary page, create a Markdown file in your fern/ folder and link to it in your docs.yml file:

docs.yml
1navigation:
2 - api: API Reference
3 summary: ./pages/api-summary.mdx

By including the summary field, the API Reference section title will link to the api-summary.mdx page.

Adding Markdown content between endpoints

You can also include Markdown content between endpoints in your API Reference. This content can provide context or explanations that apply to multiple endpoints.

This feature requires you to use the layout field in your docs.yml file, which is described in the Customize your API Reference guide.

To add Markdown content between endpoints, create a Markdown file in your fern/ folder and link to it in your docs.yml file:

docs.yml
1navigation:
2 - api: API Reference
3 layout:
4 - pet:
5 - page: Pet CRUD
6 path: ./pages/pet-crud.mdx
7 - addPet
8 - updatePet
9 - deletePet
10 - page: Pet Search
11 path: ./pages/pet-search.mdx
12 - findPets
13 - findPetsByStatus
14 - findPetsByTags
15 - findPetsByType
16 - findPetsByBreed