> For the complete documentation index, see [llms.txt](https://docs.fastn.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fastn.ai/connectors/catalog/productivity/google-sheets.md). Agents can also search and read this documentation through its [MCP server](https://docs.fastn.ai/~gitbook/mcp).

# Google Sheets

Google Sheets is an online spreadsheet app. Read, append, update and clear cell values, and add sheets and named ranges.

![Google Sheets logo](https://1255842839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iSr2Tx8FvvuoLPncziH%2Fuploads%2Fgit-blob-ba6eace8d8cea44ff22fec0b6a5ce9c661b9e700%2Fgoogle-sheets.png?alt=media)

|                    |                                                                                    |
| ------------------ | ---------------------------------------------------------------------------------- |
| **Category**       | [Productivity](https://docs.fastn.ai/connectors/catalog/productivity.md)           |
| **Website**        | [sheets.google.com](https://sheets.google.com)                                     |
| **Authentication** | OAuth 2.0                                                                          |
| **Slug**           | `googleSheets`                                                                     |
| **On fastn.ai**    | [Embed Google Sheets in your product](https://fastn.ai/integrations/google-sheets) |

## Setup

Your customers sign in to Google Sheets through Fastn's own OAuth app, so nothing needs setting up first. To show your own app on the consent screen instead, add your OAuth app on the connector's **Auth** tab under **Manage providers**.

## Connect in Fastn

Your customers connect Google Sheets from your widget. To connect an account yourself:

1. Go to **Build → Integrations → Connectors** and search for **Google Sheets**.
2. Select **Connect** on the Google Sheets card.

   <figure><img src="https://1255842839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iSr2Tx8FvvuoLPncziH%2Fuploads%2Fgit-blob-586dd03cdc0c6904263f58928d7a531eae2f85df%2Fconnect-search.png?alt=media" alt="The Connectors page in Fastn with ServiceNow typed in the search box and the ServiceNow card showing a Connect button"><figcaption><p>Search for the connector, then select Connect on its card. ServiceNow is shown here.</p></figcaption></figure>
3. Keep the **Default** auth provider, or choose your own OAuth app if you added one. Pick the **Scopes** you need, select **Authorize**, then sign in to Google Sheets and approve access in the window that opens.

   <figure><img src="https://1255842839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iSr2Tx8FvvuoLPncziH%2Fuploads%2Fgit-blob-0e2bbdd7109cec207402cf6883484b8525b7fbf5%2Fconnect-oauth.png?alt=media" alt="The Connect Salesforce dialog for OAuth 2.0 with the Default auth provider, an optional account name, the Scopes selector and an Authorize button"><figcaption><p>A connect form for OAuth 2.0. Salesforce is shown here.</p></figcaption></figure>
4. Check that the connection appears under **Operate → Connections** with the status `Active`. Your workflows can now use Google Sheets's actions.

For more detail, see [Connect an app](https://docs.fastn.ai/build/integrations/connectors/connect-an-app.md).

## Actions

<table><thead><tr><th width="240">Action</th><th width="260">Slug</th><th>What it does</th></tr></thead><tbody><tr><td>Add Named Range</td><td><code>addNamedRange</code></td><td>Create a named range in a spreadsheet for easy cell range referencing.</td></tr><tr><td>Add Sheet</td><td><code>addSheet</code></td><td>Add a new sheet tab to an existing spreadsheet.</td></tr><tr><td>Append Values</td><td><code>appendValues</code></td><td>Append rows to a spreadsheet after the last row with data in the given range.</td></tr><tr><td>Batch Clear Values</td><td><code>batchClearValues</code></td><td>Clear values from multiple ranges in a single request.</td></tr><tr><td>Batch Clear Values By Data Filter</td><td><code>batchClearValuesByDataFilter</code></td><td>Clears one or more ranges of values selected by the supplied dataFilters. Only values are cleared; formatting and other properties are preserved.</td></tr><tr><td>Batch Get Values</td><td><code>batchGetValues</code></td><td>Read values from multiple ranges in a single request.</td></tr><tr><td>Batch Get Values By Data Filter</td><td><code>batchGetValuesByDataFilter</code></td><td>Returns one or more ranges of values matched by the supplied dataFilters, with control over major dimension and value/date rendering.</td></tr><tr><td>Batch Update Spreadsheet</td><td><code>batchUpdateSpreadsheet</code></td><td>Generic power action: applies one or more update Requests to the spreadsheet atomically (addSheet, deleteSheet, updateCells, formatting, charts, etc.). Pass a bare requests array. The specific addSheet/deleteSheet actions wrap single request types.</td></tr><tr><td>Batch Update Values</td><td><code>batchUpdateValues</code></td><td>Write values to multiple ranges in a single request.</td></tr><tr><td>Batch Update Values By Data Filter</td><td><code>batchUpdateValuesByDataFilter</code></td><td>Sets values in one or more ranges selected by dataFilters. Each data entry pairs a dataFilter with the values to write and the major dimension.</td></tr></tbody></table>

<details>

<summary>View 15 more actions</summary>

<table><thead><tr><th width="240">Action</th><th width="260">Slug</th><th>What it does</th></tr></thead><tbody><tr><td>Clear Values</td><td><code>clearValues</code></td><td>Clear all values in a specific range of a spreadsheet, leaving formatting intact.</td></tr><tr><td>Copy Sheet To</td><td><code>copySheetTo</code></td><td>Copy a sheet tab from one spreadsheet to another spreadsheet.</td></tr><tr><td>Create Spreadsheet</td><td><code>createSpreadsheet</code></td><td>Create a new Google Sheets spreadsheet with a given title.</td></tr><tr><td>Delete Named Range</td><td><code>deleteNamedRange</code></td><td>Delete a named range from a spreadsheet by its ID.</td></tr><tr><td>Delete Sheet</td><td><code>deleteSheet</code></td><td>Delete a sheet tab from a spreadsheet by its sheetId (numeric ID, not title).</td></tr><tr><td>Duplicate Sheet</td><td><code>duplicateSheet</code></td><td>Duplicate an existing sheet tab within the same spreadsheet.</td></tr><tr><td>Get Developer Metadata</td><td><code>getDeveloperMetadata</code></td><td>Returns the developer metadata with the specified ID from the given spreadsheet.</td></tr><tr><td>Get Spreadsheet</td><td><code>getSpreadsheet</code></td><td>Get full spreadsheet metadata including all sheet tabs, named ranges, and properties.</td></tr><tr><td>Get Spreadsheet By Data Filter</td><td><code>getSpreadsheetByDataFilter</code></td><td>Returns the spreadsheet at the given ID, selecting subsets of data via dataFilters (a1Range, gridRange, or developerMetadataLookup). Optionally includes grid cell data.</td></tr><tr><td>Get Values</td><td><code>getValues</code></td><td>Read cell values from a specific range in a spreadsheet. Range format: 'Sheet1!A1:B10'.</td></tr><tr><td>Rename Sheet</td><td><code>renameSheet</code></td><td>Rename a sheet tab by its sheetId.</td></tr><tr><td>Search Developer Metadata</td><td><code>searchDeveloperMetadata</code></td><td>Returns all developer metadata matching the criteria described by the supplied dataFilters (developerMetadataLookup, a1Range, or gridRange).</td></tr><tr><td>TEMP watch spreadsheet check (delete me)</td><td><code>tempWatchSpreadsheetCheck</code></td><td>Temporary B185 probe: can a Sheets connection open a Drive watch channel on a spreadsheet. Delete after the check.</td></tr><tr><td>Update Named Range</td><td><code>updateNamedRange</code></td><td>Update the name or cell range of an existing named range.</td></tr><tr><td>Update Values</td><td><code>updateValues</code></td><td>Write values to a specific range in a spreadsheet, overwriting existing data.</td></tr></tbody></table>

</details>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.fastn.ai/connectors/catalog/productivity/google-sheets.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
