Google Drive
Google Drive
Configuration
Google Drive source connector integrates with the Google Drive API to extract files.
Supports both personal Google Drive (My Drive) and shared drives.
It supports downloading and processing files while maintaining proper organization and access permissions.
Authentication
This connector uses OAuth 2.0 with custom credentials. You need to provide your OAuth application’s Client ID and Client Secret, then complete the OAuth consent flow.
- Create an OAuth application in your provider’s developer console
- Enter your Client ID and Client Secret when configuring the connection
- Complete the OAuth consent flow
Configuration Options
The following configuration options are available for this connector:
Google Drive configuration schema.
List of file/folder paths to include in synchronization. Examples: ‘my_folder/*’, ‘my_folder/my_file.pdf’. Separate multiple patterns with commas. If empty, all files are included.
Data Models
The following data models are available for this connector:
GoogleDriveDriveEntity
Schema for a Drive resource (shared drive).
Reference: https://developers.google.com/drive/api/v3/reference/drives
GoogleDriveFileEntity
Schema for a File resource (in a user’s or shared drive).
Reference: https://developers.google.com/drive/api/v3/reference/files
GoogleDriveFileDeletionEntity
Deletion signal for a Google Drive file.
Emitted when the Drive Changes API reports a file was removed (deleted or access lost).
The entity_id
matches the original file’s file_id
used for GoogleDriveFileEntity
so
downstream deletion can target the correct parent/children.
Integrate Airweave with Google APIs on localhost
This guide will walk you through connecting Google Workspace APIs to Airweave when running locally. Google provides extensive documentation on setting up your workspace. Below is a streamlined process for connecting Google APIs to Airweave.
- Create a Google Cloud project for your Google Workspace (if you don’t already have one)
- Enable the Google Workspace APIs for Gmail, Google Calendar, and Google Drive
- Configure Google OAuth 2.0 consent screen
- Under
Audience
, selectMake external
and add test users - Under
Data Access
, add the following scopes:
-
Under “Authorized redirect URIs,” click ”+ Add URI” and add the Redirect URI. Use the appropriate URL for your environment: Production (Airweave Cloud):
Local:
-
Locate the client ID and client secret from your newly created OAuth client. Add these credentials to the
dev.integrations.yml
file to enable Google API integration.