This connector is optimized for AI agents. For the data replication connector, see Google Drive .
This is the full reference documentation for the Google-Drive agent connector.
Supported entities and actions
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
Files
Files List
Lists the user's files. Returns a paginated list of files.
Python SDK
await google_drive . files . list ( )
API
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" }'
Parameters
Parameter Name Type Required Description pageSizeintegerNo Maximum number of files to return per page (1-1000) pageTokenstringNo Token for continuing a previous list request qstringNo Query string for searching files orderBystringNo Sort order (e.g., 'modifiedTime desc', 'name') fieldsstringNo Fields to include in the response spacesstringNo Comma-separated list of spaces to query (drive, appDataFolder) corporastringNo Bodies of items to search (user, drive, allDrives) driveIdstringNo ID of the shared drive to search includeItemsFromAllDrivesbooleanNo Whether to include items from all drives supportsAllDrivesbooleanNo Whether the requesting application supports both My Drives and shared drives
Response Schema Records Field Name Type Description kindstring | nullidstringnamestring | nullmimeTypestring | nulldescriptionstring | nullstarredboolean | nulltrashedboolean | nullexplicitlyTrashedboolean | nullparentsarray | nullpropertiesobject | nullappPropertiesobject | nullspacesarray | nullversionstring | nullwebContentLinkstring | nullwebViewLinkstring | nulliconLinkstring | nullhasThumbnailboolean | nullthumbnailLinkstring | nullthumbnailVersionstring | nullviewedByMeboolean | nullviewedByMeTimestring | nullcreatedTimestring | nullmodifiedTimestring | nullmodifiedByMeTimestring | nullmodifiedByMeboolean | nullsharedWithMeTimestring | nullsharingUserobject | anyownersarray | nullowners[].kindstring | nullowners[].displayNamestring | nullowners[].photoLinkstring | nullowners[].meboolean | nullowners[].permissionIdstring | nullowners[].emailAddressstring | nulldriveIdstring | nulllastModifyingUserobject | anysharedboolean | nullownedByMeboolean | nullcapabilitiesobject | nullviewersCanCopyContentboolean | nullcopyRequiresWriterPermissionboolean | nullwritersCanShareboolean | nullpermissionIdsarray | nullfolderColorRgbstring | nulloriginalFilenamestring | nullfullFileExtensionstring | nullfileExtensionstring | nullmd5Checksumstring | nullsha1Checksumstring | nullsha256Checksumstring | nullsizestring | nullquotaBytesUsedstring | nullheadRevisionIdstring | nullisAppAuthorizedboolean | nullexportLinksobject | nullshortcutDetailsobject | nullcontentRestrictionsarray | nullresourceKeystring | nulllinkShareMetadataobject | nulllabelInfoobject | nulltrashedTimestring | nulltrashingUserobject | anyimageMediaMetadataobject | nullvideoMediaMetadataobject | null
Field Name Type Description nextPageTokenstring | nullincompleteSearchboolean | null
Files Get
Gets a file's metadata by ID
Python SDK
await google_drive . files . get ( file_id = "<str>" )
API
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>" } }'
Parameters
Parameter Name Type Required Description fileIdstringYes The ID of the file fieldsstringNo Fields to include in the response supportsAllDrivesbooleanNo Whether the requesting application supports both My Drives and shared drives
Response Schema Records Field Name Type Description kindstring | nullidstringnamestring | nullmimeTypestring | nulldescriptionstring | nullstarredboolean | nulltrashedboolean | nullexplicitlyTrashedboolean | nullparentsarray | nullpropertiesobject | nullappPropertiesobject | nullspacesarray | nullversionstring | nullwebContentLinkstring | nullwebViewLinkstring | nulliconLinkstring | nullhasThumbnailboolean | nullthumbnailLinkstring | nullthumbnailVersionstring | nullviewedByMeboolean | nullviewedByMeTimestring | nullcreatedTimestring | nullmodifiedTimestring | nullmodifiedByMeTimestring | nullmodifiedByMeboolean | nullsharedWithMeTimestring | nullsharingUserobject | anyownersarray | nullowners[].kindstring | nullowners[].displayNamestring | nullowners[].photoLinkstring | nullowners[].meboolean | nullowners[].permissionIdstring | nullowners[].emailAddressstring | nulldriveIdstring | nulllastModifyingUserobject | anysharedboolean | nullownedByMeboolean | nullcapabilitiesobject | nullviewersCanCopyContentboolean | nullcopyRequiresWriterPermissionboolean | nullwritersCanShareboolean | nullpermissionIdsarray | nullfolderColorRgbstring | nulloriginalFilenamestring | nullfullFileExtensionstring | nullfileExtensionstring | nullmd5Checksumstring | nullsha1Checksumstring | nullsha256Checksumstring | nullsizestring | nullquotaBytesUsedstring | nullheadRevisionIdstring | nullisAppAuthorizedboolean | nullexportLinksobject | nullshortcutDetailsobject | nullcontentRestrictionsarray | nullresourceKeystring | nulllinkShareMetadataobject | nulllabelInfoobject | nulltrashedTimestring | nulltrashingUserobject | anyimageMediaMetadataobject | nullvideoMediaMetadataobject | null
Files Create
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'.
Python SDK
await google_drive . files . create ( name = "<str>" , mime_type = "<str>" , parents = [ ] , description = "<str>" )
API
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>" } }'
Parameters
Parameter Name Type Required Description namestringYes The name of the file or folder mimeTypestringNo 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. parentsarray<string>No The IDs of the parent folders. If not specified, the file is placed in My Drive root. descriptionstringNo A short description of the file
Response Schema Records Field Name Type Description kindstring | nullidstringnamestring | nullmimeTypestring | nulldescriptionstring | nullstarredboolean | nulltrashedboolean | nullexplicitlyTrashedboolean | nullparentsarray | nullpropertiesobject | nullappPropertiesobject | nullspacesarray | nullversionstring | nullwebContentLinkstring | nullwebViewLinkstring | nulliconLinkstring | nullhasThumbnailboolean | nullthumbnailLinkstring | nullthumbnailVersionstring | nullviewedByMeboolean | nullviewedByMeTimestring | nullcreatedTimestring | nullmodifiedTimestring | nullmodifiedByMeTimestring | nullmodifiedByMeboolean | nullsharedWithMeTimestring | nullsharingUserobject | anyownersarray | nullowners[].kindstring | nullowners[].displayNamestring | nullowners[].photoLinkstring | nullowners[].meboolean | nullowners[].permissionIdstring | nullowners[].emailAddressstring | nulldriveIdstring | nulllastModifyingUserobject | anysharedboolean | nullownedByMeboolean | nullcapabilitiesobject | nullviewersCanCopyContentboolean | nullcopyRequiresWriterPermissionboolean | nullwritersCanShareboolean | nullpermissionIdsarray | nullfolderColorRgbstring | nulloriginalFilenamestring | nullfullFileExtensionstring | nullfileExtensionstring | nullmd5Checksumstring | nullsha1Checksumstring | nullsha256Checksumstring | nullsizestring | nullquotaBytesUsedstring | nullheadRevisionIdstring | nullisAppAuthorizedboolean | nullexportLinksobject | nullshortcutDetailsobject | nullcontentRestrictionsarray | nullresourceKeystring | nulllinkShareMetadataobject | nulllabelInfoobject | nulltrashedTimestring | nulltrashingUserobject | anyimageMediaMetadataobject | nullvideoMediaMetadataobject | null
Files Update
Updates a file's metadata. Use addParents/removeParents query parameters
to move a file between folders.
Python SDK
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 )
API
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 } }'
Parameters
Parameter Name Type Required Description namestringNo The new name of the file descriptionstringNo A new description for the file mimeTypestringNo The new MIME type of the file fileIdstringYes The ID of the file to update addParentsstringNo Comma-separated list of parent IDs to add removeParentsstringNo Comma-separated list of parent IDs to remove supportsAllDrivesbooleanNo Whether the requesting application supports both My Drives and shared drives
Response Schema Records Field Name Type Description kindstring | nullidstringnamestring | nullmimeTypestring | nulldescriptionstring | nullstarredboolean | nulltrashedboolean | nullexplicitlyTrashedboolean | nullparentsarray | nullpropertiesobject | nullappPropertiesobject | nullspacesarray | nullversionstring | nullwebContentLinkstring | nullwebViewLinkstring | nulliconLinkstring | nullhasThumbnailboolean | nullthumbnailLinkstring | nullthumbnailVersionstring | nullviewedByMeboolean | nullviewedByMeTimestring | nullcreatedTimestring | nullmodifiedTimestring | nullmodifiedByMeTimestring | nullmodifiedByMeboolean | nullsharedWithMeTimestring | nullsharingUserobject | anyownersarray | nullowners[].kindstring | nullowners[].displayNamestring | nullowners[].photoLinkstring | nullowners[].meboolean | nullowners[].permissionIdstring | nullowners[].emailAddressstring | nulldriveIdstring | nulllastModifyingUserobject | anysharedboolean | nullownedByMeboolean | nullcapabilitiesobject | nullviewersCanCopyContentboolean | nullcopyRequiresWriterPermissionboolean | nullwritersCanShareboolean | nullpermissionIdsarray | nullfolderColorRgbstring | nulloriginalFilenamestring | nullfullFileExtensionstring | nullfileExtensionstring | nullmd5Checksumstring | nullsha1Checksumstring | nullsha256Checksumstring | nullsizestring | nullquotaBytesUsedstring | nullheadRevisionIdstring | nullisAppAuthorizedboolean | nullexportLinksobject | nullshortcutDetailsobject | nullcontentRestrictionsarray | nullresourceKeystring | nulllinkShareMetadataobject | nulllabelInfoobject | nulltrashedTimestring | nulltrashingUserobject | anyimageMediaMetadataobject | nullvideoMediaMetadataobject | null
Files Delete
Permanently deletes a file owned by the user without moving it to the trash.
Python SDK
await google_drive . files . delete ( file_id = "<str>" )
API
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>" } }'
Parameters
Parameter Name Type Required Description fileIdstringYes The ID of the file to delete supportsAllDrivesbooleanNo Whether the requesting application supports both My Drives and shared drives
Files Download
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.
Python SDK
async for chunk in google_drive . files . download ( file_id = "<str>" , alt = "<str>" ) : file . write ( chunk )
Note : Download operations return an async iterator of bytes chunks for memory-efficient streaming. Use async for to process chunks as they arrive.
API
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>" } }'
Parameters
Parameter Name Type Required Description fileIdstringYes The ID of the file to download alt"media"Yes Must be set to 'media' to download file content acknowledgeAbusebooleanNo Whether the user is acknowledging the risk of downloading known malware or other abusive files supportsAllDrivesbooleanNo Whether the requesting application supports both My Drives and shared drives range_headerstringNo Optional Range header for partial downloads (e.g., 'bytes=0-99')
Files Upload
Files Upload Create
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.
Python SDK
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 )
API
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 } }'
Parameters
Parameter Name Type Required Description namestringYes The name of the file file_contentstringYes Base64-encoded file content to upload mimeTypestringNo The MIME type for the file metadata in Google Drive parentsarray<string>No The IDs of the parent folders descriptionstringNo A short description of the file file_mime_typestringNo 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') supportsAllDrivesbooleanNo Whether the requesting application supports both My Drives and shared drives
Response Schema Records Field Name Type Description kindstring | nullidstringnamestring | nullmimeTypestring | nulldescriptionstring | nullstarredboolean | nulltrashedboolean | nullexplicitlyTrashedboolean | nullparentsarray | nullpropertiesobject | nullappPropertiesobject | nullspacesarray | nullversionstring | nullwebContentLinkstring | nullwebViewLinkstring | nulliconLinkstring | nullhasThumbnailboolean | nullthumbnailLinkstring | nullthumbnailVersionstring | nullviewedByMeboolean | nullviewedByMeTimestring | nullcreatedTimestring | nullmodifiedTimestring | nullmodifiedByMeTimestring | nullmodifiedByMeboolean | nullsharedWithMeTimestring | nullsharingUserobject | anyownersarray | nullowners[].kindstring | nullowners[].displayNamestring | nullowners[].photoLinkstring | nullowners[].meboolean | nullowners[].permissionIdstring | nullowners[].emailAddressstring | nulldriveIdstring | nulllastModifyingUserobject | anysharedboolean | nullownedByMeboolean | nullcapabilitiesobject | nullviewersCanCopyContentboolean | nullcopyRequiresWriterPermissionboolean | nullwritersCanShareboolean | nullpermissionIdsarray | nullfolderColorRgbstring | nulloriginalFilenamestring | nullfullFileExtensionstring | nullfileExtensionstring | nullmd5Checksumstring | nullsha1Checksumstring | nullsha256Checksumstring | nullsizestring | nullquotaBytesUsedstring | nullheadRevisionIdstring | nullisAppAuthorizedboolean | nullexportLinksobject | nullshortcutDetailsobject | nullcontentRestrictionsarray | nullresourceKeystring | nulllinkShareMetadataobject | nulllabelInfoobject | nulltrashedTimestring | nulltrashingUserobject | anyimageMediaMetadataobject | nullvideoMediaMetadataobject | null
Files Export
Files Export Download
Exports a Google Workspace file (Docs, Sheets, Slides, Drawings) to a specified format.
Common export formats:
application/pdf (all types)
text/plain (Docs)
text/csv (Sheets)
application/vnd.openxmlformats-officedocument.wordprocessingml.document (Docs to .docx)
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet (Sheets to .xlsx)
application/vnd.openxmlformats-officedocument.presentationml.presentation (Slides to .pptx)
Note: Export has a 10MB limit. For larger files, use the Drive UI.
Python SDK
async for chunk in google_drive . files_export . download ( file_id = "<str>" , mime_type = "<str>" ) : file . write ( chunk )
Note : Download operations return an async iterator of bytes chunks for memory-efficient streaming. Use async for to process chunks as they arrive.
API
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>" } }'
Parameters
Parameter Name Type Required Description fileIdstringYes The ID of the Google Workspace file to export mimeTypestringYes The MIME type of the format to export to. Common values:
application/pdf
text/plain
text/csv
application/vnd.openxmlformats-officedocument.wordprocessingml.document
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
application/vnd.openxmlformats-officedocument.presentationml.presentation
|
| range_header | string | No | Optional Range header for partial downloads (e.g., 'bytes=0-99') |
Drives
Drives List
Lists the user's shared drives
Python SDK
await google_drive . drives . list ( )
API
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" }'
Parameters
Parameter Name Type Required Description pageSizeintegerNo Maximum number of shared drives to return (1-100) pageTokenstringNo Token for continuing a previous list request qstringNo Query string for searching shared drives useDomainAdminAccessbooleanNo Issue the request as a domain administrator
Response Schema Records Field Name Type Description kindstring | nullidstringnamestring | nullcolorRgbstring | nullbackgroundImageLinkstring | nullbackgroundImageFileobject | nullcapabilitiesobject | nullthemeIdstring | nullcreatedTimestring | nullhiddenboolean | nullrestrictionsobject | nullorgUnitIdstring | null
Field Name Type Description nextPageTokenstring | null
Drives Get
Gets a shared drive's metadata by ID
Python SDK
await google_drive . drives . get ( drive_id = "<str>" )
API
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>" } }'
Parameters
Parameter Name Type Required Description driveIdstringYes The ID of the shared drive useDomainAdminAccessbooleanNo Issue the request as a domain administrator
Response Schema Records Field Name Type Description kindstring | nullidstringnamestring | nullcolorRgbstring | nullbackgroundImageLinkstring | nullbackgroundImageFileobject | nullcapabilitiesobject | nullthemeIdstring | nullcreatedTimestring | nullhiddenboolean | nullrestrictionsobject | nullorgUnitIdstring | null
Permissions
Permissions List
Lists a file's or shared drive's permissions
Python SDK
await google_drive . permissions . list ( file_id = "<str>" )
API
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>" } }'
Parameters
Parameter Name Type Required Description fileIdstringYes The ID of the file or shared drive pageSizeintegerNo Maximum number of permissions to return (1-100) pageTokenstringNo Token for continuing a previous list request supportsAllDrivesbooleanNo Whether the requesting application supports both My Drives and shared drives useDomainAdminAccessbooleanNo Issue the request as a domain administrator
Response Schema Records Field Name Type Description kindstring | nullidstringtypestring | nullemailAddressstring | nulldomainstring | nullrolestring | nullviewstring | nullallowFileDiscoveryboolean | nulldisplayNamestring | nullphotoLinkstring | nullexpirationTimestring | nullteamDrivePermissionDetailsarray | nullpermissionDetailsarray | nulldeletedboolean | nullpendingOwnerboolean | null
Field Name Type Description nextPageTokenstring | null
Permissions Get
Gets a permission by ID
Python SDK
await google_drive . permissions . get ( file_id = "<str>" , permission_id = "<str>" )
API
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>" } }'
Parameters
Parameter Name Type Required Description fileIdstringYes The ID of the file permissionIdstringYes The ID of the permission supportsAllDrivesbooleanNo Whether the requesting application supports both My Drives and shared drives useDomainAdminAccessbooleanNo Issue the request as a domain administrator
Response Schema Records Field Name Type Description kindstring | nullidstringtypestring | nullemailAddressstring | nulldomainstring | nullrolestring | nullviewstring | nullallowFileDiscoveryboolean | nulldisplayNamestring | nullphotoLinkstring | nullexpirationTimestring | nullteamDrivePermissionDetailsarray | nullpermissionDetailsarray | nulldeletedboolean | nullpendingOwnerboolean | null
Lists a file's comments
Python SDK
await google_drive . comments . list ( file_id = "<str>" )
API
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>" } }'
Parameters
Parameter Name Type Required Description fileIdstringYes The ID of the file pageSizeintegerNo Maximum number of comments to return (1-100) pageTokenstringNo Token for continuing a previous list request startModifiedTimestringNo Minimum value of modifiedTime to filter by (RFC 3339) includeDeletedbooleanNo Whether to include deleted comments fieldsstringNo Fields to include in the response (required for comments)
Response Schema Records Field Name Type Description kindstring | nullidstringcreatedTimestring | nullmodifiedTimestring | nullauthorobject | anyhtmlContentstring | nullcontentstring | nulldeletedboolean | nullresolvedboolean | nullquotedFileContentobject | nullanchorstring | nullrepliesarray | nullreplies[].kindstring | nullreplies[].idstringreplies[].createdTimestring | nullreplies[].modifiedTimestring | nullreplies[].authorobject | anyreplies[].htmlContentstring | nullreplies[].contentstring | nullreplies[].deletedboolean | nullreplies[].actionstring | nullmentionedEmailAddressesarray | nullassigneeEmailAddressstring | null
Field Name Type Description nextPageTokenstring | null
Gets a comment by ID
Python SDK
await google_drive . comments . get ( file_id = "<str>" , comment_id = "<str>" )
API
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>" } }'
Parameters
Parameter Name Type Required Description fileIdstringYes The ID of the file commentIdstringYes The ID of the comment includeDeletedbooleanNo Whether to return deleted comments fieldsstringNo Fields to include in the response (required for comments)
Response Schema Records Field Name Type Description kindstring | nullidstringcreatedTimestring | nullmodifiedTimestring | nullauthorobject | anyhtmlContentstring | nullcontentstring | nulldeletedboolean | nullresolvedboolean | nullquotedFileContentobject | nullanchorstring | nullrepliesarray | nullreplies[].kindstring | nullreplies[].idstringreplies[].createdTimestring | nullreplies[].modifiedTimestring | nullreplies[].authorobject | anyreplies[].htmlContentstring | nullreplies[].contentstring | nullreplies[].deletedboolean | nullreplies[].actionstring | nullmentionedEmailAddressesarray | nullassigneeEmailAddressstring | null
Replies
Replies List
Lists a comment's replies
Python SDK
await google_drive . replies . list ( file_id = "<str>" , comment_id = "<str>" )
API
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>" } }'
Parameters
Parameter Name Type Required Description fileIdstringYes The ID of the file commentIdstringYes The ID of the comment pageSizeintegerNo Maximum number of replies to return (1-100) pageTokenstringNo Token for continuing a previous list request includeDeletedbooleanNo Whether to include deleted replies fieldsstringNo Fields to include in the response (required for replies)
Response Schema Records Field Name Type Description kindstring | nullidstringcreatedTimestring | nullmodifiedTimestring | nullauthorobject | anyhtmlContentstring | nullcontentstring | nulldeletedboolean | nullactionstring | null
Field Name Type Description nextPageTokenstring | null
Replies Get
Gets a reply by ID
Python SDK
await google_drive . replies . get ( file_id = "<str>" , comment_id = "<str>" , reply_id = "<str>" )
API
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>" } }'
Parameters
Parameter Name Type Required Description fileIdstringYes The ID of the file commentIdstringYes The ID of the comment replyIdstringYes The ID of the reply includeDeletedbooleanNo Whether to return deleted replies fieldsstringNo Fields to include in the response (required for replies)
Response Schema Records Field Name Type Description kindstring | nullidstringcreatedTimestring | nullmodifiedTimestring | nullauthorobject | anyhtmlContentstring | nullcontentstring | nulldeletedboolean | nullactionstring | null
Revisions
Revisions List
Lists a file's revisions
Python SDK
await google_drive . revisions . list ( file_id = "<str>" )
API
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>" } }'
Parameters
Parameter Name Type Required Description fileIdstringYes The ID of the file pageSizeintegerNo Maximum number of revisions to return (1-1000) pageTokenstringNo Token for continuing a previous list request
Response Schema Records Field Name Type Description kindstring | nullidstringmimeTypestring | nullmodifiedTimestring | nullkeepForeverboolean | nullpublishedboolean | nullpublishedLinkstring | nullpublishAutoboolean | nullpublishedOutsideDomainboolean | nulllastModifyingUserobject | anyoriginalFilenamestring | nullmd5Checksumstring | nullsizestring | nullexportLinksobject | null
Field Name Type Description nextPageTokenstring | null
Revisions Get
Gets a revision's metadata by ID
Python SDK
await google_drive . revisions . get ( file_id = "<str>" , revision_id = "<str>" )
API
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>" } }'
Parameters
Parameter Name Type Required Description fileIdstringYes The ID of the file revisionIdstringYes The ID of the revision
Response Schema Records Field Name Type Description kindstring | nullidstringmimeTypestring | nullmodifiedTimestring | nullkeepForeverboolean | nullpublishedboolean | nullpublishedLinkstring | nullpublishAutoboolean | nullpublishedOutsideDomainboolean | nulllastModifyingUserobject | anyoriginalFilenamestring | nullmd5Checksumstring | nullsizestring | nullexportLinksobject | null
Changes
Changes List
Lists the changes for a user or shared drive
Python SDK
await google_drive . changes . list ( page_token = "<str>" )
API
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>" } }'
Parameters
Parameter Name Type Required Description pageTokenstringYes Token for the page of changes to retrieve (from changes.getStartPageToken or previous response) pageSizeintegerNo Maximum number of changes to return (1-1000) driveIdstringNo The shared drive from which changes are returned includeItemsFromAllDrivesbooleanNo Whether to include changes from all drives supportsAllDrivesbooleanNo Whether the requesting application supports both My Drives and shared drives spacesstringNo Comma-separated list of spaces to query includeRemovedbooleanNo Whether to include changes indicating that items have been removed restrictToMyDrivebooleanNo Whether to restrict the results to changes inside the My Drive hierarchy
Response Schema Records Field Name Type Description kindstring | nullremovedboolean | nullfileobject | anyfileIdstring | nulldriveIdstring | nulldriveobject | anytimestring | nulltypestring | nullchangeTypestring | null
Field Name Type Description nextPageTokenstring | nullnewStartPageTokenstring | null
Changes Start Page Token
Changes Start Page Token Get
Gets the starting pageToken for listing future changes
Python SDK
await google_drive . changes_start_page_token . get ( )
API
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" }'
Parameters
Parameter Name Type Required Description driveIdstringNo The ID of the shared drive for which the starting pageToken is returned supportsAllDrivesbooleanNo Whether the requesting application supports both My Drives and shared drives
Response Schema Records Field Name Type Description kindstring | nullstartPageTokenstring
About
About Get
Gets information about the user, the user's Drive, and system capabilities
Python SDK
await google_drive . about . get ( )
API
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" }'
Parameters
Parameter Name Type Required Description fieldsstringNo Fields to include in the response (use * for all fields)
Response Schema Records Field Name Type Description kindstring | nulluserobject | anystorageQuotaobject | nullimportFormatsobject | nullexportFormatsobject | nullmaxImportSizesobject | nullmaxUploadSizestring | nullappInstalledboolean | nullfolderColorPalettearray | nulldriveThemesarray | nullcanCreateDrivesboolean | nullcanCreateTeamDrivesboolean | nullteamDriveThemesarray | null