> ## 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.

# Get Document

> Get document details (including processing status)

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

<ParamField path="id" type="string" required>
  Knowledge base ID
</ParamField>

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

<ResponseField name="id" type="string">
  Document unique identifier
</ResponseField>

<ResponseField name="fileName" type="string">
  File name
</ResponseField>

<ResponseField name="fileType" type="string">
  File MIME type
</ResponseField>

<ResponseField name="fileSize" type="number">
  File size in bytes
</ResponseField>

<ResponseField name="status" type="string">
  Processing status: `pending` | `processing` | `completed` | `failed`
</ResponseField>

<ResponseField name="chunkCount" type="number">
  Number of semantic chunks
</ResponseField>

<ResponseField name="errorMessage" type="string">
  Error message (when status is `failed`)
</ResponseField>

<ResponseField name="createdAt" type="string">
  Upload time (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>
