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:
max_tokens
The maximum number of tokens to generate. Note: setting a token count lower than 2000 may result in incomplete responses. You can add a custom system prompt to control the verbosity of the response.
system_prompt
The system prompt to use for the chat completion
rewrite_query
Whether to rewrite the query using query decomposition
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:
max_tokens
The maximum number of tokens to generate. Note: setting a token count lower than 2000 may result in incomplete responses. You can add a custom system prompt to control the verbosity of the response.
system_prompt
The system prompt to use for the chat completion
rewrite_query
Whether to rewrite the query using query decomposition
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:
max_tokens
The maximum number of tokens to generate. Note: setting a token count lower than 2000 may result in incomplete responses. You can add a custom system prompt to control the verbosity of the response.
system_prompt
The system prompt to use for the chat completion
rewrite_query
Whether to rewrite the query using query decomposition
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