Skip to main content
POST
Upload File to Knowledge Base

Headers

string
required
API key used for authenticating requests to the API.
string
required
Workspace identifier for the API.

Path Parameters

string
required
The unique identifier of the knowledge base to upload the file to.

Request Body

The request body should be sent as multipart/form-data.
file
required
The file to upload. Supported formats: PDF, TXT, DOCX, MD, CSV, JSON. Maximum file size: 50MB.

Response Fields

boolean
Whether the file was uploaded successfully.
object
Details of the uploaded file.
string
Name of the uploaded file.
number
Size of the file in bytes.
string
MIME type of the file.