Endpoint schema snippet
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.
Markdown-rich field descriptions aren’t yet supported and will display as plain text. See the Request path example below.
Usage
Path parameters
domain
Request
messages
The messages to use for the chat completion
model
The model to use for the chat completion
Allowed values:
system_prompt
The system prompt to use for the chat completion
Response
turns
The conversation turns in the chat completion
citations
List of citation strings
Markdown
Variants
Full request
Passing request as the selector will only render the request schema.
Path parameters
domain
Request
messages
The messages to use for the chat completion
model
The model to use for the chat completion
Allowed values:
system_prompt
The system prompt to use for the chat completion
Markdown
Request path
Path parameters
domain
Markdown
Request query
Query parameters
domain
Markdown
Request body
Request
messages
The messages to use for the chat completion
model
The model to use for the chat completion
Allowed values:
system_prompt
The system prompt to use for the chat completion
Markdown
Full response
Passing response as the selector will only render the response schema.
Response
turns
The conversation turns in the chat completion
citations
List of citation strings
Markdown
Response body
Response
turns
The conversation turns in the chat completion
citations
List of citation strings
Markdown