Return a file. Requires project.files.read.
Arguments
inputFileInput!requiredinput.projectReferenceStringProject UUID, slug or configured domain. Omit it to use the project of the request.
input.filePathString!requiredProject-relative source path, or the file ID.
input.refStringContent to read: main, branch:<name-or-id>, release:<version> or env:<name>. Omit for main.
Responses
query File($input: FileInput!) { file(input: $input) { binary { contentHash byteSize contentType } id versionId path type size sizeBytes content checksum createdAt updatedAt }}{ "data": { "file": { "binary": { "contentHash": "string", "byteSize": 0, "contentType": "string" }, "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" } }}The File! in data.file.