Method
Parameters
Filter file uploads by status. If not supplied, returns uploads with any status.Options:
"pending" | "uploaded" | "expired" | "failed"Pagination cursor. If supplied, returns results starting after this cursor. If not supplied, returns the first page of results.
Number of items to return per page. Maximum: 100. Default: 100.
Response
Returns a paginated list response.Always
"list"Array of FileUpload objects.
Cursor for the next page.
null if there are no more results.Whether there are more results beyond this page.
Always
"file_upload"Examples
List all file uploads
Retrieve all file uploads with default pagination:Filter by status
Get only successfully uploaded files:Paginate through results
Iterate through all pages manually:Monitor pending uploads
Track multi-part uploads in progress:Check for expired uploads
Find uploads that have expired:Custom page size
Retrieve a specific number of results:File Upload Object
Each file upload in the results contains:object: Always"file_upload"id: Unique identifierstatus:"pending","uploaded","expired", or"failed"filename: Name of the filecontent_type: MIME typecontent_length: File size in bytescreated_time: When the upload was createdcreated_by: User who created the uploadlast_edited_time: Last update timestampexpiry_time: When the upload URL expiresnumber_of_parts: For multi-part uploads, containstotalandsentcountsfile_import_result: Import result withtype,imported_time, andsuccessorerrordetails
Notes
- Results are sorted by creation time, with most recent first
- File upload objects eventually expire and may be removed from the list
- Use pagination helpers from
@notionhq/clientto efficiently iterate through all results - The
statusfilter is useful for monitoring upload pipelines and handling failures
Related
- Create file upload - Initialize a new upload
- Send file upload - Upload file data
- Complete file upload - Finalize multi-part upload