{
"success": true,
"data": [
{
"_id": "<string>",
"filename": "<string>",
"originalname": "<string>",
"mimetype": "<string>",
"created": "2023-11-07T05:31:56Z",
"filesize": 123,
"status": "inactive",
"thumbnail": "<string>",
"user": "<string>",
"institution": "<string>",
"account_shared": true,
"file_summary": "<string>",
"file_title": "<string>",
"file_url": "<string>",
"tokens_used": 123,
"is_public": false,
"is_private": false,
"file_dimensions": "<string>",
"file_authors": "<string>",
"embeddings_model": "<string>",
"summary_model": "<string>",
"image_analysis_model": "<string>",
"googleDriveFileId": "<string>",
"googleDriveModifiedTime": "2023-11-07T05:31:56Z",
"ragHitCount": 0,
"lastRagHitAt": "2023-11-07T05:31:56Z",
"vaultHealthScore": 123,
"fileOnDisk": true,
"owner_data": {
"email": "jsmith@example.com",
"fname": "<string>",
"lname": "<string>",
"institution": "<string>"
},
"institution_data": {
"name": "<string>",
"ainame": "<string>"
},
"institution_name": "<string>",
"institution_display_name": "<string>",
"index": 123,
"collection": "<string>",
"collection_path": [
{
"_id": "<string>",
"name": "<string>",
"color": "<string>"
}
]
}
],
"total": 123,
"hasMore": true,
"page": 123,
"pageSize": 123,
"vaultCounts": {
"personal": {
"total": 123,
"active": 123
},
"instance": {
"total": 123,
"active": 123
},
"account": {
"total": 123,
"active": 123
}
}
}{
"success": false,
"message": "Failed to get uploads <error message>",
"error": {}
}{
"success": false,
"message": "Authentication Required"
}{
"success": false,
"message": "Standard users cannot access instance vault"
}Search and retrieve user uploaded files
Retrieves a paginated list of user uploads with optional filtering by filename, status, vault type, and institution. Supports compact and lean response modes. When no vault is specified, legacy behavior applies: the user’s personal files plus institution files are returned, and account-shared uploads from sibling institutions are appended.
{
"success": true,
"data": [
{
"_id": "<string>",
"filename": "<string>",
"originalname": "<string>",
"mimetype": "<string>",
"created": "2023-11-07T05:31:56Z",
"filesize": 123,
"status": "inactive",
"thumbnail": "<string>",
"user": "<string>",
"institution": "<string>",
"account_shared": true,
"file_summary": "<string>",
"file_title": "<string>",
"file_url": "<string>",
"tokens_used": 123,
"is_public": false,
"is_private": false,
"file_dimensions": "<string>",
"file_authors": "<string>",
"embeddings_model": "<string>",
"summary_model": "<string>",
"image_analysis_model": "<string>",
"googleDriveFileId": "<string>",
"googleDriveModifiedTime": "2023-11-07T05:31:56Z",
"ragHitCount": 0,
"lastRagHitAt": "2023-11-07T05:31:56Z",
"vaultHealthScore": 123,
"fileOnDisk": true,
"owner_data": {
"email": "jsmith@example.com",
"fname": "<string>",
"lname": "<string>",
"institution": "<string>"
},
"institution_data": {
"name": "<string>",
"ainame": "<string>"
},
"institution_name": "<string>",
"institution_display_name": "<string>",
"index": 123,
"collection": "<string>",
"collection_path": [
{
"_id": "<string>",
"name": "<string>",
"color": "<string>"
}
]
}
],
"total": 123,
"hasMore": true,
"page": 123,
"pageSize": 123,
"vaultCounts": {
"personal": {
"total": 123,
"active": 123
},
"instance": {
"total": 123,
"active": 123
},
"account": {
"total": 123,
"active": 123
}
}
}{
"success": false,
"message": "Failed to get uploads <error message>",
"error": {}
}{
"success": false,
"message": "Authentication Required"
}{
"success": false,
"message": "Standard users cannot access instance vault"
}Body
Filter by status. Real DB values (inactive/selected/active/error/deleted) match exactly. Pseudo-values:
excluded: expands tostatus $nin:['selected','deleted']processing: matchesingestion.phase ∈ {extract, chunk, sanitize, embed, kag}ANDstatus $ne:'deleted'. Use this to surface files currently mid-ingestion regardless of their literal status (in-flight files usually carry status:'inactive' until the pipeline finishes). When omitted, defaults to $ne:'deleted'.
inactive, selected, active, error, deleted, excluded, processing When true, includes files that belong to a vault-scoped collection in the results.
Default false — files in collections are excluded from root vault listings to avoid
duplicates with the CollectionStrip render. Auto-bypassed (treated as true) for the
attention filters status: 'processing' and status: 'error' so the user can see
every file needing attention from the vault root, regardless of its container.
Response
Successfully retrieved user uploads
Was this page helpful?