Uploads one or more files to the user’s IP Vault for RAG processing and embedding. Files are uploaded via multipart form-data using the ‘files’ field name. Audio files (mp3, m4a, webm, wav, mp4, mov, etc.) are limited to 25MB each. Non-audio files are limited to 150MB each. The multer middleware enforces a 500MB overall limit per file before the handler’s own size checks.
JWT token passed in x-access-token header
File(s) to upload. Audio files limited to 25MB, non-audio limited to 150MB.
Legacy global confidential flag (string 'true'/'false'). Only applied when institution is provided. Overridden per-file by fileConfidential.
"false"
JSON string mapping original filenames to per-file confidential booleans. Example: '{"report.pdf": true, "notes.txt": false}'. Overrides the global confidential flag.
"{\"report.pdf\": true, \"notes.txt\": false}"
Institution ID to associate the uploads with
"6631915765bb0a94cfd6ca99"
When 'true' and institution is set, marks files as shared across the institution's account
"false"
JSON string with course context for the upload history record. Example: '{"course_id": 1750532703472, "course_name": "Research"}'
"{\"course_id\": 1750532703472, \"course_name\": \"Research\"}"
Assistant ID for the upload history record (used as fallback if selectedCourse.assistant._id is not set)
"6856fa89cbafcff8d98680f5"