Skip to main content
POST
/
api
/
agents
/
{agentId}
/
knowledge
/
file
{
  "success": true,
  "documentId": "<string>",
  "status": "<string>"
}

Description

Upload a document to the knowledge base.

Authentication

Required (API key or JWT token)

Request Body

file
file
required
Document file (PDF, Word, Text, Markdown)

Response

success
boolean
Whether upload was successful
documentId
string
ID of the created document
status
string
Processing status (pending, processing, indexed, failed)