Skip to content

IntegrationsKnowledge Management

Google Sheets API integration

Put Google Sheets 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 Sheets API directly. Every endpoint, through Truto.

Truto’s Proxy API is a 1-to-1 mapping of the Google Sheets API. You call us, we call Google Sheets, 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 Sheets

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

  • GET/proxy/folders
  • GET/proxy/drive
  • GET/proxy/search
  • GET/proxy/userinfo

Google Sheets’s own response, passed back

02MCP server

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

Whatever your agent runs on, it gets Google Sheets 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 Sheets
  • FilesList, Get one, Copy
  • FoldersList, Get one
  • DriveList, Get one
  • SearchList
  • File exportGet one
  • UserinfoList
  • Drive itemsList, Get one
  • WatchCreate
  • PermissionsList, Create
  • Drive labelsList
  • SpreadsheetsList, Get one, Create, Batch update, Get by data filter
  • Spreadsheets valuesList, Create, Update, Clear
  • Spreadsheets sheets copy toCreate
  • Spreadsheets developer metadatumGet one
  • Spreadsheets developer metadata searchList
  • Spreadsheets values batchUpdate, Clear
  • Spreadsheets values batch data filterList, Clear
  • ValueGet one
  • Other actionsUpdate spreadsheets values batch data filter by id
