Files connector
Get files connector
GET /knowledgeSource/filesConnector
GET /knowledgeSource/filesConnector
Returns the files connector row (auto-created if missing), including all folder structure rows and file knowledge_source rows underneath. The connector is a singleton per installation.
Responses
200 — Successful operation
Response Example
{
"id": 10,
"name": "Files",
"type": "file",
"folderCount": 5,
"fileCount": 23,
"data": {
"allowedExtensions": [
"pdf",
"docx",
"txt"
],
"maxFileSizeMb": 50
},
"folders": [
{
"id": 11,
"parent": 10,
"name": "Sales"
}
],
"files": [
{
"id": 42,
"parent": 11,
"name": "Pricing-2026.pdf",
"title": "Pricing-2026.pdf",
"source": "Sales/Pricing-2026.pdf",
"status": "active",
"originalFileName": "Pricing-2026.pdf",
"originalMimeType": "application/pdf",
"originalSize": 2154288,
"originalUrl": "/api/mind/storage/knowledgeSources/42-abc12345/Pricing-2026.pdf",
"hasManualMarkdownEdits": false,
"createdAt": "2026-01-01T12:00:00Z",
"modifiedAt": "2026-01-01T12:00:00Z"
}
]
}500 — Internal error