docs/ai-agents/connectors/google-drive/REFERENCE.md
This is the full reference documentation for the Google-Drive agent connector.
The Google-Drive connector supports the following entities and actions.
| Entity | Actions |
|---|---|
| Files | List, Get, Create, Update, Delete, Download |
| Files Upload | Create |
| Files Export | Download |
| Drives | List, Get |
| Permissions | List, Get |
| Comments | List, Get |
| Replies | List, Get |
| Revisions | List, Get |
| Changes | List |
| Changes Start Page Token | Get |
| About | Get |
Lists the user's files. Returns a paginated list of files.
await google_drive.files.list()
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "files",
"action": "list"
}'
| Parameter Name | Type | Required | Description |
|---|---|---|---|
pageSize | integer | No | Maximum number of files to return per page (1-1000) |
pageToken | string | No | Token for continuing a previous list request |
q | string | No | Query string for searching files |
orderBy | string | No | Sort order (e.g., 'modifiedTime desc', 'name') |
fields | string | No | Fields to include in the response |
spaces | string | No | Comma-separated list of spaces to query (drive, appDataFolder) |
corpora | string | No | Bodies of items to search (user, drive, allDrives) |
driveId | string | No | ID of the shared drive to search |
includeItemsFromAllDrives | boolean | No | Whether to include items from all drives |
supportsAllDrives | boolean | No | Whether the requesting application supports both My Drives and shared drives |
| Field Name | Type | Description |
|---|---|---|
kind | string | null | |
id | string | |
name | string | null | |
mimeType | string | null | |
description | string | null | |
starred | boolean | null | |
trashed | boolean | null | |
explicitlyTrashed | boolean | null | |
parents | array | null | |
properties | object | null | |
appProperties | object | null | |
spaces | array | null | |
version | string | null | |
webContentLink | string | null | |
webViewLink | string | null | |
iconLink | string | null | |
hasThumbnail | boolean | null | |
thumbnailLink | string | null | |
thumbnailVersion | string | null | |
viewedByMe | boolean | null | |
viewedByMeTime | string | null | |
createdTime | string | null | |
modifiedTime | string | null | |
modifiedByMeTime | string | null | |
modifiedByMe | boolean | null | |
sharedWithMeTime | string | null | |
sharingUser | object | any | |
owners | array | null | |
owners[].kind | string | null | |
owners[].displayName | string | null | |
owners[].photoLink | string | null | |
owners[].me | boolean | null | |
owners[].permissionId | string | null | |
owners[].emailAddress | string | null | |
driveId | string | null | |
lastModifyingUser | object | any | |
shared | boolean | null | |
ownedByMe | boolean | null | |
capabilities | object | null | |
viewersCanCopyContent | boolean | null | |
copyRequiresWriterPermission | boolean | null | |
writersCanShare | boolean | null | |
permissionIds | array | null | |
folderColorRgb | string | null | |
originalFilename | string | null | |
fullFileExtension | string | null | |
fileExtension | string | null | |
md5Checksum | string | null | |
sha1Checksum | string | null | |
sha256Checksum | string | null | |
size | string | null | |
quotaBytesUsed | string | null | |
headRevisionId | string | null | |
isAppAuthorized | boolean | null | |
exportLinks | object | null | |
shortcutDetails | object | null | |
contentRestrictions | array | null | |
resourceKey | string | null | |
linkShareMetadata | object | null | |
labelInfo | object | null | |
trashedTime | string | null | |
trashingUser | object | any | |
imageMediaMetadata | object | null | |
videoMediaMetadata | object | null |
| Field Name | Type | Description |
|---|---|---|
nextPageToken | string | null | |
incompleteSearch | boolean | null |
Gets a file's metadata by ID
await google_drive.files.get(
file_id="<str>"
)
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "files",
"action": "get",
"params": {
"fileId": "<str>"
}
}'
| Parameter Name | Type | Required | Description |
|---|---|---|---|
fileId | string | Yes | The ID of the file |
fields | string | No | Fields to include in the response |
supportsAllDrives | boolean | No | Whether the requesting application supports both My Drives and shared drives |
| Field Name | Type | Description |
|---|---|---|
kind | string | null | |
id | string | |
name | string | null | |
mimeType | string | null | |
description | string | null | |
starred | boolean | null | |
trashed | boolean | null | |
explicitlyTrashed | boolean | null | |
parents | array | null | |
properties | object | null | |
appProperties | object | null | |
spaces | array | null | |
version | string | null | |
webContentLink | string | null | |
webViewLink | string | null | |
iconLink | string | null | |
hasThumbnail | boolean | null | |
thumbnailLink | string | null | |
thumbnailVersion | string | null | |
viewedByMe | boolean | null | |
viewedByMeTime | string | null | |
createdTime | string | null | |
modifiedTime | string | null | |
modifiedByMeTime | string | null | |
modifiedByMe | boolean | null | |
sharedWithMeTime | string | null | |
sharingUser | object | any | |
owners | array | null | |
owners[].kind | string | null | |
owners[].displayName | string | null | |
owners[].photoLink | string | null | |
owners[].me | boolean | null | |
owners[].permissionId | string | null | |
owners[].emailAddress | string | null | |
driveId | string | null | |
lastModifyingUser | object | any | |
shared | boolean | null | |
ownedByMe | boolean | null | |
capabilities | object | null | |
viewersCanCopyContent | boolean | null | |
copyRequiresWriterPermission | boolean | null | |
writersCanShare | boolean | null | |
permissionIds | array | null | |
folderColorRgb | string | null | |
originalFilename | string | null | |
fullFileExtension | string | null | |
fileExtension | string | null | |
md5Checksum | string | null | |
sha1Checksum | string | null | |
sha256Checksum | string | null | |
size | string | null | |
quotaBytesUsed | string | null | |
headRevisionId | string | null | |
isAppAuthorized | boolean | null | |
exportLinks | object | null | |
shortcutDetails | object | null | |
contentRestrictions | array | null | |
resourceKey | string | null | |
linkShareMetadata | object | null | |
labelInfo | object | null | |
trashedTime | string | null | |
trashingUser | object | any | |
imageMediaMetadata | object | null | |
videoMediaMetadata | object | null |
Creates a new file or folder in Google Drive (metadata only, no content). To create a folder, set mimeType to 'application/vnd.google-apps.folder'. To create a Google Doc, use 'application/vnd.google-apps.document'. To create a Google Sheet, use 'application/vnd.google-apps.spreadsheet'.
await google_drive.files.create(
name="<str>",
mime_type="<str>",
parents=[],
description="<str>"
)
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "files",
"action": "create",
"params": {
"name": "<str>",
"mimeType": "<str>",
"parents": [],
"description": "<str>"
}
}'
| Parameter Name | Type | Required | Description |
|---|---|---|---|
name | string | Yes | The name of the file or folder |
mimeType | string | No | The MIME type of the file. Use 'application/vnd.google-apps.folder' for folders, |
| 'application/vnd.google-apps.document' for Google Docs, | |||
| 'application/vnd.google-apps.spreadsheet' for Google Sheets. | |||
parents | array<string> | No | The IDs of the parent folders. If not specified, the file is placed in My Drive root. |
description | string | No | A short description of the file |
| Field Name | Type | Description |
|---|---|---|
kind | string | null | |
id | string | |
name | string | null | |
mimeType | string | null | |
description | string | null | |
starred | boolean | null | |
trashed | boolean | null | |
explicitlyTrashed | boolean | null | |
parents | array | null | |
properties | object | null | |
appProperties | object | null | |
spaces | array | null | |
version | string | null | |
webContentLink | string | null | |
webViewLink | string | null | |
iconLink | string | null | |
hasThumbnail | boolean | null | |
thumbnailLink | string | null | |
thumbnailVersion | string | null | |
viewedByMe | boolean | null | |
viewedByMeTime | string | null | |
createdTime | string | null | |
modifiedTime | string | null | |
modifiedByMeTime | string | null | |
modifiedByMe | boolean | null | |
sharedWithMeTime | string | null | |
sharingUser | object | any | |
owners | array | null | |
owners[].kind | string | null | |
owners[].displayName | string | null | |
owners[].photoLink | string | null | |
owners[].me | boolean | null | |
owners[].permissionId | string | null | |
owners[].emailAddress | string | null | |
driveId | string | null | |
lastModifyingUser | object | any | |
shared | boolean | null | |
ownedByMe | boolean | null | |
capabilities | object | null | |
viewersCanCopyContent | boolean | null | |
copyRequiresWriterPermission | boolean | null | |
writersCanShare | boolean | null | |
permissionIds | array | null | |
folderColorRgb | string | null | |
originalFilename | string | null | |
fullFileExtension | string | null | |
fileExtension | string | null | |
md5Checksum | string | null | |
sha1Checksum | string | null | |
sha256Checksum | string | null | |
size | string | null | |
quotaBytesUsed | string | null | |
headRevisionId | string | null | |
isAppAuthorized | boolean | null | |
exportLinks | object | null | |
shortcutDetails | object | null | |
contentRestrictions | array | null | |
resourceKey | string | null | |
linkShareMetadata | object | null | |
labelInfo | object | null | |
trashedTime | string | null | |
trashingUser | object | any | |
imageMediaMetadata | object | null | |
videoMediaMetadata | object | null |
Updates a file's metadata. Use addParents/removeParents query parameters to move a file between folders.
await google_drive.files.update(
name="<str>",
description="<str>",
mime_type="<str>",
file_id="<str>",
add_parents="<str>",
remove_parents="<str>",
supports_all_drives=True
)
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "files",
"action": "update",
"params": {
"name": "<str>",
"description": "<str>",
"mimeType": "<str>",
"fileId": "<str>",
"addParents": "<str>",
"removeParents": "<str>",
"supportsAllDrives": True
}
}'
| Parameter Name | Type | Required | Description |
|---|---|---|---|
name | string | No | The new name of the file |
description | string | No | A new description for the file |
mimeType | string | No | The new MIME type of the file |
fileId | string | Yes | The ID of the file to update |
addParents | string | No | Comma-separated list of parent IDs to add |
removeParents | string | No | Comma-separated list of parent IDs to remove |
supportsAllDrives | boolean | No | Whether the requesting application supports both My Drives and shared drives |
| Field Name | Type | Description |
|---|---|---|
kind | string | null | |
id | string | |
name | string | null | |
mimeType | string | null | |
description | string | null | |
starred | boolean | null | |
trashed | boolean | null | |
explicitlyTrashed | boolean | null | |
parents | array | null | |
properties | object | null | |
appProperties | object | null | |
spaces | array | null | |
version | string | null | |
webContentLink | string | null | |
webViewLink | string | null | |
iconLink | string | null | |
hasThumbnail | boolean | null | |
thumbnailLink | string | null | |
thumbnailVersion | string | null | |
viewedByMe | boolean | null | |
viewedByMeTime | string | null | |
createdTime | string | null | |
modifiedTime | string | null | |
modifiedByMeTime | string | null | |
modifiedByMe | boolean | null | |
sharedWithMeTime | string | null | |
sharingUser | object | any | |
owners | array | null | |
owners[].kind | string | null | |
owners[].displayName | string | null | |
owners[].photoLink | string | null | |
owners[].me | boolean | null | |
owners[].permissionId | string | null | |
owners[].emailAddress | string | null | |
driveId | string | null | |
lastModifyingUser | object | any | |
shared | boolean | null | |
ownedByMe | boolean | null | |
capabilities | object | null | |
viewersCanCopyContent | boolean | null | |
copyRequiresWriterPermission | boolean | null | |
writersCanShare | boolean | null | |
permissionIds | array | null | |
folderColorRgb | string | null | |
originalFilename | string | null | |
fullFileExtension | string | null | |
fileExtension | string | null | |
md5Checksum | string | null | |
sha1Checksum | string | null | |
sha256Checksum | string | null | |
size | string | null | |
quotaBytesUsed | string | null | |
headRevisionId | string | null | |
isAppAuthorized | boolean | null | |
exportLinks | object | null | |
shortcutDetails | object | null | |
contentRestrictions | array | null | |
resourceKey | string | null | |
linkShareMetadata | object | null | |
labelInfo | object | null | |
trashedTime | string | null | |
trashingUser | object | any | |
imageMediaMetadata | object | null | |
videoMediaMetadata | object | null |
Permanently deletes a file owned by the user without moving it to the trash.
await google_drive.files.delete(
file_id="<str>"
)
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "files",
"action": "delete",
"params": {
"fileId": "<str>"
}
}'
| Parameter Name | Type | Required | Description |
|---|---|---|---|
fileId | string | Yes | The ID of the file to delete |
supportsAllDrives | boolean | No | Whether the requesting application supports both My Drives and shared drives |
Downloads the binary content of a file. This works for non-Google Workspace files (PDFs, images, zip files, etc.). For Google Docs, Sheets, Slides, or Drawings, use the export action instead.
async for chunk in google_drive.files.download( file_id="<str>", alt="<str>"):# Process each chunk (e.g., write to file)
file.write(chunk)
Note: Download operations return an async iterator of bytes chunks for memory-efficient streaming. Use
async forto process chunks as they arrive.
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "files",
"action": "download",
"params": {
"fileId": "<str>",
"alt": "<str>"
}
}'
| Parameter Name | Type | Required | Description |
|---|---|---|---|
fileId | string | Yes | The ID of the file to download |
alt | "media" | Yes | Must be set to 'media' to download file content |
acknowledgeAbuse | boolean | No | Whether the user is acknowledging the risk of downloading known malware or other abusive files |
supportsAllDrives | boolean | No | Whether the requesting application supports both My Drives and shared drives |
range_header | string | No | Optional Range header for partial downloads (e.g., 'bytes=0-99') |
Uploads a new file to Google Drive with both metadata and file content. The file content must be base64-encoded in the file_content parameter. Suitable for files up to 5MB. For larger files, use the Drive UI.
await google_drive.files_upload.create(
name="<str>",
file_content="<str>",
mime_type="<str>",
parents=[],
description="<str>",
file_mime_type="<str>",
upload_type="<str>",
supports_all_drives=True
)
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "files_upload",
"action": "create",
"params": {
"name": "<str>",
"file_content": "<str>",
"mimeType": "<str>",
"parents": [],
"description": "<str>",
"file_mime_type": "<str>",
"uploadType": "<str>",
"supportsAllDrives": True
}
}'
| Parameter Name | Type | Required | Description |
|---|---|---|---|
name | string | Yes | The name of the file |
file_content | string | Yes | Base64-encoded file content to upload |
mimeType | string | No | The MIME type for the file metadata in Google Drive |
parents | array<string> | No | The IDs of the parent folders |
description | string | No | A short description of the file |
file_mime_type | string | No | The MIME type of the actual file content (e.g., 'application/pdf', 'image/png'). Defaults to 'application/octet-stream'. |
uploadType | "multipart" | No | The type of upload request (must be 'multipart') |
supportsAllDrives | boolean | No | Whether the requesting application supports both My Drives and shared drives |
| Field Name | Type | Description |
|---|---|---|
kind | string | null | |
id | string | |
name | string | null | |
mimeType | string | null | |
description | string | null | |
starred | boolean | null | |
trashed | boolean | null | |
explicitlyTrashed | boolean | null | |
parents | array | null | |
properties | object | null | |
appProperties | object | null | |
spaces | array | null | |
version | string | null | |
webContentLink | string | null | |
webViewLink | string | null | |
iconLink | string | null | |
hasThumbnail | boolean | null | |
thumbnailLink | string | null | |
thumbnailVersion | string | null | |
viewedByMe | boolean | null | |
viewedByMeTime | string | null | |
createdTime | string | null | |
modifiedTime | string | null | |
modifiedByMeTime | string | null | |
modifiedByMe | boolean | null | |
sharedWithMeTime | string | null | |
sharingUser | object | any | |
owners | array | null | |
owners[].kind | string | null | |
owners[].displayName | string | null | |
owners[].photoLink | string | null | |
owners[].me | boolean | null | |
owners[].permissionId | string | null | |
owners[].emailAddress | string | null | |
driveId | string | null | |
lastModifyingUser | object | any | |
shared | boolean | null | |
ownedByMe | boolean | null | |
capabilities | object | null | |
viewersCanCopyContent | boolean | null | |
copyRequiresWriterPermission | boolean | null | |
writersCanShare | boolean | null | |
permissionIds | array | null | |
folderColorRgb | string | null | |
originalFilename | string | null | |
fullFileExtension | string | null | |
fileExtension | string | null | |
md5Checksum | string | null | |
sha1Checksum | string | null | |
sha256Checksum | string | null | |
size | string | null | |
quotaBytesUsed | string | null | |
headRevisionId | string | null | |
isAppAuthorized | boolean | null | |
exportLinks | object | null | |
shortcutDetails | object | null | |
contentRestrictions | array | null | |
resourceKey | string | null | |
linkShareMetadata | object | null | |
labelInfo | object | null | |
trashedTime | string | null | |
trashingUser | object | any | |
imageMediaMetadata | object | null | |
videoMediaMetadata | object | null |
Exports a Google Workspace file (Docs, Sheets, Slides, Drawings) to a specified format. Common export formats:
async for chunk in google_drive.files_export.download( file_id="<str>", mime_type="<str>"):# Process each chunk (e.g., write to file)
file.write(chunk)
Note: Download operations return an async iterator of bytes chunks for memory-efficient streaming. Use
async forto process chunks as they arrive.
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "files_export",
"action": "download",
"params": {
"fileId": "<str>",
"mimeType": "<str>"
}
}'
| Parameter Name | Type | Required | Description |
|---|---|---|---|
fileId | string | Yes | The ID of the Google Workspace file to export |
mimeType | string | Yes | The MIME type of the format to export to. Common values: |
range_header | string | No | Optional Range header for partial downloads (e.g., 'bytes=0-99') |Lists the user's shared drives
await google_drive.drives.list()
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "drives",
"action": "list"
}'
| Parameter Name | Type | Required | Description |
|---|---|---|---|
pageSize | integer | No | Maximum number of shared drives to return (1-100) |
pageToken | string | No | Token for continuing a previous list request |
q | string | No | Query string for searching shared drives |
useDomainAdminAccess | boolean | No | Issue the request as a domain administrator |
| Field Name | Type | Description |
|---|---|---|
kind | string | null | |
id | string | |
name | string | null | |
colorRgb | string | null | |
backgroundImageLink | string | null | |
backgroundImageFile | object | null | |
capabilities | object | null | |
themeId | string | null | |
createdTime | string | null | |
hidden | boolean | null | |
restrictions | object | null | |
orgUnitId | string | null |
| Field Name | Type | Description |
|---|---|---|
nextPageToken | string | null |
Gets a shared drive's metadata by ID
await google_drive.drives.get(
drive_id="<str>"
)
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "drives",
"action": "get",
"params": {
"driveId": "<str>"
}
}'
| Parameter Name | Type | Required | Description |
|---|---|---|---|
driveId | string | Yes | The ID of the shared drive |
useDomainAdminAccess | boolean | No | Issue the request as a domain administrator |
| Field Name | Type | Description |
|---|---|---|
kind | string | null | |
id | string | |
name | string | null | |
colorRgb | string | null | |
backgroundImageLink | string | null | |
backgroundImageFile | object | null | |
capabilities | object | null | |
themeId | string | null | |
createdTime | string | null | |
hidden | boolean | null | |
restrictions | object | null | |
orgUnitId | string | null |
Lists a file's or shared drive's permissions
await google_drive.permissions.list(
file_id="<str>"
)
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "permissions",
"action": "list",
"params": {
"fileId": "<str>"
}
}'
| Parameter Name | Type | Required | Description |
|---|---|---|---|
fileId | string | Yes | The ID of the file or shared drive |
pageSize | integer | No | Maximum number of permissions to return (1-100) |
pageToken | string | No | Token for continuing a previous list request |
supportsAllDrives | boolean | No | Whether the requesting application supports both My Drives and shared drives |
useDomainAdminAccess | boolean | No | Issue the request as a domain administrator |
| Field Name | Type | Description |
|---|---|---|
kind | string | null | |
id | string | |
type | string | null | |
emailAddress | string | null | |
domain | string | null | |
role | string | null | |
view | string | null | |
allowFileDiscovery | boolean | null | |
displayName | string | null | |
photoLink | string | null | |
expirationTime | string | null | |
teamDrivePermissionDetails | array | null | |
permissionDetails | array | null | |
deleted | boolean | null | |
pendingOwner | boolean | null |
| Field Name | Type | Description |
|---|---|---|
nextPageToken | string | null |
Gets a permission by ID
await google_drive.permissions.get(
file_id="<str>",
permission_id="<str>"
)
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "permissions",
"action": "get",
"params": {
"fileId": "<str>",
"permissionId": "<str>"
}
}'
| Parameter Name | Type | Required | Description |
|---|---|---|---|
fileId | string | Yes | The ID of the file |
permissionId | string | Yes | The ID of the permission |
supportsAllDrives | boolean | No | Whether the requesting application supports both My Drives and shared drives |
useDomainAdminAccess | boolean | No | Issue the request as a domain administrator |
| Field Name | Type | Description |
|---|---|---|
kind | string | null | |
id | string | |
type | string | null | |
emailAddress | string | null | |
domain | string | null | |
role | string | null | |
view | string | null | |
allowFileDiscovery | boolean | null | |
displayName | string | null | |
photoLink | string | null | |
expirationTime | string | null | |
teamDrivePermissionDetails | array | null | |
permissionDetails | array | null | |
deleted | boolean | null | |
pendingOwner | boolean | null |
Lists a file's comments
await google_drive.comments.list(
file_id="<str>"
)
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "comments",
"action": "list",
"params": {
"fileId": "<str>"
}
}'
| Parameter Name | Type | Required | Description |
|---|---|---|---|
fileId | string | Yes | The ID of the file |
pageSize | integer | No | Maximum number of comments to return (1-100) |
pageToken | string | No | Token for continuing a previous list request |
startModifiedTime | string | No | Minimum value of modifiedTime to filter by (RFC 3339) |
includeDeleted | boolean | No | Whether to include deleted comments |
fields | string | No | Fields to include in the response (required for comments) |
| Field Name | Type | Description |
|---|---|---|
kind | string | null | |
id | string | |
createdTime | string | null | |
modifiedTime | string | null | |
author | object | any | |
htmlContent | string | null | |
content | string | null | |
deleted | boolean | null | |
resolved | boolean | null | |
quotedFileContent | object | null | |
anchor | string | null | |
replies | array | null | |
replies[].kind | string | null | |
replies[].id | string | |
replies[].createdTime | string | null | |
replies[].modifiedTime | string | null | |
replies[].author | object | any | |
replies[].htmlContent | string | null | |
replies[].content | string | null | |
replies[].deleted | boolean | null | |
replies[].action | string | null | |
mentionedEmailAddresses | array | null | |
assigneeEmailAddress | string | null |
| Field Name | Type | Description |
|---|---|---|
nextPageToken | string | null |
Gets a comment by ID
await google_drive.comments.get(
file_id="<str>",
comment_id="<str>"
)
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "comments",
"action": "get",
"params": {
"fileId": "<str>",
"commentId": "<str>"
}
}'
| Parameter Name | Type | Required | Description |
|---|---|---|---|
fileId | string | Yes | The ID of the file |
commentId | string | Yes | The ID of the comment |
includeDeleted | boolean | No | Whether to return deleted comments |
fields | string | No | Fields to include in the response (required for comments) |
| Field Name | Type | Description |
|---|---|---|
kind | string | null | |
id | string | |
createdTime | string | null | |
modifiedTime | string | null | |
author | object | any | |
htmlContent | string | null | |
content | string | null | |
deleted | boolean | null | |
resolved | boolean | null | |
quotedFileContent | object | null | |
anchor | string | null | |
replies | array | null | |
replies[].kind | string | null | |
replies[].id | string | |
replies[].createdTime | string | null | |
replies[].modifiedTime | string | null | |
replies[].author | object | any | |
replies[].htmlContent | string | null | |
replies[].content | string | null | |
replies[].deleted | boolean | null | |
replies[].action | string | null | |
mentionedEmailAddresses | array | null | |
assigneeEmailAddress | string | null |
Lists a comment's replies
await google_drive.replies.list(
file_id="<str>",
comment_id="<str>"
)
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "replies",
"action": "list",
"params": {
"fileId": "<str>",
"commentId": "<str>"
}
}'
| Parameter Name | Type | Required | Description |
|---|---|---|---|
fileId | string | Yes | The ID of the file |
commentId | string | Yes | The ID of the comment |
pageSize | integer | No | Maximum number of replies to return (1-100) |
pageToken | string | No | Token for continuing a previous list request |
includeDeleted | boolean | No | Whether to include deleted replies |
fields | string | No | Fields to include in the response (required for replies) |
| Field Name | Type | Description |
|---|---|---|
kind | string | null | |
id | string | |
createdTime | string | null | |
modifiedTime | string | null | |
author | object | any | |
htmlContent | string | null | |
content | string | null | |
deleted | boolean | null | |
action | string | null |
| Field Name | Type | Description |
|---|---|---|
nextPageToken | string | null |
Gets a reply by ID
await google_drive.replies.get(
file_id="<str>",
comment_id="<str>",
reply_id="<str>"
)
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "replies",
"action": "get",
"params": {
"fileId": "<str>",
"commentId": "<str>",
"replyId": "<str>"
}
}'
| Parameter Name | Type | Required | Description |
|---|---|---|---|
fileId | string | Yes | The ID of the file |
commentId | string | Yes | The ID of the comment |
replyId | string | Yes | The ID of the reply |
includeDeleted | boolean | No | Whether to return deleted replies |
fields | string | No | Fields to include in the response (required for replies) |
| Field Name | Type | Description |
|---|---|---|
kind | string | null | |
id | string | |
createdTime | string | null | |
modifiedTime | string | null | |
author | object | any | |
htmlContent | string | null | |
content | string | null | |
deleted | boolean | null | |
action | string | null |
Lists a file's revisions
await google_drive.revisions.list(
file_id="<str>"
)
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "revisions",
"action": "list",
"params": {
"fileId": "<str>"
}
}'
| Parameter Name | Type | Required | Description |
|---|---|---|---|
fileId | string | Yes | The ID of the file |
pageSize | integer | No | Maximum number of revisions to return (1-1000) |
pageToken | string | No | Token for continuing a previous list request |
| Field Name | Type | Description |
|---|---|---|
kind | string | null | |
id | string | |
mimeType | string | null | |
modifiedTime | string | null | |
keepForever | boolean | null | |
published | boolean | null | |
publishedLink | string | null | |
publishAuto | boolean | null | |
publishedOutsideDomain | boolean | null | |
lastModifyingUser | object | any | |
originalFilename | string | null | |
md5Checksum | string | null | |
size | string | null | |
exportLinks | object | null |
| Field Name | Type | Description |
|---|---|---|
nextPageToken | string | null |
Gets a revision's metadata by ID
await google_drive.revisions.get(
file_id="<str>",
revision_id="<str>"
)
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "revisions",
"action": "get",
"params": {
"fileId": "<str>",
"revisionId": "<str>"
}
}'
| Parameter Name | Type | Required | Description |
|---|---|---|---|
fileId | string | Yes | The ID of the file |
revisionId | string | Yes | The ID of the revision |
| Field Name | Type | Description |
|---|---|---|
kind | string | null | |
id | string | |
mimeType | string | null | |
modifiedTime | string | null | |
keepForever | boolean | null | |
published | boolean | null | |
publishedLink | string | null | |
publishAuto | boolean | null | |
publishedOutsideDomain | boolean | null | |
lastModifyingUser | object | any | |
originalFilename | string | null | |
md5Checksum | string | null | |
size | string | null | |
exportLinks | object | null |
Lists the changes for a user or shared drive
await google_drive.changes.list(
page_token="<str>"
)
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "changes",
"action": "list",
"params": {
"pageToken": "<str>"
}
}'
| Parameter Name | Type | Required | Description |
|---|---|---|---|
pageToken | string | Yes | Token for the page of changes to retrieve (from changes.getStartPageToken or previous response) |
pageSize | integer | No | Maximum number of changes to return (1-1000) |
driveId | string | No | The shared drive from which changes are returned |
includeItemsFromAllDrives | boolean | No | Whether to include changes from all drives |
supportsAllDrives | boolean | No | Whether the requesting application supports both My Drives and shared drives |
spaces | string | No | Comma-separated list of spaces to query |
includeRemoved | boolean | No | Whether to include changes indicating that items have been removed |
restrictToMyDrive | boolean | No | Whether to restrict the results to changes inside the My Drive hierarchy |
| Field Name | Type | Description |
|---|---|---|
kind | string | null | |
removed | boolean | null | |
file | object | any | |
fileId | string | null | |
driveId | string | null | |
drive | object | any | |
time | string | null | |
type | string | null | |
changeType | string | null |
| Field Name | Type | Description |
|---|---|---|
nextPageToken | string | null | |
newStartPageToken | string | null |
Gets the starting pageToken for listing future changes
await google_drive.changes_start_page_token.get()
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "changes_start_page_token",
"action": "get"
}'
| Parameter Name | Type | Required | Description |
|---|---|---|---|
driveId | string | No | The ID of the shared drive for which the starting pageToken is returned |
supportsAllDrives | boolean | No | Whether the requesting application supports both My Drives and shared drives |
| Field Name | Type | Description |
|---|---|---|
kind | string | null | |
startPageToken | string |
Gets information about the user, the user's Drive, and system capabilities
await google_drive.about.get()
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "about",
"action": "get"
}'
| Parameter Name | Type | Required | Description |
|---|---|---|---|
fields | string | No | Fields to include in the response (use * for all fields) |
| Field Name | Type | Description |
|---|---|---|
kind | string | null | |
user | object | any | |
storageQuota | object | null | |
importFormats | object | null | |
exportFormats | object | null | |
maxImportSizes | object | null | |
maxUploadSize | string | null | |
appInstalled | boolean | null | |
folderColorPalette | array | null | |
driveThemes | array | null | |
canCreateDrives | boolean | null | |
canCreateTeamDrives | boolean | null | |
teamDriveThemes | array | null |