Skip to content

IntegrationsCloud Storage

Google Drive API integration

Put Google Drive in your product or your AI agent. Truto handles the sign-in and the token refresh, and keeps the connection working after launch.

Elaichi

From the team behind Truto

Control plane for MCP servers

Put your team’s own apps to work in their AI. Connect an app once, and everyone’s AI can use it.

Works in

  • Each person’s AI gets exactly their access. Nothing more.
  • Share an app with your team, not a password.
  • Every call is checked and logged.

No credit card required · 1000+ apps

01Proxy API

Call the Google Drive API directly. Every endpoint, through Truto.

Truto’s Proxy API is a 1-to-1 mapping of the Google Drive API. You call us, we call Google Drive, and pass the response back in the same cycle. Truto handles authentication and token refresh.

On every plan, including Free.

How the Proxy API works

Proxy APIGoogle Drive

GEThttps://api.truto.one/proxy/?integrated_account_id=…

Google Drive’s own response, passed back

02MCP server

Google Drive tools for any AI agent. Any MCP client, or the agent you build.

Whatever your agent runs on, it gets Google Drive tools for each customer’s account: through an MCP server, or straight from the tools API.

On every plan, including Free.

What an agent can doin Google Drive
  • Drive filesList, Get one
  • FilesUpdate, Upload
  • Drive foldersList, Get one
  • Drive shared drivesList, Get one
  • Drive searchList
  • Drive file exportGet one
  • Oauth user infoList
  • Drive itemsList, Get one
  • WatchCreate
  • Drive permissionsList
  • Drive labelsList
  • Drive revisionsList, Get one
  • Drive commentsList, Get one
  • Comment repliesList, Get one
  • FormsList
  • Docs documentsList, Get one
  • Drive file labelsList
  • ChangesList
  • Changes start page tokenList
  • Changes watchCreate
  • ChannelDelete
  • Other actionsDownload googledrive file by id
