> ## 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="id" type="string">
  文档唯一标识
</ResponseField>

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

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

<ResponseField name="fileSize" type="number">
  文件大小（字节）
</ResponseField>

<ResponseField name="status" type="string">
  处理状态：`pending` | `processing` | `completed` | `failed`
</ResponseField>

<ResponseField name="chunkCount" type="number">
  语义分块数量
</ResponseField>

<ResponseField name="errorMessage" type="string">
  错误信息（`failed` 状态时）
</ResponseField>

<ResponseField name="createdAt" type="string">
  上传时间（ISO 8601）
</ResponseField>

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

<ResponseExample>
  ```json 200 theme={null}
  {
    "id": "doc_xyz789",
    "fileName": "product-guide.pdf",
    "fileType": "application/pdf",
    "fileSize": 2048576,
    "status": "completed",
    "chunkCount": 45,
    "errorMessage": null,
    "createdAt": "2025-06-10T08:00:00Z"
  }
  ```
</ResponseExample>
