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