Show tool names31 tools, for developers
  • list_all_drive_filesRetrieves the user's files stored in Google Drive. This method allows filtering results using the q parameter, which accepts search queries to find specific files based on name, type, ownership, and other metadata. The response includes key file attributes such as id, name, mimeType, createdTime, modifiedTime, owners, driveId, shared, and permissions.
  • get_single_drive_file_by_idRetrieves metadata or content from a single file on the user's Google Drive. It always requires the ID to fetch.
  • update_a_google_drive_file_by_idRename or move a Google Drive file or folder, or change its description. Also step 2 of an upload: set `name` on the file the upload tool returned. To move it into a folder, pass `addParents` (the folder id) and `removeParents` (the id in its current `parents`). Returns: id, name, mimeType, parents, webViewLink, size. Required: id.
  • download_googledrive_file_by_idDownload the raw content of a file stored in Google Drive (PDF, image, zip, Office file or any other uploaded file). Returns a download link to the saved file. Required: id (the Drive file ID). Does not work on Google Docs, Sheets or Slides; use get_googledrive_file_export_by_id to export those to a format such as PDF or .docx.
  • google_drive_files_uploadUpload a file to Google Drive, step 1 of 2. Pass the file as `file` (a file id). Google saves it in My Drive with the name "Untitled", so ALWAYS follow with step 2: call the Drive file update tool with the `id` this returns and `name` set to the file name (and `addParents` set to a folder id to put it in a folder). Returns: id, name, mimeType, parents, webViewLink, size. Required: file.
  • list_all_drive_foldersList all Google Drive folders. Returns folder objects including id, name, and mimeType, filtered automatically to items of type folder.
  • get_single_drive_folder_by_idGet a single Google Drive folder by id. Returns the full folder metadata including id, name, mimeType, and parents. Required: id.
  • list_all_drive_shared_drivesList all shared drives available in Google Drive. Returns an array of drive objects including their metadata.
  • get_single_drive_shared_drive_by_idGet a single Google Drive shared drive by id. Returns the full drive object including its metadata. Required: id.
  • list_all_drive_searchRetrieves the user's files stored in Google Drive. This method allows filtering results using the q parameter, which accepts search queries to find specific files or folders based on name, type, ownership, and other metadata. The response includes key file attributes such as id, name, mimeType, createdTime, modifiedTime, owners, parents, driveId, shared, and permissions.
  • get_single_drive_file_export_by_idExport a Google Drive file to a specified MIME type. Returns the exported file content as a binary stream. Required: id (the Drive file ID), mimeType (the target export format, e.g. "application/pdf").
  • list_all_oauth_user_infoRetrieves basic profile information about the authenticated user in Google Calendar. The response includes essential details such as the user's unique identifier (sub), full name (name), first name (given_name), last name (family_name), profile picture URL (picture), and email address (email).
  • list_all_drive_itemsList files and folders in Google Drive, including items from all shared drives. Returns an array of file metadata objects.
  • get_single_drive_item_by_idGet a single Google Drive file or folder by id. Returns the full file metadata object. Required: id.
  • create_a_google_drive_watchSubscribe to change notifications for a Google Drive file by opening a push notification channel. Google POSTs a notification to the channel address whenever the file changes, until the channel expires. Returns: kind, id, resourceId, resourceUri, token, expiration, type, and address. Required: file_id, and a body containing id, type, and address.
  • list_all_drive_permissionsList permissions for a Google Drive file. Returns: id, role, type, emailAddress, domain, allowFileDiscovery, and permissionDetails for each permission entry. Required: file_id.
  • list_all_drive_labelsList Google Drive labels available in the account. Returns a collection of label objects from the Drive Labels API with full label view details.
  • list_all_drive_revisionsList all revisions for a Google Drive file. Returns a collection of revision objects for the specified file. Required: file_id.
  • get_single_drive_revision_by_idGet a single revision of a Google Drive file by revision id. Returns the full revision object for the specified file and revision. Required: file_id and id.
  • list_all_drive_commentsList all comments on a Google Drive file. Returns: id, content, author, createdTime, modifiedTime, resolved, and replies for each comment. Required: file_id.
  • get_single_drive_comment_by_idGet a single comment on a Google Drive file by id. Returns: id, content, author, createdTime, modifiedTime, resolved, anchor, htmlContent, and replies. Required: file_id, id.
  • list_all_google_drive_comment_repliesList all replies to a comment on a Google Drive file. Returns: id, kind, createdTime, modifiedTime, author, content, htmlContent, action, and deleted for each reply. Required: file_id, comment_id.
  • get_single_google_drive_comment_reply_by_idGet a single reply to a comment on a Google Drive file by reply id. Returns: id, kind, createdTime, modifiedTime, author, content, htmlContent, action, and deleted. Required: file_id, comment_id, id.
  • list_all_formsList all Google Forms accessible in Google Drive. Returns an array of file objects representing forms, including id, name, and mimeType.
  • list_all_docs_documentsList Google Drive documents (Google Docs files). Returns an array of file objects including id, name, and mimeType, filtered to documents only.
  • get_single_docs_document_by_idGet a single Google Drive document by id. Returns the full file metadata object. Required: id.
  • list_all_drive_file_labelsList labels applied to a specific Google Drive file. Returns an array of labels associated with the file. Required: file_id.
  • list_all_google_drive_changesList changes to files in the user's Drive or in one shared drive, starting from a page token. Returns: kind, changes (each with changeType, removed, fileId, time, driveId and file), nextPageToken while more pages exist, and newStartPageToken on the last page (store it for the next call). Required: pageToken (get one from changes-start-page-token).
  • list_all_google_drive_changes_start_page_tokenGet the current position of the user's (or a shared drive's) change log. Returns: kind and startPageToken. Use startPageToken as pageToken for changes and changes-watch to receive only changes made after this call.
  • create_a_google_drive_changes_watchOpen a push notification channel on the user's (or a shared drive's) change log. Google POSTs a notification to the channel address whenever a change is added, until the channel expires (at most 7 days; channels cannot be renewed, create a new one before expiry). Notifications only signal that something changed: call changes with your stored page token to see what. Returns: kind, id, resourceId, resourceUri, token and expiration. Required: pageToken, and a body containing id, type and address.
  • delete_a_google_drive_channel_by_idStop a push notification channel created with changes-watch or watch, so Google stops sending notifications. Must be called by the same user through the same OAuth app that created the channel. Returns an empty object. Required: a body containing id and resourceId from the channel.

AMCP serverno code

For any MCP client

One URL per connected Google Drive account. Paste it into Claude, ChatGPT, Cursor, Windsurf, VS Code, Cline, Zed or a custom agent.

Server URLhttps://api.truto.one/mcp/<token>

BTools APIfor developers

For the agent you build

One call returns every Google Drive tool for an account, with its description and JSON schema, ready for any LLM framework.

GEThttps://api.truto.one/integrated-account/<id>/tools

