googledrive.api.* operation is listed below with parameter shapes and return types from the plugin Zod schemas.
New to Corsair? See API access, authentication, and error handling.
Files
copy
files.copy
Copy a file in Google Drive
Risk: write
| Name | Type | Required | Description |
|---|---|---|---|
fileId | string | Yes | — |
name | string | No | — |
parents | string[] | No | — |
supportsAllDrives | boolean | No | — |
supportsTeamDrives | boolean | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
id | string | No | — |
name | string | No | — |
mimeType | string | No | — |
description | string | No | — |
starred | boolean | No | — |
trashed | boolean | No | — |
explicitlyTrashed | boolean | No | — |
parents | string[] | No | — |
properties | object | No | — |
appProperties | object | No | — |
spaces | string[] | No | — |
version | string | No | — |
webViewLink | string | No | — |
webContentLink | string | No | — |
iconLink | string | No | — |
hasThumbnail | boolean | No | — |
thumbnailLink | string | No | — |
thumbnailVersion | string | No | — |
viewedByMe | boolean | No | — |
viewedByMeTime | string | No | — |
createdTime | string | No | — |
modifiedTime | string | No | — |
modifiedByMeTime | string | No | — |
modifiedByMe | boolean | No | — |
shared | boolean | No | — |
ownedByMe | boolean | No | — |
permissionIds | string[] | No | — |
hasAugmentedPermissions | boolean | No | — |
folderColorRgb | string | No | — |
originalFilename | string | No | — |
fullFileExtension | string | No | — |
fileExtension | string | No | — |
md5Checksum | string | No | — |
size | string | No | — |
quotaBytesUsed | string | No | — |
headRevisionId | string | No | — |
isAppAuthorized | boolean | No | — |
resourceKey | string | No | — |
sha1Checksum | string | No | — |
sha256Checksum | string | No | — |
properties full type
properties full type
appProperties full type
appProperties full type
createFromText
files.createFromText
Create a new Drive file from text content
Risk: write
| Name | Type | Required | Description |
|---|---|---|---|
name | string | Yes | — |
content | string | Yes | — |
mimeType | string | No | — |
parents | string[] | No | — |
description | string | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
id | string | No | — |
name | string | No | — |
mimeType | string | No | — |
description | string | No | — |
starred | boolean | No | — |
trashed | boolean | No | — |
explicitlyTrashed | boolean | No | — |
parents | string[] | No | — |
properties | object | No | — |
appProperties | object | No | — |
spaces | string[] | No | — |
version | string | No | — |
webViewLink | string | No | — |
webContentLink | string | No | — |
iconLink | string | No | — |
hasThumbnail | boolean | No | — |
thumbnailLink | string | No | — |
thumbnailVersion | string | No | — |
viewedByMe | boolean | No | — |
viewedByMeTime | string | No | — |
createdTime | string | No | — |
modifiedTime | string | No | — |
modifiedByMeTime | string | No | — |
modifiedByMe | boolean | No | — |
shared | boolean | No | — |
ownedByMe | boolean | No | — |
permissionIds | string[] | No | — |
hasAugmentedPermissions | boolean | No | — |
folderColorRgb | string | No | — |
originalFilename | string | No | — |
fullFileExtension | string | No | — |
fileExtension | string | No | — |
md5Checksum | string | No | — |
size | string | No | — |
quotaBytesUsed | string | No | — |
headRevisionId | string | No | — |
isAppAuthorized | boolean | No | — |
resourceKey | string | No | — |
sha1Checksum | string | No | — |
sha256Checksum | string | No | — |
properties full type
properties full type
appProperties full type
appProperties full type
delete
files.delete
Permanently delete a file [DESTRUCTIVE · IRREVERSIBLE]
Risk: destructive · Irreversible
| Name | Type | Required | Description |
|---|---|---|---|
fileId | string | Yes | — |
supportsAllDrives | boolean | No | — |
supportsTeamDrives | boolean | No | — |
void
download
files.download
Download the content of a file
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
fileId | string | Yes | — |
acknowledgeAbuse | boolean | No | — |
any
get
files.get
Get metadata for a specific file
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
fileId | string | Yes | — |
acknowledgeAbuse | boolean | No | — |
supportsAllDrives | boolean | No | — |
supportsTeamDrives | boolean | No | — |
includePermissionsForView | string | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
id | string | No | — |
name | string | No | — |
mimeType | string | No | — |
description | string | No | — |
starred | boolean | No | — |
trashed | boolean | No | — |
explicitlyTrashed | boolean | No | — |
parents | string[] | No | — |
properties | object | No | — |
appProperties | object | No | — |
spaces | string[] | No | — |
version | string | No | — |
webViewLink | string | No | — |
webContentLink | string | No | — |
iconLink | string | No | — |
hasThumbnail | boolean | No | — |
thumbnailLink | string | No | — |
thumbnailVersion | string | No | — |
viewedByMe | boolean | No | — |
viewedByMeTime | string | No | — |
createdTime | string | No | — |
modifiedTime | string | No | — |
modifiedByMeTime | string | No | — |
modifiedByMe | boolean | No | — |
shared | boolean | No | — |
ownedByMe | boolean | No | — |
permissionIds | string[] | No | — |
hasAugmentedPermissions | boolean | No | — |
folderColorRgb | string | No | — |
originalFilename | string | No | — |
fullFileExtension | string | No | — |
fileExtension | string | No | — |
md5Checksum | string | No | — |
size | string | No | — |
quotaBytesUsed | string | No | — |
headRevisionId | string | No | — |
isAppAuthorized | boolean | No | — |
resourceKey | string | No | — |
sha1Checksum | string | No | — |
sha256Checksum | string | No | — |
properties full type
properties full type
appProperties full type
appProperties full type
list
files.list
List files in Google Drive
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
q | string | No | — |
pageSize | number | No | — |
pageToken | string | No | — |
spaces | string | No | — |
corpora | string | No | — |
driveId | string | No | — |
includeItemsFromAllDrives | boolean | No | — |
includePermissionsForView | string | No | — |
orderBy | string | No | — |
supportsAllDrives | boolean | No | — |
supportsTeamDrives | boolean | No | — |
teamDriveId | string | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
kind | string | No | — |
nextPageToken | string | No | — |
incompleteSearch | boolean | No | — |
files | object[] | No | — |
files full type
files full type
move
files.move
Move a file to a different folder
Risk: write
| Name | Type | Required | Description |
|---|---|---|---|
fileId | string | Yes | — |
addParents | string | No | — |
removeParents | string | No | — |
supportsAllDrives | boolean | No | — |
supportsTeamDrives | boolean | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
id | string | No | — |
name | string | No | — |
mimeType | string | No | — |
description | string | No | — |
starred | boolean | No | — |
trashed | boolean | No | — |
explicitlyTrashed | boolean | No | — |
parents | string[] | No | — |
properties | object | No | — |
appProperties | object | No | — |
spaces | string[] | No | — |
version | string | No | — |
webViewLink | string | No | — |
webContentLink | string | No | — |
iconLink | string | No | — |
hasThumbnail | boolean | No | — |
thumbnailLink | string | No | — |
thumbnailVersion | string | No | — |
viewedByMe | boolean | No | — |
viewedByMeTime | string | No | — |
createdTime | string | No | — |
modifiedTime | string | No | — |
modifiedByMeTime | string | No | — |
modifiedByMe | boolean | No | — |
shared | boolean | No | — |
ownedByMe | boolean | No | — |
permissionIds | string[] | No | — |
hasAugmentedPermissions | boolean | No | — |
folderColorRgb | string | No | — |
originalFilename | string | No | — |
fullFileExtension | string | No | — |
fileExtension | string | No | — |
md5Checksum | string | No | — |
size | string | No | — |
quotaBytesUsed | string | No | — |
headRevisionId | string | No | — |
isAppAuthorized | boolean | No | — |
resourceKey | string | No | — |
sha1Checksum | string | No | — |
sha256Checksum | string | No | — |
properties full type
properties full type
appProperties full type
appProperties full type
share
files.share
Share a file by granting permissions to users
Risk: write
| Name | Type | Required | Description |
|---|---|---|---|
fileId | string | Yes | — |
type | user | group | domain | anyone | No | — |
role | owner | organizer | fileOrganizer | writer | commenter | reader | No | — |
emailAddress | string | No | — |
domain | string | No | — |
allowFileDiscovery | boolean | No | — |
expirationTime | string | No | — |
sendNotificationEmail | boolean | No | — |
emailMessage | string | No | — |
supportsAllDrives | boolean | No | — |
supportsTeamDrives | boolean | No | — |
moveToNewOwnersRoot | boolean | No | — |
transferOwnership | boolean | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
id | string | No | — |
type | user | group | domain | anyone | No | — |
emailAddress | string | No | — |
domain | string | No | — |
role | owner | organizer | fileOrganizer | writer | commenter | reader | No | — |
allowFileDiscovery | boolean | No | — |
displayName | string | No | — |
photoLink | string | No | — |
expirationTime | string | No | — |
deleted | boolean | No | — |
view | user | domain | No | — |
pendingOwner | boolean | No | — |
update
files.update
Update the content or metadata of a file
Risk: write
| Name | Type | Required | Description |
|---|---|---|---|
fileId | string | Yes | — |
name | string | No | — |
description | string | No | — |
starred | boolean | No | — |
trashed | boolean | No | — |
parents | string[] | No | — |
addParents | string | No | — |
removeParents | string | No | — |
properties | object | No | — |
appProperties | object | No | — |
supportsAllDrives | boolean | No | — |
supportsTeamDrives | boolean | No | — |
properties full type
properties full type
appProperties full type
appProperties full type
| Name | Type | Required | Description |
|---|---|---|---|
id | string | No | — |
name | string | No | — |
mimeType | string | No | — |
description | string | No | — |
starred | boolean | No | — |
trashed | boolean | No | — |
explicitlyTrashed | boolean | No | — |
parents | string[] | No | — |
properties | object | No | — |
appProperties | object | No | — |
spaces | string[] | No | — |
version | string | No | — |
webViewLink | string | No | — |
webContentLink | string | No | — |
iconLink | string | No | — |
hasThumbnail | boolean | No | — |
thumbnailLink | string | No | — |
thumbnailVersion | string | No | — |
viewedByMe | boolean | No | — |
viewedByMeTime | string | No | — |
createdTime | string | No | — |
modifiedTime | string | No | — |
modifiedByMeTime | string | No | — |
modifiedByMe | boolean | No | — |
shared | boolean | No | — |
ownedByMe | boolean | No | — |
permissionIds | string[] | No | — |
hasAugmentedPermissions | boolean | No | — |
folderColorRgb | string | No | — |
originalFilename | string | No | — |
fullFileExtension | string | No | — |
fileExtension | string | No | — |
md5Checksum | string | No | — |
size | string | No | — |
quotaBytesUsed | string | No | — |
headRevisionId | string | No | — |
isAppAuthorized | boolean | No | — |
resourceKey | string | No | — |
sha1Checksum | string | No | — |
sha256Checksum | string | No | — |
properties full type
properties full type
appProperties full type
appProperties full type
upload
files.upload
Upload a file to Google Drive
Risk: write
| Name | Type | Required | Description |
|---|---|---|---|
name | string | Yes | — |
mimeType | string | No | — |
parents | string[] | No | — |
description | string | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
id | string | No | — |
name | string | No | — |
mimeType | string | No | — |
description | string | No | — |
starred | boolean | No | — |
trashed | boolean | No | — |
explicitlyTrashed | boolean | No | — |
parents | string[] | No | — |
properties | object | No | — |
appProperties | object | No | — |
spaces | string[] | No | — |
version | string | No | — |
webViewLink | string | No | — |
webContentLink | string | No | — |
iconLink | string | No | — |
hasThumbnail | boolean | No | — |
thumbnailLink | string | No | — |
thumbnailVersion | string | No | — |
viewedByMe | boolean | No | — |
viewedByMeTime | string | No | — |
createdTime | string | No | — |
modifiedTime | string | No | — |
modifiedByMeTime | string | No | — |
modifiedByMe | boolean | No | — |
shared | boolean | No | — |
ownedByMe | boolean | No | — |
permissionIds | string[] | No | — |
hasAugmentedPermissions | boolean | No | — |
folderColorRgb | string | No | — |
originalFilename | string | No | — |
fullFileExtension | string | No | — |
fileExtension | string | No | — |
md5Checksum | string | No | — |
size | string | No | — |
quotaBytesUsed | string | No | — |
headRevisionId | string | No | — |
isAppAuthorized | boolean | No | — |
resourceKey | string | No | — |
sha1Checksum | string | No | — |
sha256Checksum | string | No | — |
properties full type
properties full type
appProperties full type
appProperties full type
Folders
create
folders.create
Create a new folder
Risk: write
| Name | Type | Required | Description |
|---|---|---|---|
name | string | Yes | — |
parents | string[] | No | — |
description | string | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
id | string | No | — |
name | string | No | — |
mimeType | string | No | — |
description | string | No | — |
starred | boolean | No | — |
trashed | boolean | No | — |
explicitlyTrashed | boolean | No | — |
parents | string[] | No | — |
properties | object | No | — |
appProperties | object | No | — |
spaces | string[] | No | — |
version | string | No | — |
webViewLink | string | No | — |
webContentLink | string | No | — |
iconLink | string | No | — |
hasThumbnail | boolean | No | — |
thumbnailLink | string | No | — |
thumbnailVersion | string | No | — |
viewedByMe | boolean | No | — |
viewedByMeTime | string | No | — |
createdTime | string | No | — |
modifiedTime | string | No | — |
modifiedByMeTime | string | No | — |
modifiedByMe | boolean | No | — |
shared | boolean | No | — |
ownedByMe | boolean | No | — |
permissionIds | string[] | No | — |
hasAugmentedPermissions | boolean | No | — |
folderColorRgb | string | No | — |
originalFilename | string | No | — |
fullFileExtension | string | No | — |
fileExtension | string | No | — |
md5Checksum | string | No | — |
size | string | No | — |
quotaBytesUsed | string | No | — |
headRevisionId | string | No | — |
isAppAuthorized | boolean | No | — |
resourceKey | string | No | — |
sha1Checksum | string | No | — |
sha256Checksum | string | No | — |
properties full type
properties full type
appProperties full type
appProperties full type
delete
folders.delete
Permanently delete a folder and its contents [DESTRUCTIVE · IRREVERSIBLE]
Risk: destructive · Irreversible
| Name | Type | Required | Description |
|---|---|---|---|
folderId | string | Yes | — |
supportsAllDrives | boolean | No | — |
supportsTeamDrives | boolean | No | — |
void
get
folders.get
Get metadata for a specific folder
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
folderId | string | Yes | — |
supportsAllDrives | boolean | No | — |
supportsTeamDrives | boolean | No | — |
includePermissionsForView | string | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
id | string | No | — |
name | string | No | — |
mimeType | string | No | — |
description | string | No | — |
starred | boolean | No | — |
trashed | boolean | No | — |
explicitlyTrashed | boolean | No | — |
parents | string[] | No | — |
properties | object | No | — |
appProperties | object | No | — |
spaces | string[] | No | — |
version | string | No | — |
webViewLink | string | No | — |
webContentLink | string | No | — |
iconLink | string | No | — |
hasThumbnail | boolean | No | — |
thumbnailLink | string | No | — |
thumbnailVersion | string | No | — |
viewedByMe | boolean | No | — |
viewedByMeTime | string | No | — |
createdTime | string | No | — |
modifiedTime | string | No | — |
modifiedByMeTime | string | No | — |
modifiedByMe | boolean | No | — |
shared | boolean | No | — |
ownedByMe | boolean | No | — |
permissionIds | string[] | No | — |
hasAugmentedPermissions | boolean | No | — |
folderColorRgb | string | No | — |
originalFilename | string | No | — |
fullFileExtension | string | No | — |
fileExtension | string | No | — |
md5Checksum | string | No | — |
size | string | No | — |
quotaBytesUsed | string | No | — |
headRevisionId | string | No | — |
isAppAuthorized | boolean | No | — |
resourceKey | string | No | — |
sha1Checksum | string | No | — |
sha256Checksum | string | No | — |
properties full type
properties full type
appProperties full type
appProperties full type
list
folders.list
List folders in Google Drive
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
q | string | No | — |
pageSize | number | No | — |
pageToken | string | No | — |
spaces | string | No | — |
corpora | string | No | — |
driveId | string | No | — |
includeItemsFromAllDrives | boolean | No | — |
includePermissionsForView | string | No | — |
orderBy | string | No | — |
supportsAllDrives | boolean | No | — |
supportsTeamDrives | boolean | No | — |
teamDriveId | string | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
kind | string | No | — |
nextPageToken | string | No | — |
incompleteSearch | boolean | No | — |
files | object[] | No | — |
files full type
files full type
share
folders.share
Share a folder by granting permissions to users
Risk: write
| Name | Type | Required | Description |
|---|---|---|---|
folderId | string | Yes | — |
type | user | group | domain | anyone | No | — |
role | owner | organizer | fileOrganizer | writer | commenter | reader | No | — |
emailAddress | string | No | — |
domain | string | No | — |
allowFileDiscovery | boolean | No | — |
expirationTime | string | No | — |
sendNotificationEmail | boolean | No | — |
emailMessage | string | No | — |
supportsAllDrives | boolean | No | — |
supportsTeamDrives | boolean | No | — |
moveToNewOwnersRoot | boolean | No | — |
transferOwnership | boolean | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
id | string | No | — |
type | user | group | domain | anyone | No | — |
emailAddress | string | No | — |
domain | string | No | — |
role | owner | organizer | fileOrganizer | writer | commenter | reader | No | — |
allowFileDiscovery | boolean | No | — |
displayName | string | No | — |
photoLink | string | No | — |
expirationTime | string | No | — |
deleted | boolean | No | — |
view | user | domain | No | — |
pendingOwner | boolean | No | — |
Search
filesAndFolders
search.filesAndFolders
Search for files and folders in Google Drive
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
q | string | Yes | — |
pageSize | number | No | — |
pageToken | string | No | — |
spaces | string | No | — |
corpora | string | No | — |
driveId | string | No | — |
includeItemsFromAllDrives | boolean | No | — |
includePermissionsForView | string | No | — |
orderBy | string | No | — |
supportsAllDrives | boolean | No | — |
supportsTeamDrives | boolean | No | — |
teamDriveId | string | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
kind | string | No | — |
nextPageToken | string | No | — |
incompleteSearch | boolean | No | — |
files | object[] | No | — |
files full type
files full type
Shared Drives
create
sharedDrives.create
Create a new shared drive
Risk: write
| Name | Type | Required | Description |
|---|---|---|---|
name | string | Yes | — |
requestId | string | No | — |
themeId | string | No | — |
colorRgb | string | No | — |
restrictions | object | No | — |
restrictions full type
restrictions full type
| Name | Type | Required | Description |
|---|---|---|---|
kind | string | No | — |
id | string | No | — |
name | string | No | — |
themeId | string | No | — |
colorRgb | string | No | — |
createdTime | string | No | — |
hidden | boolean | No | — |
delete
sharedDrives.delete
Permanently delete a shared drive [DESTRUCTIVE · IRREVERSIBLE]
Risk: destructive · Irreversible
| Name | Type | Required | Description |
|---|---|---|---|
driveId | string | Yes | — |
void
get
sharedDrives.get
Get info about a shared drive
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
driveId | string | Yes | — |
useDomainAdminAccess | boolean | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
kind | string | No | — |
id | string | No | — |
name | string | No | — |
themeId | string | No | — |
colorRgb | string | No | — |
createdTime | string | No | — |
hidden | boolean | No | — |
list
sharedDrives.list
List shared drives
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
pageSize | number | No | — |
pageToken | string | No | — |
q | string | No | — |
useDomainAdminAccess | boolean | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
kind | string | No | — |
nextPageToken | string | No | — |
drives | object[] | No | — |
drives full type
drives full type
update
sharedDrives.update
Update a shared drive
Risk: write
| Name | Type | Required | Description |
|---|---|---|---|
driveId | string | Yes | — |
name | string | No | — |
themeId | string | No | — |
colorRgb | string | No | — |
restrictions | object | No | — |
useDomainAdminAccess | boolean | No | — |
restrictions full type
restrictions full type
| Name | Type | Required | Description |
|---|---|---|---|
kind | string | No | — |
id | string | No | — |
name | string | No | — |
themeId | string | No | — |
colorRgb | string | No | — |
createdTime | string | No | — |
hidden | boolean | No | — |