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 中的富媒体
    • Fern 编辑器
    • 可复用代码片段
  • AI 功能
    • 概览
    • Fern Writer
    • AI 生成的示例
    • Markdown 访问
      • 概览
      • Agent 指令
      • 智能体指令
      • 分析与集成
    • MCP 服务器
    • API 目录发现
      • 概览
      • 自动更新最后修改日期
      • Cursor
      • 使用 GitLab 托管
      • 使用 Vale
      • 下载 OpenAPI 规范
      • 下载 AsyncAPI 规范
  • 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
预约演示登录免费开始
在本页
  • 可用端点
  • 使用方法
安全

下载 OpenAPI 规范

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

使用 Vale

下一个

下载 AsyncAPI 规范

Fern 文档站点会自动提供您的原始 OpenAPI 3.1 规范,因此任何人——或任何工具——都可以下载它用于 SDK 生成、契约测试或导入到 Postman 等工具中。

该规范还从您站点的 llms.txt 中链接,因此 Cursor、Copilot 和 Claude 等 AI 编码助手可以发现并使用它来生成准确的 API 调用和构建集成。

可用端点

每个 Fern 文档站点都会在以下路径公开 OpenAPI 规范:

端点格式Content-Type
/openapi.jsonJSONapplication/json
/openapi.yamlYAMLapplication/x-yaml
/openapi.ymlYAMLapplication/x-yaml

该规范包含所有端点及其请求/响应模式、身份验证方案(Bearer、Basic、API Key、OAuth)、webhook、作为组件模式的类型定义,以及来自您环境配置的服务器 URL。它基于为您的文档提供动力的相同 API 定义生成,因此始终保持最新。

使用方法

将端点附加到您的文档 URL 以下载规范:

$# 下载为 JSON
$curl https://your-docs-site.com/openapi.json
$
$# 下载为 YAML
$curl https://your-docs-site.com/openapi.yaml

如果您的文档站点包含多个 API 定义,端点会返回可用 API 的列表。使用 api 查询参数来选择特定的 API:

$# 获取特定 API 的规范
$curl https://your-docs-site.com/openapi.json?api=my-api-id