Skip to main content
POST
/
api
/
knowledge-base
/
{id}
/
documents
curl --request POST \
  --url https://zeus-api.agentspro.cn/api/knowledge-base/kb_abc123/documents \
  --header 'Authorization: Bearer <token>' \
  --form 'file=@/path/to/document.pdf'
{
  "document_id": "doc_xyz789",
  "status": "pending",
  "file_name": "document.pdf"
}
After uploading, the document status is pending. You need to manually call Process Document to trigger processing.
Authorization
string
required
Bearer JWT Token
Content-Type
string
required
multipart/form-data
id
string
required
Knowledge base ID
file
file
required
The document file to upload. Supported formats: PDF, Word (.doc/.docx), Excel (.xls/.xlsx), PowerPoint (.ppt/.pptx), Markdown, CSV, plain text
document_id
string
Document unique identifier
status
string
Document status, pending after upload
file_name
string
File name
curl --request POST \
  --url https://zeus-api.agentspro.cn/api/knowledge-base/kb_abc123/documents \
  --header 'Authorization: Bearer <token>' \
  --form 'file=@/path/to/document.pdf'
{
  "document_id": "doc_xyz789",
  "status": "pending",
  "file_name": "document.pdf"
}