*** title: Endpoint schema snippet description: Reference an endpoint schema from your API Reference ----------------------------------------------------------------- For clean Markdown content of this page, append .md to this URL. For the complete documentation index, see [https://buildwithfern.com/learn/llms.txt](https://buildwithfern.com/learn/llms.txt). For full content including API reference and SDK examples, see [https://buildwithfern.com/learn/llms-full.txt](https://buildwithfern.com/learn/llms-full.txt). The `` 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. To display any type definition by name (not limited to endpoint schemas), use the [``](/learn/docs/writing-content/components/schema) component. Markdown-rich field descriptions aren't yet supported and will display as plain text. See the [Request path](#request-path) example below. ## Usage
```jsx Markdown ``` ## Variants ### Full request Passing `request` as the selector will only render the request schema.
```jsx Markdown ``` ### Request path
```jsx Markdown ``` ### Request query
```jsx Markdown ``` ### Request body
```jsx Markdown ``` ### Full response Passing `response` as the selector will only render the response schema.
```jsx Markdown ``` ### Response body
```jsx Markdown ``` ## Properties The endpoint to display, in the format `METHOD /path` (e.g., `POST /chat/{domain}`). If your API uses [namespaces](/learn/api-definitions/overview/project-structure#combined-sdks-from-multiple-apis), 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`.