uploads

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!required

  • input.projectReferenceString!required

    Project UUID, slug or configured domain.

  • input.pathString

    Folder prefix; a supplied path selects its direct-child uploads. Omit it to list the whole project.

  • input.recursiveBoolean

    Expand nested folders in folders (default true). It does not change which uploads are listed.

  • input.sortByUploadSortBy

    Sort field: created_at (default), name or size_bytes. Ties break by upload ID ascending. One of created_at, name, size_bytes.

  • input.sortOrderUploadSortOrder

    Sort direction: asc or desc (default). One of asc, desc.

  • input.cursorString

    pageInfo.endCursor of the previous page; send it unchanged with the same path and sort.

  • input.limitInt

    Uploads 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.