For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
预约演示登录免费开始
  • 入门
    • 概览
    • 工作原理
    • 快速开始
    • 项目结构
    • Customer showcase
    • 变更日志
  • 配置
    • 概览
    • 站点级设置
    • 页面级设置
  • 编写内容
    • Markdown 基础
    • Markdown 中的富媒体
      • 概览
      • 折叠面板
      • 旁注
      • 按钮
      • 徽章
      • 下载
      • 提示框
      • 卡片
      • 代码块
      • 复制组件
      • 下载组件
      • 端点请求片段
      • 端点响应片段
      • 端点模式代码片段
      • Webhook 负载片段
      • 文件
      • 框架
      • 图标
      • If
      • 缩进
      • 参数字段
      • 提示词组件
      • Runnable endpoint
      • 模式组件
      • 步骤
      • 表格
      • 标签页
      • 工具提示
      • 版本
    • Fern 编辑器
    • 可复用代码片段
  • AI 功能
    • 概览
    • Fern Writer
    • AI 生成的示例
    • Markdown 访问
      • 概览
      • Agent 指令
      • 智能体指令
      • 分析与集成
    • MCP 服务器
    • API 目录发现
  • Public API
    • GETJWT from Fern API key
    • GETAlgolia search credentials
    • GETCurrent user information
  • Fern Writer API
    • GETGet Fern Writer Install Link
Checking status...
SOC2Soc 2 Type II
© 2026 Fern • Birch Solutions, Inc., a Postman company

Documentation

SDKsDocsAsk FernCLI Reference

API Definitions

OpenAPIAsyncAPIOpenRPCgRPC

Resources

BlogSupportPricing

Company

Brand KitPrivacy PolicyTerms of Service
LogoLogo
预约演示登录免费开始
在本页
  • 用法
  • 变体
  • 完整请求
  • 请求路径
  • 请求查询
  • 请求体
  • 完整响应
  • 响应体
  • 属性
编写内容组件

端点模式片段

||以 Markdown 格式查看|
此页面是否有帮助?
在仪表板中编辑
上一个

端点响应代码片段

下一个

Webhook 负载片段

<EndpointSchemaSnippet> 组件显示来自 API Reference 的端点模式。默认情况下,它渲染完整的模式,或者您可以使用 selector 属性来显示特定部分,如请求体、响应、路径参数或查询参数。

要按名称显示任何类型定义(不限于端点模式),请使用 <Schema> 组件。

尚不支持富 Markdown 字段描述,将显示为纯文本。请参见下面的请求路径示例。

用法

Path parameters

domainstring必需

Request

messageslist of objects必需
The messages to use for the chat completion
modelenum or null可选
The model to use for the chat completion
允许的值:
max_tokensinteger or null可选100-3500默认为 3000
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_promptstring or null可选
The system prompt to use for the chat completion
rewrite_queryboolean or null可选默认为 false
Whether to rewrite the query using query decomposition

Response

turnslist of objects必需
The conversation turns in the chat completion
citationslist of strings必需
List of citation strings
Markdown
1<EndpointSchemaSnippet endpoint="POST /chat/{domain}" />

变体

完整请求

将 request 作为选择器传递将仅渲染请求模式。

Path parameters

domainstring必需

Request

messageslist of objects必需
The messages to use for the chat completion
modelenum or null可选
The model to use for the chat completion
允许的值:
max_tokensinteger or null可选100-3500默认为 3000
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_promptstring or null可选
The system prompt to use for the chat completion
rewrite_queryboolean or null可选默认为 false
Whether to rewrite the query using query decomposition
Markdown
1<EndpointSchemaSnippet endpoint="POST /chat/{domain}" selector="request" />

请求路径

Path parameters

domainstring必需
Markdown
1<EndpointSchemaSnippet endpoint="POST /chat/{domain}" selector="request.path" />

请求查询

Markdown
1<EndpointSchemaSnippet endpoint="POST /chat/{domain}" selector="request.query" />

请求体

Request

messageslist of objects必需
The messages to use for the chat completion
modelenum or null可选
The model to use for the chat completion
允许的值:
max_tokensinteger or null可选100-3500默认为 3000
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_promptstring or null可选
The system prompt to use for the chat completion
rewrite_queryboolean or null可选默认为 false
Whether to rewrite the query using query decomposition
Markdown
1<EndpointSchemaSnippet endpoint="POST /chat/{domain}" selector="request.body" />

完整响应

将 response 作为选择器传递将仅渲染响应模式。

Response

turnslist of objects必需
The conversation turns in the chat completion
citationslist of strings必需
List of citation strings
Markdown
1<EndpointSchemaSnippet endpoint="POST /chat/{domain}" selector="response" />

响应体

Response

turnslist of objects必需
The conversation turns in the chat completion
citationslist of strings必需
List of citation strings
Markdown
1<EndpointSchemaSnippet endpoint="POST /chat/{domain}" selector="response.body" />

属性

endpoint
stringRequired

要显示的端点,格式为 METHOD /path(例如,POST /chat/{domain})。如果您的 API 使用命名空间,请在前面加上命名空间和 ::(例如,payments::POST /chat/{domain})。

selector
string

选择要显示的端点模式的特定部分。支持的值:request、request.path、request.query、request.body、response、response.body。