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
      • Overview
      • Accordion
      • Anchor
      • Aside
      • Badge
      • Button
      • Callout
      • Card
      • Code block
      • Copy
      • Download
      • Endpoint request snippet
      • Endpoint response snippet
      • Endpoint schema snippet
      • Webhook payload snippet
      • Files
      • Frame
      • Icon
      • If
      • Indent
      • Parameter field
      • Prompt
      • Runnable endpoint
      • Schema
      • Step
      • Table
      • Tab
      • Tooltip
      • Versions
    • 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
  • 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
  • Usage
  • Filtering fields
  • Properties
Writing contentComponents

Schema

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

Runnable endpoint

Next

Step

The <Schema> component displays type definitions from your API Reference anywhere in your documentation. Use it to reference data models, request objects, or response types outside of your API Reference pages. When AI agents fetch the Markdown version of a page, Fern renders the type definition as structured content in the Markdown output.

Similar to <EndpointSchemaSnippet>, but accepts any type name rather than being limited to endpoint-specific schemas. Pair with <SchemaSnippet> to display the JSON representation alongside the field breakdown.

The component only discovers types referenced by endpoints. Types exclusively used by websockets or webhooks won’t be available. If multiple APIs have the same type name, the component returns the first match.

Usage

The component works with API references already configured in your docs.yml. This example displays the AIChatConfig type from the docs-yml API:

modelenumOptional
Allowed values:
system-promptstringOptional
This is a system prompt that acts as context given to the LLM for AI chat.
Markdown
1<Schema type="AIChatConfig" />

Filtering fields

Use include to display only specific fields, or exclude to hide certain fields:

Markdown
1{/* Only show these two fields */}
2<Schema type="AIChatConfig" include={["model", "provider"]} />
3
4{/* Show all fields except these */}
5<Schema type="AIChatConfig" exclude={["model"]} />

Properties

type
stringRequired

The name of the type to display. The component will search for this type across all endpoints in your API definition.

api
string

The name of the API to fetch the type from. If not specified, the type will be fetched from the first API that contains it.

description
boolean

If true, includes the type definition’s description above the schema fields. This is useful for displaying comments associated with the type, such as Protobuf message comments.

include
string[]

A list of field names to include in the rendered schema. When specified, only the listed fields will be displayed. This is useful when you want to explicitly control which fields appear, avoiding the need to update an exclude list whenever the underlying type gains new fields.

exclude
string[]

A list of field names to exclude from the rendered schema.

excludeDeprecated
boolean

If true, hides deprecated fields from the rendered schema.

className
string

Optional CSS class name for custom styling.