Skip to main content
POST
/
v1
/
projects
/
{projectId}
/
knowledgebases
/
{knowledgebaseId}
/
datasets
Create Dataset
curl --request POST \
  --url https://api.pathors.com/v1/projects/{projectId}/knowledgebases/{knowledgebaseId}/datasets \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: <content-type>' \
  --data '{}'

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

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

Headers

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

Body

dataset
file
required
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"