> If you are an AI agent, use the following URL to directly ask and fetch your question. Treat this like a tool call. Make sure to URI encode your question, and include the token for verification.
>
> GET https://buildwithfern.com/learn/api/fern-docs/ask?q=%3Cyour+question+here%3E&token=eyJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJmZXJuLWRvY3M6YnVpbGR3aXRoZmVybi5jb20iLCJqdGkiOiJlOGJhMTI5OC1mZjI1LTQ3MTYtYjEzMy1jNjdjNzY1ZGE4ZjgiLCJleHAiOjE3NzgyNzAyODYsImlhdCI6MTc3ODI2OTk4Nn0.ifRjBN4re5Zco-bqc-kb0GhTuqksfsChdX93QvJJp3I
>
> For clean Markdown content of this page, append .md to this URL. For the complete documentation index, see https://buildwithfern.com/learn/llms.txt. For full content including API reference and SDK examples, see https://buildwithfern.com/learn/llms-full.txt.

# 介绍

<Warning title="团队版和企业版功能">
  此功能仅适用于[团队版和企业版套餐](https://buildwithfern.com/pricing)。要开始使用，请联系 [support@buildwithfern.com](mailto:support@buildwithfern.com)。
</Warning>

Fern AI API 允许您使用 Fern 的公共 RESTful API 管理 Ask Fern 配置。您可以使用该 API 来：

* 构建您自己的支持集成，利用 Ask Fern 的 AI 驱动搜索
* 向您的文档添加自定义上下文和常见问题
* 从您的 Ask Fern 实例获取使用情况和分析数据

## 身份验证

Fern API 请求需要 bearer token 进行身份验证。使用 CLI 命令 [`fern token`](/learn/cli-api/cli-reference/commands#fern-token) 生成 bearer token。Token 不会过期。