List the uploads the caller can see under an optional folder prefix, newest first by default, with the visible folders in a separate list. Requires project.uploads.read.
Arguments
inputUploadsInput!requiredinput.projectReferenceString!requiredProject UUID, slug or configured domain.
input.pathStringFolder prefix; a supplied path selects its direct-child uploads. Omit it to list the whole project.
input.recursiveBooleanExpand nested folders in folders (default true). It does not change which uploads are listed.
input.sortByUploadSortBySort field: created_at (default), name or size_bytes. Ties break by upload ID ascending. One of
created_at,name,size_bytes.input.sortOrderUploadSortOrderSort direction: asc or desc (default). One of
asc,desc.input.cursorStringpageInfo.endCursor of the previous page; send it unchanged with the same path and sort.
input.limitIntUploads scanned per page before visibility filtering (default 20, max 100).
Responses
query Uploads($input: UploadsInput!) { uploads(input: $input) { data { id path fileName contentType sizeBytes url status visibility permission createdAt updatedAt deletedAt } folders { path visibility permission createdAt } pageInfo { hasNextPage hasPreviousPage startCursor endCursor } }}{ "data": { "uploads": { "data": [ { "id": "string", "path": "string", "fileName": "string", "contentType": "string", "sizeBytes": 0, "url": "https://example.com", "status": "pending", "visibility": "project", "permission": "read", "createdAt": "2026-01-01T00:00:00Z", "updatedAt": "2026-01-01T00:00:00Z", "deletedAt": "2026-01-01T00:00:00Z" } ], "folders": [ { "path": "string", "visibility": "string", "permission": "string", "createdAt": "string" } ], "pageInfo": { "hasNextPage": false, "hasPreviousPage": false, "startCursor": "string", "endCursor": "string" } } }}The UploadList! in data.uploads.