> ## Documentation Index
> Fetch the complete documentation index at: https://docs.zeus.agentspro.cn/llms.txt
> Use this file to discover all available pages before exploring further.

# 获取文档内容

> 获取文档原始文本内容（预览）

返回文档的原始文本内容，用于客户端预览。

<ParamField header="Authorization" type="string" required>
  Bearer JWT Token
</ParamField>

<ParamField path="id" type="string" required>
  知识库 ID
</ParamField>

<ParamField path="docId" type="string" required>
  文档 ID
</ParamField>

<ResponseField name="content" type="string">
  文档原始文本内容
</ResponseField>

<ResponseField name="fileName" type="string">
  文件名
</ResponseField>

<ResponseField name="fileType" type="string">
  文件 MIME 类型
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl --request GET \
    --url https://zeus-api.agentspro.cn/api/knowledge-base/kb_abc123/documents/doc_xyz789/content \
    --header 'Authorization: Bearer <token>'
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "content": "# 产品使用指南\n\n## 1. 安装\n\n下载安装包...",
    "fileName": "product-guide.md",
    "fileType": "text/markdown"
  }
  ```
</ResponseExample>
