Skip to main content
GET
/
v1
/
projects
/
{projectId}
/
knowledgebases
/
{knowledgebaseId}
/
datasets
List Datasets
curl --request GET \
  --url https://api.pathors.com/v1/projects/{projectId}/knowledgebases/{knowledgebaseId}/datasets \
  --header 'Authorization: <authorization>'
{
  "id": "<string>",
  "filename": "<string>",
  "fileUrl": "<string>",
  "extensionType": "<string>",
  "size": 123,
  "isParsed": true,
  "createdAt": "<string>",
  "updatedAt": "<string>"
}

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.

Request

GET https://api.pathors.com/v1/projects/{projectId}/knowledgebases/{knowledgebaseId}/datasets

Path Parameters

projectId
string
required
The project ID
knowledgebaseId
string
required
The knowledgebase ID

Headers

Authorization
string
required
Bearer token using your developer key

Response

Returns an array of datasets, ordered by creation date (most recent first).
id
string
Unique identifier for the dataset
filename
string
Original uploaded filename
fileUrl
string
URL to download the original file
extensionType
string
File extension (e.g. pdf, txt)
size
number
File size in bytes
isParsed
boolean
true once the dataset has been chunked and embedded; false while still processing.
createdAt
string
ISO timestamp when the dataset was created
updatedAt
string
ISO timestamp when the dataset was last updated

Example

curl https://api.pathors.com/v1/projects/{projectId}/knowledgebases/kb_abc123/datasets \
  -H "Authorization: Bearer dk_your_key"
[
  {
    "id": "dataset_abc123",
    "filename": "company-handbook.pdf",
    "fileUrl": "https://api.pathors.com/datasets/dataset_abc123.pdf",
    "extensionType": "pdf",
    "size": 2048000,
    "isParsed": true,
    "createdAt": "2026-01-15T10:30:00Z",
    "updatedAt": "2026-01-15T10:35:00Z"
  }
]