Documentation Index
Fetch the complete documentation index at: https://docs.pathors.com/llms.txt
Use this file to discover all available pages before exploring further.
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
POST https://api.pathors.com/v1/projects/{projectId}/knowledgebases/{knowledgebaseId}/datasets
Path Parameters
The knowledgebase to upload into
Bearer token using your developer key
Must be multipart/form-data
Body
The file to upload. Supported formats: PDF, TXT, DOCX, and other text-based formats.
Response
{
"message": "Dataset Uploaded successfully, currently embedding in the background",
"success": true
}
Example
curl -X POST https://api.pathors.com/v1/projects/{projectId}/knowledgebases/kb_abc123/datasets \
-H "Authorization: Bearer dk_your_key" \
-F "dataset=@/path/to/your/file.pdf"