Skip to main content
GET
/
api
/
knowledge-base
/
{id}
/
documents
/
{docId}
curl --request GET \
  --url https://zeus-api.agentspro.cn/api/knowledge-base/kb_abc123/documents/doc_xyz789 \
  --header 'Authorization: Bearer <token>'
{
  "id": "doc_xyz789",
  "fileName": "product-guide.pdf",
  "fileType": "application/pdf",
  "fileSize": 2048576,
  "status": "completed",
  "chunkCount": 45,
  "errorMessage": null,
  "createdAt": "2025-06-10T08:00:00Z"
}
Authorization
string
required
Bearer JWT Token
id
string
required
Knowledge base ID
docId
string
required
Document ID
id
string
Document unique identifier
fileName
string
File name
fileType
string
File MIME type
fileSize
number
File size in bytes
status
string
Processing status: pending | processing | completed | failed
chunkCount
number
Number of semantic chunks
errorMessage
string
Error message (when status is failed)
createdAt
string
Upload time (ISO 8601)
curl --request GET \
  --url https://zeus-api.agentspro.cn/api/knowledge-base/kb_abc123/documents/doc_xyz789 \
  --header 'Authorization: Bearer <token>'
{
  "id": "doc_xyz789",
  "fileName": "product-guide.pdf",
  "fileType": "application/pdf",
  "fileSize": 2048576,
  "status": "completed",
  "chunkCount": 45,
  "errorMessage": null,
  "createdAt": "2025-06-10T08:00:00Z"
}