Drive API
File storage: folders, uploads, downloads, sharing, and version history.
| Endpoint | POST https://drive.api.gist.link/graphql |
| Token audience | audience=drive |
| Permission prefix | drive: |
Mint an access token for this API with your IAM key and audience=drive
— see Authentication.
Queries
Section titled “Queries”| Operation | Required permission | Description |
|---|---|---|
breadcrumbs |
drive:query:breadcrumbs |
Ancestor chain, root first, ending with the node itself. |
downloadUrl |
drive:query:downloadUrl |
Short-lived presigned GET for a file (disposition: attachment|inline). |
driveOverview |
drive:query:driveOverview |
— |
health |
drive:query:health |
— |
node |
drive:query:node |
Single file/folder with share grants (owner only sees grants). |
nodes |
drive:query:nodes |
Paginated listing. Scope via filter: parentId — children of a folder rootOnly — caller’s My Drive roots sharedWithMe — items granted to the caller (or org-wide) starred — caller’s starred items recent — caller-visible files by last update trashed — caller’s trash (explicitly trashed roots) search/type/visibility — combinable refinements |
nodeVersions |
drive:query:nodeVersions |
Version history of a file, newest first. |
Mutations
Section titled “Mutations”| Operation | Required permission | Description |
|---|---|---|
completeUpload |
drive:mutation:completeUpload |
Marks the uploaded object live (verifies it exists, records size/ETag). |
createFolder |
drive:mutation:createFolder |
— |
createUpload |
drive:mutation:createUpload |
Direct-to-bucket upload: returns a presigned PUT the browser uploads to. |
deleteNodesForever |
drive:mutation:deleteNodesForever |
— |
emptyTrash |
drive:mutation:emptyTrash |
— |
moveNodes |
drive:mutation:moveNodes |
— |
renameNode |
drive:mutation:renameNode |
— |
restoreNodes |
drive:mutation:restoreNodes |
— |
restoreVersion |
drive:mutation:restoreVersion |
— |
revokeShare |
drive:mutation:revokeShare |
— |
setNodeVisibility |
drive:mutation:setNodeVisibility |
S3-style object ACL: private | public. Public nodes get a stable anonymous URL. |
shareNode |
drive:mutation:shareNode |
Grant a user (by email) or the whole org viewer/editor access. |
starNode |
drive:mutation:starNode |
— |
trashNodes |
drive:mutation:trashNodes |
— |
updateObjectSettings |
drive:mutation:updateObjectSettings |
S3-level serving controls (Content-Type, Cache-Control, disposition, metadata). |
Internal operations
Section titled “Internal operations”The following operations exist in the schema but are reserved for internal
suite automation (service tokens or suite operators) and are not available
to IAM credentials: managedDownloadUrl, ensureManagedFolder, createManagedUpload, completeManagedUpload, expireManagedFile.