Google Drive
Configure Google Drive integration
Configuration
data_pools:
- id: google-drive
type: drive
refresh_token: $GOOGLE_REFRESH_TOKEN
scope: "drive.readonly"
root_folder_id: null
team_drive: null
Configuration Options
Field | Type | Default | Required | Description |
---|---|---|---|---|
id | string | - | ✅ | Unique identifier for the data pool |
type | string | - | ✅ | Must be "drive" |
refresh_token | string | - | ✅ | OAuth refresh token |
scope | string | "drive.readonly" | ❌ | Access scope |
root_folder_id | string | null | ❌ | Optional specific folder ID |
team_drive | string | null | ❌ | Shared drive ID |
client_id | string | null | ❌ | Optional custom client ID |
client_secret | string | null | ❌ | Optional custom client secret |
base_path | string | "/" | ❌ | Optional folder path |
Setup
- Create Google Cloud project: Google Cloud Console
- Enable Drive API: Enable Google Drive API
- Create OAuth credentials: Download client credentials
- Get refresh token: Complete OAuth2 flow
- Add to environment:
GOOGLE_REFRESH_TOKEN