The <EndpointSchemaSnippet> component displays endpoint schemas from your API Reference. By default, it renders the complete schema, or you can use the selector prop to display specific parts like request body, response, path parameters, or query parameters. When AI agents fetch the Markdown version of a page, Fern renders the schema — field names, types, and descriptions — as structured content in the Markdown output.
To display any type definition by name (not limited to endpoint schemas), use the <Schema> component.
Markdown-rich field descriptions aren’t yet supported and will display as plain text. See the Request path example below.
Passing request as the selector will only render the request schema.
Passing response as the selector will only render the response schema.
The endpoint to display, in the format METHOD /path (e.g., POST /chat/{domain}). If your API uses namespaces, prefix with the namespace and :: (e.g., payments::POST /chat/{domain}).
Selects a specific part of the endpoint schema to display. Supported values: request, request.path, request.query, request.body, response, response.body.