Show tool names34 tools, for developers
  • list_all_google_sheets_filesList Google Drive files accessible to the connected account in googlesheets, excluding folders by default; filter further with the optional q parameter. Returns: id, mimeType.
  • get_single_google_sheets_file_by_idGet a single Google Drive file's metadata by id in googlesheets, with access to files stored in shared drives. Returns: id, mimeType. Required: id (string file id).
  • google_sheets_files_copyCreate a copy of an existing Google Drive file in googlesheets. Returns the newly created file including its id and mimeType. Required: file_id (source file id).
  • list_all_google_sheets_foldersList Google Drive folders for googlesheets, filtered by default to mimeType `application/vnd.google-apps.folder`. Returns: id, name, mimeType. Defaults: q to the folder MIME filter, fields to * (all fields).
  • get_single_google_sheets_folder_by_idGet a single Google Drive folder by id. Returns: id, name, mimeType. Required: id. Defaults: fields to * (all fields).
  • list_all_google_sheets_driveList drives from the Google Drive account connected to googlesheets. Returns drive records, each with its id.
  • get_single_google_sheets_drive_by_idGet a single drive by id from the Google Drive account connected to googlesheets. Returns the drive record with its id. Required: id.
  • list_all_google_sheets_searchList Google Drive files in googlesheets, typically to discover available spreadsheets. Returns each file's id, name, created_at, and updated_at. A fields selector narrows which file properties are returned; it defaults to * (all fields).
  • get_single_google_sheets_file_export_by_idExport the contents of a Google Sheets spreadsheet by file id. Returns the raw exported file contents; the response body is content-type-specific rather than a structured JSON object. Required: id.
  • list_all_google_sheets_userinfoGet the OpenID Connect profile of the Google account authenticated for this googlesheets connection. Returns: sub, name, given_name, family_name, picture, email, email_verified, locale, hd. Requires no parameters.
  • list_all_google_sheets_drive_itemsList files in the connected Google Drive via googlesheets, including items from all drives. Returns each file's id, name, mimeType, size, createdTime, modifiedTime, and parents.
  • get_single_google_sheets_drive_item_by_idGet a single file from Google Drive via googlesheets by its id, including items in shared drives. Returns the file resource with id, name, mimeType, size, createdTime, modifiedTime, and webViewLink. Required: id.
  • create_a_google_sheets_watchCreate a watch on a Google Sheets file to start receiving notifications for changes to that file. Returns the created watch record including postId, content, author, and createTime. Required: file_id.
  • list_all_google_sheets_permissionsList the sharing permissions granted on a spreadsheet file in googlesheets. Returns each permission with its id, role, type, emailAddress, domain, allowFileDiscovery, and permissionDetails. Required: file_id.
  • create_a_google_sheets_permissionCreate a new sharing permission on a spreadsheet file in googlesheets. Returns the created permission object including its id, type, role, emailAddress, and displayName. Required: file_id, role, type.
  • list_all_google_sheets_drive_labelsList the Google Drive labels the connected account can access. Returns a collection of label objects, each including its id and the Label attributes defined by the Google Drive Labels API.
  • list_all_google_sheets_spreadsheetsList spreadsheets in the connected googlesheets account by querying Google Drive for files matching the spreadsheet MIME type. Returns Drive file records including id and mimeType; pagination is handled automatically.
  • get_single_google_sheets_spreadsheet_by_idGet a single Google Sheets spreadsheet by id. Returns the full Spreadsheet resource including spreadsheetId, properties, sheets, namedRanges, and spreadsheetUrl. Required: id.
  • create_a_google_sheets_spreadsheetCreate a new Google Sheets spreadsheet. Returns the newly created Spreadsheet including spreadsheetId, properties, sheets, namedRanges, and spreadsheetUrl.
  • google_sheets_spreadsheets_batch_updateApply one or more updates to a Google Sheets spreadsheet in a single call; each request is validated before being applied. Returns spreadsheetId, replies (one per request), and the updatedSpreadsheet when requested. Required: spreadsheet_id, requests.
  • google_sheets_spreadsheets_get_by_data_filterGet a googlesheets spreadsheet matching the supplied data filters via a read-only POST. Returns: spreadsheetId, properties, sheets, namedRanges, spreadsheetUrl, developerMetadata, dataSources, dataSourceSchedules, comments, commentsViewMode. Required: spreadsheet_id.
  • create_a_google_sheets_spreadsheets_valueAppend values to a googlesheets spreadsheet, detecting the table where the values should be appended. Returns a ValueRange with the resulting range, majorDimension, and values. Required: spreadsheet_id, range, values.
  • list_all_google_sheets_spreadsheets_valuesList one or more ranges of values from a googlesheets spreadsheet. Returns each range as a ValueRange with its A1 range, majorDimension, and cell values. Required: spreadsheet_id.
  • update_a_google_sheets_spreadsheets_value_by_idSet values in a range of a googlesheets spreadsheet, overwriting the existing cell data. Returns a ValueRange with the updated range, majorDimension, and values. Required: spreadsheet_id, range, values.
  • google_sheets_spreadsheets_values_clearClear values from a range in a googlesheets spreadsheet. Returns the confirmed A1 range that was cleared. Required: spreadsheet_id, range.
  • create_a_google_sheets_spreadsheets_sheets_copy_toCopy a single sheet from one Google Sheets spreadsheet to another spreadsheet. Returns the properties of the newly created sheet, including its sheetId and title. Required: spreadsheet_id, sheet_id, and the destination spreadsheet's id in the request body.
  • get_single_google_sheets_spreadsheets_developer_metadatum_by_idGet a single developer metadata entry in a googlesheets spreadsheet by id. Returns the metadata object including its metadataId, metadataKey, metadataValue, location, and visibility. Required: spreadsheet_id and id.
  • list_all_google_sheets_spreadsheets_developer_metadata_searchSearch all developer metadata in a Google Sheets spreadsheet matching the specified DataFilters. Returns: metadataId, metadataKey, metadataValue, location, visibility. If none match, an empty response is returned. Required: spreadsheet_id.
  • update_a_google_sheets_spreadsheets_values_batch_by_idUpdate values in one or more ranges of a Google Sheets spreadsheet in a single batch call. Returns one result per requested range with spreadsheetId, updatedRange, updatedCells, and updatedData. Required: spreadsheet_id, valueInputOption, and data (each entry pairing an A1 range with the values to write).
  • google_sheets_spreadsheets_values_batch_clearBatch-clear values from one or more ranges of a googlesheets spreadsheet in a single call. Returns the cleared ranges as a list of A1 notation strings. Required: spreadsheet_id and ranges.
  • list_all_google_sheets_spreadsheets_values_batch_data_filterRead one or more ranges of values from a googlesheets spreadsheet that match the specified data filters. Returns each matching range with its A1 range, majorDimension, and cell values. Required: spreadsheet_id.
  • update_spreadsheets_values_batch_data_filter_by_idSet values in one or more ranges of a googlesheets spreadsheet matching the specified data filters. Returns the written ranges with their A1 range, majorDimension, and values. Required: id (spreadsheet_id).
  • google_sheets_spreadsheets_values_batch_data_filter_clearClear one or more ranges of values in a googlesheets spreadsheet by specifying DataFilters. Returns: spreadsheetId, clearedRanges. Required: spreadsheet_id, dataFilters.
  • get_single_google_sheets_value_by_idGet a range of cell values from a Google Sheets spreadsheet. Returns the values read from the requested range as an array of rows, each row an array of cell values, with empty trailing rows and columns omitted. Required: spreadsheet_id, range.

AMCP serverno code

For any MCP client

One URL per connected Google Sheets 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 Sheets 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 Sheets is in 3 unified APIs. One call for every app in a category.

Ask for me the same way for Google Sheets and every other User Directory app. Truto makes Google Sheets’s own call and returns the same data shape.

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

Google Sheets is mappedSame call, same data shapeStart free

Unified File Storage API8 resources

  • 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
  • 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 Sheets data on a schedule. Sent to your webhook.

A sync job reads Google Sheets 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 Sheets endpoint. With the Truto CLI.

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

On every plan, including Free. Truto CLI

For your own AI tools

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

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

For your product

Ship Google Sheets tools in your product

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

