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/uploads \ --header 'Content-Type: application/json' \ --header 'x-access-token: <api-key>' \ --data ' { "lean": true, "status": { "$ne": "deleted" }, "fileNameSearch": "file123" } '
{ "success": true, "data": [ { "_id": "<string>", "filename": "<string>", "originalname": "<string>", "mimetype": "<string>", "created": "2023-11-07T05:31:56Z", "filesize": 123, "status": "active", "thumbnail": "<string>", "user": "<string>", "institution": "<string>", "file_summary": "<string>", "file_title": "<string>", "file_url": "<string>", "tokens_used": 123, "is_private": true, "file_dimensions": "<string>", "file_authors": "<string>", "owner_data": { "email": "[email protected]", "fname": "<string>", "lname": "<string>" }, "index": 123 } ] }
Retrieves a list of user uploads with optional filtering by filename and status
JWT token passed in x-access-token header
Return minimal data structure
Show child attributes
MongoDB not-equal operator
Search term for filename filtering
Successfully retrieved user uploads
Upload success status
Array of upload records with associated data
Unique identifier for the file
System-generated filename
Original filename as uploaded, primary name identifier for the user and llm
MIME type of the file
File creation timestamp
File size in bytes
Current status of the file
active
selected
deleted
error
Thumbnail picture encoded
User ID who owns the file
Institution ID that the file is shared with
AI-generated summary of file content
AI-generated title for the file
URL to access the file
Number of tokens used for processing
Whether the file is private
Image dimensions (for image files)
Authors of the content
Index position in the list
Was this page helpful?