Skip to main content
POST
Upload Document

Description

Upload a document to the knowledge base.

Authentication

Required (API key or JWT token)

Request Body

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

Response

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