Google Drive

Integrate your application with the Google Drive API

🚀 Quickstart

Connect to Google Drive with Tenklo and see data flow in 2 minutes.

Create the integration

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.

Authorize Google Drive

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.

Call the Google Drive API

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.

Implement Tenklo in your app

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.

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 nameDescriptionTypeSource code
documentsSync 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 nameDescriptionTypeSource code
foldersSync root-level Google Drive folders from My Drive and shared drivesSync🔗 Github

Permissions

Function nameDescriptionTypeSource code
permissionsSync file permissions from Google DriveSync🔗 Github

Shared Drives

Function nameDescriptionTypeSource code
shared-drivesSync shared drives from Google DriveSync🔗 Github

Others

Function nameDescriptionTypeSource code
copy-fileCopy a file to a destinationAction🔗 Github
create-commentAdd a comment to a fileAction🔗 Github
create-folderCreate a new folder in Google DriveAction🔗 Github
create-shared-driveCreate a shared driveAction🔗 Github
delete-commentDelete a comment from a fileAction🔗 Github
delete-fileDelete a file or folder from Google DriveAction🔗 Github
delete-permissionRemove a permission from a fileAction🔗 Github
delete-shared-driveDelete a shared driveAction🔗 Github
empty-trashPermanently delete all trashed filesAction🔗 Github
find-fileSearch for files by name or query in Google DriveAction🔗 Github
find-folderSearch for a folder by name or queryAction🔗 Github
get-aboutGet the user's drive info and storage quotaAction🔗 Github
get-changes-start-page-tokenGet the starting token for listing future changesAction🔗 Github
get-commentGet a comment by IDAction🔗 Github
get-permissionGet a permission by IDAction🔗 Github
get-revisionGet a file revision by IDAction🔗 Github
get-shared-driveGet a shared drive by IDAction🔗 Github
hide-shared-driveHide a shared drive from the default viewAction🔗 Github
list-changesList changes to files and shared drivesAction🔗 Github
list-commentsList comments on a fileAction🔗 Github
list-files-non-unifiedList immediate files and folders for a folder ID, or root when omitted, with cursor pagination and shared-drive support.Action🔗 Github
list-permissionsList permissions on a fileAction🔗 Github
list-drivesList shared drives the user can access, with cursor pagination and drive metadata like hidden, capabilities, and restrictions.Action🔗 Github
move-fileMove a file to a different folderAction🔗 Github
unhide-shared-driveRestore a hidden shared drive to default viewAction🔗 Github
update-commentUpdate a comment on a fileAction🔗 Github
update-fileUpdate a file's metadataAction🔗 Github
update-permissionUpdate a permission on a fileAction🔗 Github
update-shared-driveUpdate a shared drive's metadataAction🔗 Github
upload-documentUpload plain text or base64 file content up to 5 MB, optionally into a folder with a description; defaults to rootAction🔗 Github

On this page