Skip to main content
POST
Create Dataset
Uploads a file as a new dataset. The file is chunked and embedded asynchronously after upload — poll List Datasets and watch isParsed to know when it’s ready for query.

Request

Path Parameters

string
required
The project ID
string
required
The knowledgebase to upload into

Headers

string
required
Bearer token using your developer key
string
required
Must be multipart/form-data

Body

file
required
The file to upload. Supported formats: PDF, TXT, DOCX, and other text-based formats.

Response

Example