Skip to main content

🚀 Quickstart

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

Create the integration

In Nango (free signup), go to Integrations -> Configure New Integration -> Google Drive.
Nango has credentials you can use for testing. Activate them in the dashboard.
2

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.
3

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 secret key, integration ID, and connection ID:
curl "https://api.nango.dev/proxy/drive/v3/files?pageSize=10" \
  -H "Authorization: Bearer <NANGO-SECRET-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 Nango to inspect requests.
4

Implement Nango in your app

Follow our Auth implementation guide to integrate Nango in your app.To obtain your own production credentials, follow the setup guide linked below.

📚 Google Drive Integration Guides

Nango maintained guides for common use cases. Official docs: Google Drive API Documentation

🧩 Pre-built syncs & actions for Google Drive

Enable them in your dashboard. Extend and customize to fit your needs.

Changes

Function nameDescriptionTypeSource code
get-changes-start-page-tokenGet the starting token for listing future changesAction🔗 Github
list-changesList changes to files and shared drivesAction🔗 Github

Comments

Function nameDescriptionTypeSource code
create-commentAdd a comment to a fileAction🔗 Github
delete-commentDelete a comment from a fileAction🔗 Github
get-commentGet a comment by IDAction🔗 Github
list-commentsList comments on a fileAction🔗 Github
update-commentUpdate a comment on a fileAction🔗 Github

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

Drive

Function nameDescriptionTypeSource code
create-folderCreate a new folder in Google DriveAction🔗 Github
get-aboutGet the user’s drive info and storage quotaAction🔗 Github

Drives

Function nameDescriptionTypeSource code
create-shared-driveCreate a shared driveAction🔗 Github
delete-shared-driveDelete a shared driveAction🔗 Github
get-shared-driveGet a shared drive by IDAction🔗 Github
list-drivesList shared drives the user can access, with cursor pagination and drive metadata like hidden, capabilities, and restrictions.Action🔗 Github

Files

Function nameDescriptionTypeSource code
copy-fileCopy a file to a destinationAction🔗 Github
delete-fileDelete a file or folder from Google DriveAction🔗 Github
empty-trashPermanently delete all trashed filesAction🔗 Github
find-fileSearch for files by name or query in Google DriveAction🔗 Github
get-revisionGet a file revision by IDAction🔗 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
move-fileMove a file to a different folderAction🔗 Github
update-fileUpdate a file’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

Folders

Function nameDescriptionTypeSource code
find-folderSearch for a folder by name or queryAction🔗 Github
foldersSync root-level Google Drive folders from My Drive and shared drivesSync🔗 Github

Permissions

Function nameDescriptionTypeSource code
delete-permissionRemove a permission from a fileAction🔗 Github
get-permissionGet a permission by IDAction🔗 Github
list-permissionsList permissions on a fileAction🔗 Github
update-permissionUpdate a permission on a fileAction🔗 Github
permissionsSync file permissions from Google DriveSync🔗 Github

Shared Drives

Function nameDescriptionTypeSource code
hide-shared-driveHide a shared drive from the default viewAction🔗 Github
unhide-shared-driveRestore a hidden shared drive to default viewAction🔗 Github
update-shared-driveUpdate a shared drive’s metadataAction🔗 Github
shared-drivesSync shared drives from Google DriveSync🔗 Github