Endpoint response snippet
Use the <EndpointResponseSnippet> component to reference an endpoint response from
your API Reference. When AI agents fetch the Markdown version of a page, Fern renders the response examples as fenced code blocks, so agents consuming your docs via .md URLs or llms.txt receive the full response payloads without parsing HTML.
Usage
Response
Markdown
Reference particular examples
Properties
endpoint
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}).
example
The name of a specific example to display. If the example includes a summary or docs field, use that value.
highlight
Line numbers to highlight in the code snippet. Accepts a single number, an array of numbers, or ranges (e.g., {[1-3, 5]}).