files

List the files.

Arguments

  • projectReferenceString

    Project ID or slug. Omit to use the current project context.

  • refString

    Content selector; omit to preserve the current content context.

  • branchString

    Branch name or ID alias for ref; conflicting aliases are rejected.

  • branchIdString

    Legacy branch ID alias; omit to preserve the current context.

  • limitInt

  • cursorString

  • sortByFileSortBy

    Field to sort by. Tied update times break by path ascending. Default updated_at. One of path, updated_at.

  • sortOrderFileSortOrder

    Sort direction. Default desc. One of asc, desc.

Responses

query Files {  files {    data {      id      versionId      path      type      size      sizeBytes      content      checksum      createdAt      updatedAt    }    pageInfo {      hasNextPage      hasPreviousPage      startCursor      endCursor    }  }}
{  "data": {    "files": {      "data": [        {          "id": "string",          "versionId": "string",          "path": "string",          "type": "string",          "size": 0,          "sizeBytes": 0,          "content": "string",          "checksum": "string",          "createdAt": "2026-01-01T00:00:00Z",          "updatedAt": "2026-01-01T00:00:00Z"        }      ],      "pageInfo": {        "hasNextPage": false,        "hasPreviousPage": false,        "startCursor": "string",        "endCursor": "string"      }    }  }}

The FilesConnection in data.files.