Start free with Google Sheets

Rather talk it through? Book a demo

Elaichi

For your own team

Use Google Sheets in your own AI

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

Works in

Google Sheets on Elaichi

From the team behind Truto · 14-day free trial

Use cases

Why integrate with Google Sheets.

  1. Replace CSV exports with live Google Sheets sync

    Instead of forcing users to repeatedly download and re-import CSV files, your SaaS product can push data directly into a Google Sheet that stays current. Finance teams, marketers, and ops managers get a living spreadsheet they can build charts and pivot tables on top of.

  2. Ingest data from user-managed spreadsheets

    Many users already maintain prospect lists, inventory trackers, or contact databases in Google Sheets. Your product can read from these sheets to import records, detect new rows, and keep your system in sync — replacing clunky file upload flows with a seamless connected experience.

  3. Log events and activity in real time

    Every time something meaningful happens in your product — a form submission, a payment failure, a deal closing — your integration can append a row to a user's Google Sheet. This gives operations teams an always-up-to-date audit trail without leaving their spreadsheet.

  4. Enable two-way sync with stateful row tracking

    Using Developer Metadata, your integration can tag individual rows and columns with internal record IDs. This means even if a user sorts, reorders, or renames columns, your product can find and update the right cells — enabling robust two-way synchronization between your app and Sheets.

  5. Provision pre-built reporting templates for new users

    Maintain a master template spreadsheet with pre-configured formatting, formulas, and charts. When a user activates the integration, clone the template into their Drive and populate it with their data — delivering a polished reporting experience out of the box.

What you can build

Ship these with Truto and Google Sheets.

  • One-click live data export to Sheets

    Let users create a Google Sheet directly from your app and continuously push analytics, transactions, or pipeline data into it using batch value updates.

  • Spreadsheet-based data import and onboarding

    Replace your CSV upload flow by letting users connect a Google Sheet, then read their data via range-based value retrieval to create records in your product.

  • Real-time event logging via row append

    Automatically append a new row to a user's designated Sheet every time a key event fires in your product — new sign-ups, failed charges, completed tasks — with no user intervention needed.

  • Two-way record sync with Developer Metadata

    Attach hidden metadata to Sheet rows linking them to your internal record IDs, then search and update specific cells when records change — even if the user has reorganized the spreadsheet.

  • Template-based report provisioning

    Clone a pre-formatted template sheet with charts and pivot tables into a user's Drive on integration setup, then populate it with their live data on a recurring schedule.

  • Bulk data refresh with clear-and-rewrite

    Clear an existing data range and rewrite it with fresh data on a daily or hourly cadence, so users' custom formulas and charts always reference up-to-date information without accumulating stale rows.

Security

Your customers’ Google Sheets 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.

  • Truto managed 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 Sheets account

    Use Truto’s frontend SDK to connect your customer’s Google Sheets 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 Sheets

    Truto’s Proxy API is a 1-to-1 mapping of the Google Sheets API. You call us, we call Google Sheets, 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 Sheets’s pagination into unified cursor-based pagination. Data is always in the result attribute.

FAQs

Common questions about Google Sheets on Truto.

What authentication method does the Google Sheets integration use?

Truto handles OAuth 2.0 authentication with Google on behalf of your end users. Your users go through a standard Google consent flow to grant access to their Sheets, and Truto manages token storage, refresh, and expiry so you never deal with auth plumbing directly.

Can I read and write data in bulk across multiple ranges or sheets?

Yes. The integration supports batch operations including batch value updates, batch clears, and batch reads with data filters. This lets you pull from or write to multiple ranges in a single API call, reducing latency and API overhead significantly.

How does the integration handle users reorganizing their spreadsheets?

The Developer Metadata endpoints let you attach hidden metadata (like your internal record IDs) to specific rows, columns, or cells. You can then search for this metadata to locate the correct cells regardless of how the user has sorted, filtered, or restructured the sheet — making your sync resilient to layout changes.

Is there a Unified API for Google Sheets through Truto?

There is no Unified API for Google Sheets yet. The integration is available through Truto's native API proxy, giving you direct access to all supported Google Sheets API operations — including spreadsheet CRUD, value reads and writes, batch operations, developer metadata, and sheet copying.

What specific operations are supported on spreadsheet data?

You can list and retrieve spreadsheets, create new spreadsheets, read values from ranges, append new values, update existing values (single and batch), clear values (single, batch, and filtered batch), copy sheets between spreadsheets, and read/search developer metadata. All operations are accessible through Truto's tools.

How do I handle appending rows without overwriting existing data?

The create_a_googlesheets_spreadsheets_value tool appends data after the last row in a specified range. You don't need to calculate the next empty row — the API handles this safely, making it ideal for event logging and incremental data export workflows.

Google Sheets

Get Google Sheets integrated into your app

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