> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xpander.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Google Sheets

> Connect Google Sheets to xpander and give agents its 17 actions: how to sign in and connect it, and which actions to hold for approval.

HTTP API connector

An HTTP API described by an OpenAPI spec, not an MCP server. Calls go to `https://sheets.googleapis.com` and carry an OAuth 2.0 token obtained with **Sign in with Google** on the cloud edition, or an API key or custom header on a self-hosted installation, which offers no sign-in flow.

## What the skill can do

API connector: 17 actions, as they appear in the skill panel. 13 of them create, change or delete something in Google Sheets; mark those under **These actions need approval** when you add the skill to an agent.

* **Values management** (5): Append Values To Range, Get Values From Range, Set Values In Range, Get Values From Multiple Ranges, Spreadsheets Management Batch Update Spreadsheet
* **Spreadsheets management** (4): Create New Spreadsheet, Get Spreadsheet By Id, Values Management Get Values By Data Filter, Values Management Update Values In Multiple Ranges
* **Cellcontent management** (3): Cell Content Clear Values From Range, Cell Content Clear Values From Multiple Ranges, Cell Content Clear Values By Data Filter
* **Developermetadata management** (2): Metadata Management Get Developer Metadata By Id, Metadata Management Search Developer Metadata
* **Datafilter management** (2): Values Management Update Values By Data Filter, Spreadsheets Management Get Spreadsheet By Data Filter
* **Sheets management** (1): Copy Sheet To Another Spreadsheet

## Authentication Options

> [tab] Built-in xpander Auth
>
> The simplest way to connect Google Sheets is by using xpander's built-in authentication:
>
> 1. In xpander Chat, open the agent's settings and click **Add skill**.
>
> 2. Search for **Google Sheets** and select it.
>
> 3. Click **Sign in with Google Sheets**.
>
> 4. Grant xpander permission to access your account.
>
> 5. Your Google Sheets integration is now ready to use.
>
> > [!NOTE]
> >
> > This method is recommended for most users. xpander securely manages your OAuth tokens without exposing any credentials.

> [tab] API Access
>
> ### Generate a Google Sheets API Key
>
> 1. Log in to your [Google Cloud Console](https://console.cloud.google.com/).
>
> 2. Create a new project or select an existing one.\\
>
>    ![Img 1](https://mintcdn.com/xpanderai-099931d1/pzRhrv6nqUySeaGz/images/connectors/google-sheets/img_1.png?fit=max\&auto=format\&n=pzRhrv6nqUySeaGz\&q=85\&s=8b90419df0359570468e90b137ec7e49)
>
> 3. Go to the [Google Cloud API Library](https://console.cloud.google.com/apis/library).\\
>
>    ![Img 2](https://mintcdn.com/xpanderai-099931d1/pzRhrv6nqUySeaGz/images/connectors/google-sheets/img_2.png?fit=max\&auto=format\&n=pzRhrv6nqUySeaGz\&q=85\&s=9c757d9356d9de99b195a705d1a2a4b9)
>
> 4. Search for and select **Google Sheets API**, then click **Enable**.
>
> 5. In the sidebar, go to **Credentials**.
>
> 6. Click **Create credentials**, and select **API key**.\\
>
>    ![Img 3](https://mintcdn.com/xpanderai-099931d1/pzRhrv6nqUySeaGz/images/connectors/google-sheets/img_3.png?fit=max\&auto=format\&n=pzRhrv6nqUySeaGz\&q=85\&s=a0f7067090546ba4471e9cb9012cf650)
>
> 7. Restrict the API key to Google Sheets API only (optional but recommended).\\
>
>    ![Img 4](https://mintcdn.com/xpanderai-099931d1/pzRhrv6nqUySeaGz/images/connectors/google-sheets/img_4.png?fit=max\&auto=format\&n=pzRhrv6nqUySeaGz\&q=85\&s=8a99c84882187d3fe8dad15d55750819)
>
> ### Connect Google Sheets in xpander
>
> 1. In xpander Chat, open the agent's settings and click **Add skill**.
>
> 2. Search for **Google Sheets** and select it.
>
> 3. Click **Other auth options**.
>
> 4. Enter a **connection name**, e.g., "xpander-google-sheets".
>
> 5. Choose **Organization** access (one shared account) or **Personal** (your own account, so the agent acts with your permissions where systems allow). On an agent other people use, a personal connection runs their requests as you unless the binding requires each person's own sign-in; see [whose credential a shared agent uses](https://docs.xpander.ai/use/agents/permissions.md#whose-credential-a-shared-agent-uses).
>
> 6. Select **API Key** as the authentication method.
>
> 7. Paste the Google Sheets API key into the provided field.
>
> 8. Choose **Basic** as the **Type**.
>
> 9. Click **Connect**.
>
> > [!WARNING]
> >
> > API keys provide limited functionality and are best for read-only operations on public files. For full access, use OAuth methods.

## Give an agent the Google Sheets skill

Once Google Sheets is connected, any agent you can edit may be given the skill: open the agent's settings, click **Add skill**, and choose **Google Sheets**. The skill panel lists the Google Sheets actions by group. Enable only the groups the agent needs, and mark the actions that should wait for a named person's sign-off under **These actions need approval**. Which skills exist for your organization, and who may add them, is decided by your admins; see [Skills](https://docs.xpander.ai/use/skills.md).

## Related Resources

* [Skills](https://docs.xpander.ai/use/skills.md)
* [Google Sheets API Documentation](https://developers.google.com/workspace/sheets/api/guides/concepts)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.