Tools come as JSON schema, so they plug into any agent framework.

  • Always up to date

    Tools are generated from curated documentation, not hand-coded. As the integration changes, the tools stay current.

  • You set the limits

    Scope each MCP server to read-only, write-only, specific methods or tagged tool groups. Expose only what the agent needs.

  • One customer each

    Each MCP server is scoped to one connected account with its own credentials. Nothing leaks across tenants.

  • Tools you can edit

    Tool descriptions and schemas are editable in your Truto account. A change updates at once, with no deploy.

  • Sign-in handled

    Tool calls run through Truto’s proxy layer, with OAuth refresh, rate-limit handling and normalized errors.

  • Access can expire

    Create time-limited servers for contractors or automated workflows. Optionally require a Truto API token as well.

How MCP servers work

03Unified APIs

Google Drive is in 3 unified APIs. One call for every app in a category.

Ask for comments, drive-items or drives the same way for Google Drive and every other File Storage app. Truto makes Google Drive’s own call and returns the same data shape.

Add-on: $499 per category a month. 30-day trial on Free.

Google Drive is mappedSame call, same data shapeStart free

Unified File Storage API10 resources

  • CommentsComments represent discussion messages, review notes, annotations, or collaboration messages attached to a drive item in a file storage system.Docs for Comments
  • Drive-ItemsDrive Items are the files and folders present in a file storage system. These items are usually part of a Drive. You can differentiate between files and folders using the type attribute.Docs for Drive-Items
  • DrivesDrives is a collection of files and folders. They could have multiple Drive Items within them. Users could have multiple Drives accessible to them in a file storage system.Docs for Drives
  • Files[DEPRECATED] The file represent a file in File Storage.Docs for Files
  • Folders[DEPRECATED] The folder represent a folder in File Storage.Docs for Folders
  • PermissionsPermissions can answer your questions around which User has access to do what on a Drive Item or a Drive.Docs for Permissions
  • TagsRepresents the tags in a file storage systemDocs for Tags
  • UsersUsers represent the people using the underlying file storage system.Docs for Users
  • Version HistoryVersion History represents file revisions, file versions, or historical file states attached to a drive item in a file storage system.Docs for Version History
  • Webhook-SubscriptionsWebhook subscriptions allow you to register for real-time notifications when changes occur in file storage systems.Docs for Webhook-Subscriptions

Unified Search API1 resource

04Sync and webhooks

Sync Google Drive data on a schedule. Sent to your webhook.

A sync job reads Google Drive records on a schedule and sends each page to your webhook or your datastore. Signed webhooks tell you when an account connects or needs to sign in again.

On every plan, including Free.

05Custom actions

Add any Google Drive endpoint. With the Truto CLI.

Need a Google Drive endpoint or method that is not here yet? Add it with the Truto CLI and your coding agent, or call any Google Drive path through the Custom API.

On every plan, including Free. Truto CLI

For your own AI tools

Use Google Drive in ChatGPT, Claude or Cursor with Elaichi.

Truto puts Google Drive in the product you build. To use Google Drive yourself, in the AI your team already has, we recommend Elaichi.

For your product

Ship Google Drive tools in your product

Give the AI in your product access to each customer’s own Google Drive account, with one MCP server per connected account.

Start free with Google Drive

Rather talk it through? Book a demo

Elaichi

For your own team

Use Google Drive in your own AI

Connect your company’s Google Drive once, then ask in the AI you already use, with exactly your own access.

Works in

Google Drive on Elaichi

From the team behind Truto · 14-day free trial

Use cases

Why integrate with Google Drive.

  1. Let users attach and sync Google Drive files to in-app records

    SaaS platforms in project management, CRM, or HR can let their users browse and attach files directly from Google Drive without leaving the app. Truto handles OAuth, pagination, and metadata retrieval so your team ships a file picker in days, not weeks.

  2. Ingest Google Sheets data as structured input for dashboards and workflows

    BI tools, RevOps platforms, and planning software can pull Google Sheets as CSVs on a recurring schedule using the file export endpoint, converting spreadsheet data into structured rows that power dashboards, quota tracking, or forecasting models.

  3. Build unified cross-platform file search for knowledge workers

    Productivity and knowledge management tools can offer a single search bar that queries Google Drive alongside other connected storage providers, using Truto's Unified Search API to return results with consistent schema regardless of source.

  4. Surface recently modified documents and permission changes

    Compliance, security, and collaboration tools can poll file metadata to detect when documents linked to app records have been updated or re-shared, enabling real-time badges, audit trails, or automated alerts.

  5. Export native Google Workspace documents for processing pipelines

    ATS platforms, contract management tools, and document automation systems need to convert Google Docs or Slides into PDF or plain text for parsing, redlining, or archival. The file export capability handles this conversion server-side without requiring end users to manually download.

