Skip to main content

Google Drive Connector

Google Drive Manage files in Google Drive

Connections

OAuth2

OAuth2 Connection

This connection uses OAuth 2.0, a common authentication mechanism for integrations. Read about how OAuth 2.0 works here.

InputCommentsDefault
ScopesSpace delimited listing of scopes. https://developers.google.com/identity/protocols/oauth2/scopes#drivehttps://www.googleapis.com/auth/drive https://www.googleapis.com/auth/drive.activity.readonly
Client IDThe Google Drive app's Client Identifier.
Client SecretThe Google Drive app's Client Secret.

Triggers

Drive Activity

Checks for Google Drive activity. By default yields activity on personal 'My Drive'. For activity on a shared drive, specify a shared drive's folder's 'Folder ID'.

InputCommentsDefault
Trigger EventsThe event types the trigger will poll.
File IDReturn activities for this Drive item.
Folder or Drive IDReturn activities for this Drive or folder, plus all children and descendants. You may supply an array of drive or folder IDs.
Consolidation StrategyDetails on how to consolidate related actions that make up the activity. If not set, then related actions aren't consolidated.
ConnectionThe Connection to use for authorization.

New and Updated Files

Checks for new and updated files in a specified drive (or all drives, if omitted) on a configured schedule.

InputCommentsDefault
ConnectionThe Connection to use for authorization.
Drive IDThe ID of a shared drive to search for the file in. If not provided, the search will be performed across all drives. Enter 'my-drive' to search only "My Drive".

Push Notification Webhook

Receive and validate webhook requests from Google Drive for webhooks you configure.

Actions

Copy File

Copy a file by file id

InputCommentsDefault
ConnectionThe Connection to use for authorization.
File IDA unique opaque ID for each file. File IDs are stable throughout the life of the file, even if the file name changes.
File NameProvide a string for the name of the new file.
Folder IDA unique opaque ID for each folder.

Create File

Create a new file with content and metadata

InputCommentsDefault
ConnectionThe Connection to use for authorization.
Parent Folder IdA unique opaque ID for each folder.
File ContentThe binary or text body of the file. Some content examples you can store in Google Drive are images, videos, text, and PDF.
File NameProvide a string for the name of the new file.
FieldsProvide a comma separated list of values to be returned in the response.*

Create Folder

Create a directory file

InputCommentsDefault
ConnectionThe Connection to use for authorization.
Folder NameProvide a string for the name of the new folder.
Parent Folder IdA unique opaque ID for each folder.

Create Webhook for Drive

Create a webhook to receive notifications of changes with a Google Drive

InputCommentsDefault
ConnectionThe Connection to use for authorization.
Drive IDThe ID of a shared drive to search for the file in. If not provided, the search will be performed across all drives. Enter 'my-drive' to search only "My Drive".
EndpointThe URL to send notifications to
Expiration TimeThe time at which the webhook will expire as a UNIX timestamp in milliseconds. Defaults to 1 hour from now, and can be set to a maximum of 1 day from now.

Create Webhook for File or Folder

Create a webhook to receive notifications of changes for a file or folder

InputCommentsDefault
ConnectionThe Connection to use for authorization.
File or Folder ID
EndpointThe URL to send notifications to
Expiration TimeThe time at which the webhook will expire as a UNIX timestamp in milliseconds. Defaults to 1 hour from now, and can be set to a maximum of 1 day from now.

Delete File

Delete a file by file id

InputCommentsDefault
ConnectionThe Connection to use for authorization.
File IDA unique opaque ID for each file. File IDs are stable throughout the life of the file, even if the file name changes.
FieldsProvide a comma separated list of values to be returned in the response.*

Delete Webhook

Stop a webhook channel from sending notifications

InputCommentsDefault
ConnectionThe Connection to use for authorization.
Webhook IDReturned when you create a webhook
Resource IDReturned when you create a webhook

Empty Trash

Empty the trash of deleted files

InputCommentsDefault
ConnectionThe Connection to use for authorization.

Get About

Gets information about the user's Drive, and system capabilities

InputCommentsDefault
ConnectionThe Connection to use for authorization.
FieldsProvide a comma separated list of values to be returned in the response.*

Get Current User

Get the information and metadata of the user that is currently logged in

InputCommentsDefault
ConnectionThe Connection to use for authorization.

Get File

Gets a file's metadata and content by ID.

InputCommentsDefault
ConnectionThe Connection to use for authorization.
File IDA unique opaque ID for each file. File IDs are stable throughout the life of the file, even if the file name changes.
Preferred Export TypeProvide the type of file you want to export as. If the value you provided is not compatible, we will attempt the first option available in the objects export types. This value is only required when exporting a non binary file.

Get File Metadata

Gets a file's metadata and content by ID.

InputCommentsDefault
ConnectionThe Connection to use for authorization.
File IDA unique opaque ID for each file. File IDs are stable throughout the life of the file, even if the file name changes.
FieldsProvide a comma separated list of values to be returned in the response.

List Changes

List changes made to files in your Google Drive since the last time this step ran (up to 1000)

InputCommentsDefault
ConnectionThe Connection to use for authorization.
Drive IDThe ID of a shared drive to search for the file in. If not provided, the search will be performed across all drives. Enter 'my-drive' to search only "My Drive".

List Drives

List all drives

InputCommentsDefault
ConnectionThe Connection to use for authorization.

