List project uploads
Retrieves a paginated grid of project uploads with filtering and sorting capabilities. Quick search available on: fileName, description. Filterable fields: id, projectId, fileId, fileName, description, categoryId, mimeType, fileSize, userId, updatedAt. Sortable fields: id, projectId, fileId, fileName, description, categoryId, mimeType, fileSize, userId, updatedAt.
What are Project Uploads? Project uploads allow you to centrally manage project-related files within Leadtime. This feature provides organized storage for documents like contracts, offers, technical specifications, or internal notes directly within project context, eliminating the need to search through external folders.
What is returned:
- Upload identification (ID, project ID, file ID)
- File information (filename, MIME type, file size in bytes)
- Organization details (description, category ID)
- User information (user ID who created or last updated the upload)
- Timestamps (creation and last update dates)
Filtering and search:
- Quick search across file name and description fields
- Advanced filtering by project ID, category, file type, user, and more
- Sorting by any sortable field (default: updatedAt descending)
- Server-side pagination for large upload lists
Access control: This endpoint automatically filters uploads based on project access permissions:
- Users with Projects.seeAnyProject permission see all uploads across all projects
- Other users see only uploads from projects they have access to
- Optional filtering by projectId via grid filters allows focusing on specific projects
Note: This endpoint requires the Projects.manageUploads permission.
/projects/uploadsAuthorizationOAuth2 access token · headerrequiredapi:readAuthorizationBearer token (JWT) · headerrequiredpagenumberpageSizenumberviewIdstringquickSearchstringfiltersstringsortstringfieldsToReturnany[]curl -X GET "https://leadtime.app/api/public/projects/uploads" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"const response = await fetch("https://leadtime.app/api/public/projects/uploads", {
method: "GET",
headers: {
"Authorization": "Bearer YOUR_ACCESS_TOKEN"
}
});import requests
response = requests.get(
"https://leadtime.app/api/public/projects/uploads",
headers={
"Authorization": "Bearer YOUR_ACCESS_TOKEN"
},
)