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.
JWT token passed in x-access-token header
When true, omits file_summary, filename, file_authors, mimetype, owner_data, and institution_data
When true, omits file_title, file_summary, thumbnail, owner_data, and institution_data
When true, retrieves uploads from all institution members instead of just the current user (requires institution to be set)
Filter by status. If omitted, defaults to {$ne: "deleted"}
Case-insensitive regex search term applied to originalname
Return only the upload with this specific ID
Filter by vault type. personal: user-owned files with no institution. instance: institution files that are not account-shared. account: account-shared files across all institutions.
personal, instance, account Institution ID to scope the query. Used with vault or all to target a specific institution.
Page number for pagination (1-based)
x >= 1Number of items per page (clamped to 1-50)
1 <= x <= 50When true, sorts in ascending order; otherwise descending
When truthy, sorts by created date instead of the default case-insensitive originalname sort
Sort field. When provided, overrides nameOrder. ragHitCount sorts by usage count, lastRagHitAt sorts by recency of RAG matches (nulls first when ascending).
ragHitCount, lastRagHitAt When true, appends a vaultCounts object to the response with total and active counts per vault (personal, instance, account)
Successfully retrieved user uploads
Whether the request succeeded
Array of upload records for the requested page
Total number of matching uploads across all pages
Whether more pages exist beyond the current page
Current page number (mirrors the request value)
Items per page used (mirrors the resolved request value)
Vault-level counts (only present when includeCounts: true)