List Files

Lists all available files and directories

InputCommentsDefault
ConnectionThe Connection to use for authorization.
Drive IDThe ID of a shared drive to search for the file in. If not provided, the search will be performed across all drives. Enter 'my-drive' to search only "My Drive".
Page SizeProvide an integer value for the maximum amount of results that will be returned. Provide a value from 1 to 50.20
Page TokenSpecify the pagination token that's returned by a previous request to retrieve the next page of results
FieldsProvide a comma separated list of values to be returned in the response.*
QueryProvide a query to be used in the request. Refer to the Google documentation for examples: https://developers.google.com/drive/api/v3/search-files

List File's Export Types

List the available export types of a file by ID.

InputCommentsDefault
ConnectionThe Connection to use for authorization.
File IDA unique opaque ID for each file. File IDs are stable throughout the life of the file, even if the file name changes.

List Folders

Lists all available directories

InputCommentsDefault
ConnectionThe Connection to use for authorization.
Drive IDThe ID of a shared drive to search for the file in. If not provided, the search will be performed across all drives. Enter 'my-drive' to search only "My Drive".
Page SizeProvide an integer value for the maximum amount of results that will be returned. Provide a value from 1 to 50.20
Page TokenSpecify the pagination token that's returned by a previous request to retrieve the next page of results
FieldsProvide a comma separated list of values to be returned in the response.*
Folder IDA unique opaque ID for each folder.

Move File

Move a file by file ID

InputCommentsDefault
ConnectionThe Connection to use for authorization.
File IDA unique opaque ID for each file. File IDs are stable throughout the life of the file, even if the file name changes.
Folder IDA unique opaque ID for each folder.

Query Drive Activity

Query past activity in Google Drive.

InputCommentsDefault
ConnectionThe Connection to use for authorization.
File IDReturn activities for this Drive item.
Folder or Drive IDReturn activities for this Drive or folder, plus all children and descendants.
Page TokenSpecify the pagination token that's returned by a previous request to retrieve the next page of results
FilterThe filtering for items returned from this query request.
Consolidation StrategyDetails on how to consolidate related actions that make up the activity. If not set, then related actions aren't consolidated.
Fetch AllWhether to fetch all results or just the first page. Defaults to false.false

Raw Request

Send raw HTTP request to Google Drive

InputCommentsDefault
ConnectionThe Connection to use for authorization.
URLInput the path only (/files), The base URL is already included (https://www.googleapis.com/drive/v3). For example, to connect to https://www.googleapis.com/drive/v3/files, only /files is entered in this field.
MethodThe HTTP method to use.
DataThe HTTP body payload to send to the URL.
Form DataThe Form Data to be sent as a multipart form upload.
File DataFile Data to be sent as a multipart form upload.
File Data File NamesFile names to apply to the file data inputs. Keys must match the file data keys above.
Query ParameterA list of query parameters to send with the request. This is the portion at the end of the URL similar to ?key1=value1&key2=value2.
HeaderA list of headers to send with the request.
Response TypeThe type of data you expect in the response. You can request json, text, or binary data.json
TimeoutThe maximum time that a client will await a response to its request
Debug RequestEnabling this flag will log out the current request.false
Retry Delay (ms)The delay in milliseconds between retries. This is used when 'Use Exponential Backoff' is disabled.0
Retry On All ErrorsIf true, retries on all erroneous responses regardless of type. This is helpful when retrying after HTTP 429 or other 3xx or 4xx errors. Otherwise, only retries on HTTP 5xx and network errors.false
Max Retry CountThe maximum number of retries to attempt. Specify 0 for no retries.0
Use Exponential BackoffSpecifies whether to use a pre-defined exponential backoff strategy for retries. When enabled, 'Retry Delay (ms)' is ignored.false

Search Files

Search for an existing file by Name

InputCommentsDefault
ConnectionThe Connection to use for authorization.
SearchProvide a string of text to perform a search with.
Files Containing Search QueryWether or not to search for files that contains the provided 'searchQuery' in their name.false
Page SizeProvide an integer value for the maximum amount of results that will be returned. Provide a value from 1 to 50.20
Page TokenSpecify the pagination token that's returned by a previous request to retrieve the next page of results
FieldsProvide a comma separated list of values to be returned in the response.*
QueryProvide a query to be used in the request. Refer to the Google documentation for examples: https://developers.google.com/drive/api/v3/search-files
Parent Folder IdA unique opaque ID for each folder.

Search Folders

Search for an existing directory by Name

InputCommentsDefault
ConnectionThe Connection to use for authorization.
SearchProvide a string of text to perform a search with.
Page SizeProvide an integer value for the maximum amount of results that will be returned. Provide a value from 1 to 50.20
Page TokenSpecify the pagination token that's returned by a previous request to retrieve the next page of results
FieldsProvide a comma separated list of values to be returned in the response.*
Parent Folder IdA unique opaque ID for each folder.

Update File

Updates a file's content by file id

InputCommentsDefault
ConnectionThe Connection to use for authorization.
File IDA unique opaque ID for each file. File IDs are stable throughout the life of the file, even if the file name changes.
File ContentThe binary or text body of the file. Some content examples you can store in Google Drive are images, videos, text, and PDF.
File NameProvide a string for the name of the new file.
FieldsProvide a comma separated list of values to be returned in the response.*