What you can build

Ship these with Truto and Google Drive.

  • In-app Google Drive file picker with metadata sync

    Let users browse their Drive files and folders, attach them to records in your app, and keep metadata like name, MIME type, and modification time in sync using list and get endpoints.

  • Shared Drive explorer for team-level file access

    Surface all Shared Drives a connected user belongs to and list their contents, giving enterprise teams a native way to interact with team-scoped storage directly inside your product.

  • Automated Google Docs-to-PDF export pipeline

    Convert native Google Workspace files (Docs, Sheets, Slides) to standard formats like PDF or CSV on demand using the file export endpoint, feeding downstream parsing, OCR, or archival workflows.

  • Cross-provider unified file search

    Ship a single search experience that queries Google Drive alongside other cloud storage providers through Truto's Unified Search API, returning results in a normalized schema.

  • Connected account identity resolver

    Use the User Directory (Me) endpoint to retrieve the authenticated user's email and profile, automatically mapping their Google identity to your app's user record on connection.

  • Folder-scoped file monitoring for automated ingestion

    List files within a specific folder and poll for new additions, enabling workflows like receipt scanning, asset ingestion, or data import from designated Drop folders.

Security

Your customers’ Google Drive data stays theirs. Truto passes it through.

  • Records pass through

    Customer records are not kept. Truto fetches them when your product asks and passes them on.

  • Our OAuth apps or yours

    Where an app signs in with OAuth, use Truto’s OAuth apps or your own, on every plan. Each customer’s login is kept encrypted (AES-256) while connected.

  • SOC 2 · TYPE IIAUDITEDISO/IEC 27001CERTIFIEDGDPRHIPAACASA · TIER 2TAC SECURITY

    Audited and certified

    SOC 2 Type II, ISO 27001, GDPR and HIPAA. CASA Tier 2, verified by TAC Security. Trust Centre

How it works

From zero to integrated. Start free, no card.

  1. Link your customer’s Google Drive account

    Use Truto’s frontend SDK to connect your customer’s Google Drive account. We handle all OAuth and API key flows — you don’t need to create the OAuth app.

  2. We handle authentication

    Don’t spend time refreshing access tokens or figuring out secure storage. We handle it and inject credentials into every API request.

  3. Call our API, we call Google Drive

    Truto’s Proxy API is a 1-to-1 mapping of the Google Drive API. You call us, we call Google Drive, and pass the response back in the same cycle.

  4. Unified response format

    Every response follows a single format across all integrations. We translate Google Drive’s pagination into unified cursor-based pagination. Data is always in the result attribute.

FAQs

Common questions about Google Drive on Truto.

What authentication method does the Google Drive integration use?

Google Drive uses OAuth 2.0. Truto manages the full OAuth flow — consent screen, token acquisition, refresh — so your end users connect their accounts in a few clicks and you never handle raw tokens.

Can I export native Google Docs or Sheets to formats like PDF or CSV?

Yes. The get_single_googledrive_file_export_by_id tool converts native Google Workspace files (Docs, Sheets, Slides) to standard formats such as PDF, CSV, or plain text. Google imposes a 10 MB limit on exported files.

What is the difference between Files, Drive Items, and Folders in Truto's Unified File Storage API?

Files represent individual file objects with metadata. Folders represent container objects. Drive Items is a unified abstraction that includes both files and folders, making it easy to traverse an entire directory tree. Drives represent top-level Shared Drives in Google Workspace.

How does the Unified Search API work with Google Drive?

The list_all_googledrive_search tool executes server-side queries against Google Drive using Google's query syntax (the q parameter), allowing you to filter by MIME type, owner, modification date, and more. Results are returned in Truto's normalized schema.

Does the integration support Shared Drives (formerly Team Drives)?

Yes. You can list all Shared Drives with list_all_googledrive_drive, retrieve a specific Shared Drive by ID, and list items within a Shared Drive using the drive items endpoints.

How does Truto handle pagination for large Google Drive accounts?

Truto abstracts Google Drive's token-based pagination behind a consistent interface. When you call list endpoints, Truto manages page tokens automatically so you receive complete result sets without writing pagination logic yourself.

Google Drive

Get Google Drive integrated into your app

Sign up free, connect a test Google Drive account and make your first call today. No card and no sales call.