Endpoint request snippet
Use the <EndpointRequestSnippet> components to reference an endpoint request from
your API Reference.
Usage
Reference particular examples
Variants
Filter languages
Use the languages prop to filter which languages appear in the dropdown and control their order.
Show payload
The payload option displays the raw JSON request body for POST/PUT/PATCH requests, or query parameters for GET requests.
Properties
The endpoint to display, in the format METHOD /path (e.g., POST /chat/{domain}).
The name of a specific example to display. If the example includes a summary or docs field, use that value.
Line numbers to highlight in the code snippet. Accepts a single number, an array of numbers, or ranges (e.g., {[1-3, 5]}).
Specifies which languages to show in the dropdown and in what order. Supported values include curl, python, typescript, javascript, go, ruby, java, kotlin, csharp, php, swift, rust, and payload. When not specified, all available languages are shown.