Dec 2025 - New! Caching input tokens unlocks immediate, automatic ~30% credit savings on supported models
cURL
curl --request POST \ --url http://localhost:3000/api/user/files \ --header 'Content-Type: multipart/form-data' \ --header 'x-access-token: <api-key>' \ --form 'selectedCourse={ "course_id": 123, "course_name": "<string>", "assistant": { "_id": "<string>", "name": "<string>" } }' \ --form files='@example-file'
{ "success": true, "message": "<string>", "fileId": "<string>" }
Uploads one or more files along with course context information
JWT token passed in x-access-token header
File(s) to upload
Object used by the RAG to save a dialog confirming upload results in the proper conversation
Show child attributes
File uploaded successfully
Upload success status
Response message
Uploaded file identifier
Was this page helpful?