Google Drive
Integrate your application with the Google Drive API
🚀 Quickstart
Connect to Google Drive with Tenklo and see data flow in 2 minutes.
In Tenklo (free signup), go to Integrations -> Configure New Integration -> Google Drive.
Tenklo has credentials you can use for testing. Activate them in the dashboard.
Go to Connections -> Add Test Connection -> Authorize, then log in to Google Drive. Later, you'll let your users do the same directly from your app.
Let's make your first request to the Google Drive API (fetch a list of files). Replace the placeholders below with your Environment API key, integration ID, and connection ID:
curl "https://api.tenklo.dev/proxy/drive/v3/files?pageSize=10" \
-H "Authorization: Bearer <NANGO-API-KEY>" \
-H "Provider-Config-Key: <INTEGRATION-ID>" \
-H "Connection-Id: <CONNECTION-ID>"Or fetch credentials with the Node SDK or API.
✅ You're connected! Check the Logs tab in Tenklo to inspect requests.
Follow our Auth implementation guide to integrate Tenklo in your app.
To obtain your own production credentials, follow the setup guide linked below.
📚 Google Drive Integration Guides
Tenklo maintained guides for common use cases.
-
How to register your own Google Drive OAuth app
Register an OAuth app with Google Drive and obtain credentials to connect it to Tenklo -
How to setup webhooks with Google Drive on Tenklo
Receive real-time Google Drive notifications using notification channels and Tenklo -
Complete integration example with the Tenklo Sample App See a production-ready Google Drive integration with file picker, webhooks, and file syncing. Includes a demo video walkthrough and GitHub repository.
-
Google App & Security Review Pass Google's OAuth app verification and CASA security assessment to go to production
Official docs: Google Drive API Documentation
🧩 Pre-built syncs & actions for Google Drive
Explore Nango-provided actions in your dashboard. Extend and customize them to fit your needs.
Documents
| Function name | Description | Type | Source code |
|---|---|---|---|
documents | Sync file metadata for IDs in connection metadata files, or recursively for all files under folder IDs in folders. Supports shared drives. | Sync | 🔗 Github |
Folders
| Function name | Description | Type | Source code |
|---|---|---|---|
folders | Sync root-level Google Drive folders from My Drive and shared drives | Sync | 🔗 Github |
Permissions
| Function name | Description | Type | Source code |
|---|---|---|---|
permissions | Sync file permissions from Google Drive | Sync | 🔗 Github |
Shared Drives
| Function name | Description | Type | Source code |
|---|---|---|---|
shared-drives | Sync shared drives from Google Drive | Sync | 🔗 Github |
Others
| Function name | Description | Type | Source code |
|---|---|---|---|
copy-file | Copy a file to a destination | Action | 🔗 Github |
create-comment | Add a comment to a file | Action | 🔗 Github |
create-folder | Create a new folder in Google Drive | Action | 🔗 Github |
create-shared-drive | Create a shared drive | Action | 🔗 Github |
delete-comment | Delete a comment from a file | Action | 🔗 Github |
delete-file | Delete a file or folder from Google Drive | Action | 🔗 Github |
delete-permission | Remove a permission from a file | Action | 🔗 Github |
delete-shared-drive | Delete a shared drive | Action | 🔗 Github |
empty-trash | Permanently delete all trashed files | Action | 🔗 Github |
find-file | Search for files by name or query in Google Drive | Action | 🔗 Github |
find-folder | Search for a folder by name or query | Action | 🔗 Github |
get-about | Get the user's drive info and storage quota | Action | 🔗 Github |
get-changes-start-page-token | Get the starting token for listing future changes | Action | 🔗 Github |
get-comment | Get a comment by ID | Action | 🔗 Github |
get-permission | Get a permission by ID | Action | 🔗 Github |
get-revision | Get a file revision by ID | Action | 🔗 Github |
get-shared-drive | Get a shared drive by ID | Action | 🔗 Github |
hide-shared-drive | Hide a shared drive from the default view | Action | 🔗 Github |
list-changes | List changes to files and shared drives | Action | 🔗 Github |
list-comments | List comments on a file | Action | 🔗 Github |
list-files-non-unified | List immediate files and folders for a folder ID, or root when omitted, with cursor pagination and shared-drive support. | Action | 🔗 Github |
list-permissions | List permissions on a file | Action | 🔗 Github |
list-drives | List shared drives the user can access, with cursor pagination and drive metadata like hidden, capabilities, and restrictions. | Action | 🔗 Github |
move-file | Move a file to a different folder | Action | 🔗 Github |
unhide-shared-drive | Restore a hidden shared drive to default view | Action | 🔗 Github |
update-comment | Update a comment on a file | Action | 🔗 Github |
update-file | Update a file's metadata | Action | 🔗 Github |
update-permission | Update a permission on a file | Action | 🔗 Github |
update-shared-drive | Update a shared drive's metadata | Action | 🔗 Github |
upload-document | Upload plain text or base64 file content up to 5 MB, optionally into a folder with a description; defaults to root | Action | 🔗 Github |