Before using Google APIs, you need to turn them on in a Google Cloud project.
You can turn on one or more APIs in a single Google Cloud project.

If you don't already have a Google Cloud project, see
[Create a Cloud project](https://developers.google.com/workspace/guides/create-project).

To enable an API in your Cloud project:

### Google Cloud console

1. In the Google Cloud console, go to Menu \> **APIs \& Services** \> **Library** \> **Google Workspace** .

   [Go to API Library](https://console.cloud.google.com/apis/library/browse?filter=category:gsuite)
2. Click the API that you want to turn on.
3. Click **Enable**.
4. To enable more APIs, repeat these steps.

### Google Cloud CLI

1. Install or open the [Google Cloud Command Line Interface (CLI)](https://cloud.google.com/cli).
2. Run the [`services enable`](https://cloud.google.com/sdk/gcloud/reference/services) command, specifying which API service to enable.

   ```
   gcloud services enable API_SERVICE_ID
   ```

## Pre-enabled APIs in Google AI Studio

> [!NOTE]
> **Note:** As an alternative to manually creating a Cloud project and enabling APIs, you can build web apps in [Google AI Studio](https://aistudio.google.com/apps) with either a no-cost, Google-managed [Starter Tier](https://docs.cloud.google.com/docs/starter-tier) project for eligible Google Accounts or a user-managed Cloud project. For details on this setup path, see [Build web apps in Google AI Studio](https://developers.google.com/workspace/guides/get-started#ai-studio) and [Deploy web apps from Google AI Studio](https://aistudio.google.com/docs/aistudio-deploying).

When you build web apps in Google AI Studio, you do not need to manually
enable supported Google Workspace APIs in the Google Cloud console. The
following APIs are pre-enabled in your Google-managed Starter Tier project:

- Google Calendar API (`calendar-json.googleapis.com`)
- Google Docs API (`docs.googleapis.com`)
- Google Drive API (`drive.googleapis.com`)
- Google Forms API (`forms.googleapis.com`)
- Gmail API (`gmail.googleapis.com`)
- Google Picker API (`picker.googleapis.com`)
- Google Sheets API (`sheets.googleapis.com`)
- Google Slides API (`slides.googleapis.com`)
- Google Tasks API (`tasks.googleapis.com`)

In a Starter Tier project, Google Workspace APIs support client-side
OAuth 2.0 only. For example, the Google Picker API uses OAuth 2.0 access
tokens instead of a developer API key, and service accounts or storing OAuth
client secrets in Secret Manager are not supported. If you need
server-side credentials, API keys, or additional APIs such as the
Admin SDK API or Google Apps Script API, you can
[upgrade your Starter Tier project](https://docs.cloud.google.com/docs/starter-tier#upgrade) to a standard
Cloud project and configure them manually.

For details on Starter Tier quotas and features, see
[Starter Tier overview](https://docs.cloud.google.com/docs/starter-tier) and
[Deploy web apps from Google AI Studio](https://aistudio.google.com/docs/aistudio-deploying).

## (Optional) Try Google Workspace APIs in experimental apps

If you're experimenting with Google Workspace, use the following
shortcut, which enables popular Google Workspace APIs, and creates
OAuth credentials that you can use.

If you're developing an app that accesses user information, you must
[configure the OAuth consent screen](https://developers.google.com/workspace/guides/configure-oauth-consent)
before releasing your app.

Click this button to select or create a Google Cloud project, and automatically
enable the Workspace APIs:

Enable the Workspace APIs
In resulting dialog, click **Download client configuration** and save `credentials.json` to your working directory.

[See the Google Workspace APIs explorer](https://developers.google.com/workspace/explore) for a
comprehensive list of all the available APIs, and to try specific methods from
your browser.

#### Enabled APIs (click to expand)

The button enables the following APIs:

- Admin SDK API
- Apps Script API
- Calendar API
- Chat API
- Classroom API
- Docs API
- Drive API
- Forms API
- Gmail API
- Google Workspace add-ons API
- Google Keep API
- Meet REST API
- Sheets API
- Slides API

## Google Workspace APIs

Use the following Google Cloud console links or the
[Google Cloud Command Line Interface (CLI)](https://cloud.google.com/cli)
to enable specific Google Workspace APIs in your Cloud project.

|---|---|
| ### [Admin SDK API](https://developers.google.com/workspace/admin) | [Enable Admin SDK API](https://console.cloud.google.com/apis/enableflow;apiid=admin.googleapis.com) ```` ``` gcloud services enable admin.googleapis.com ``` ```` |
| ### [Alert Center API](https://developers.google.com/workspace/admin/alertcenter) | [Enable Alert Center API](https://console.cloud.google.com/apis/enableflow;apiid=alertcenter.googleapis.com) ```` ``` gcloud services enable alertcenter.googleapis.com ``` ```` |
| ### [Apps Script API](https://developers.google.com/apps-script) | [Enable Apps Script API](https://console.cloud.google.com/apis/enableflow;apiid=script.googleapis.com) ```` ``` gcloud services enable script.googleapis.com ``` ```` |
| ### [CalDAV API](https://developers.google.com/workspace/calendar/caldav) | [Enable CalDAV API](https://console.cloud.google.com/apis/enableflow;apiid=caldav.googleapis.com) ```` ``` gcloud services enable caldav.googleapis.com ``` ```` |
| ### [Calendar API](https://developers.google.com/workspace/calendar) | [Enable Calendar API](https://console.cloud.google.com/apis/enableflow;apiid=calendar-json.googleapis.com) ```` ``` gcloud services enable calendar-json.googleapis.com ``` ```` |
| ### [Chat API](https://developers.google.com/chat) | [Enable Chat API](https://console.cloud.google.com/apis/enableflow;apiid=chat.googleapis.com) ```` ``` gcloud services enable chat.googleapis.com ``` ```` |
| ### [Classroom API](https://developers.google.com/workspace/classroom) | [Enable Classroom API](https://console.cloud.google.com/apis/enableflow;apiid=classroom.googleapis.com) ```` ``` gcloud services enable classroom.googleapis.com ``` ```` |
| ### [Cloud Identity API](https://cloud.google.com/identity/docs) | [Enable Cloud Identity API](https://console.cloud.google.com/apis/enableflow;apiid=cloudidentity.googleapis.com) ```` ``` gcloud services enable cloudidentity.googleapis.com ``` ```` |
| ### [Cloud Search API](https://developers.google.com/workspace/cloud-search) | [Enable Cloud Search API](https://console.cloud.google.com/apis/enableflow;apiid=cloudsearch.googleapis.com) ```` ``` gcloud services enable cloudsearch.googleapis.com ``` ```` |
| ### [Docs API](https://developers.google.com/workspace/docs) | [Enable Docs API](https://console.cloud.google.com/apis/enableflow;apiid=docs.googleapis.com) ```` ``` gcloud services enable docs.googleapis.com ``` ```` |
| ### [Drive API](https://developers.google.com/drive) | [Enable Drive API](https://console.cloud.google.com/apis/enableflow;apiid=drive.googleapis.com) ```` ``` gcloud services enable drive.googleapis.com ``` ```` |
| ### [Drive Activity API](https://developers.google.com/drive/activity) | [Enable Drive Activity API](https://console.cloud.google.com/apis/enableflow;apiid=driveactivity.googleapis.com) ```` ``` gcloud services enable driveactivity.googleapis.com ``` ```` |
| ### [Drive Labels API](https://developers.google.com/drive/labels) | [Enable Drive Labels API](https://console.cloud.google.com/apis/enableflow;apiid=drivelabels.googleapis.com) ```` ``` gcloud services enable drivelabels.googleapis.com ``` ```` |
| ### [Forms API](https://developers.google.com/workspace/forms/api) | [Enable Forms API](https://console.cloud.google.com/apis/enableflow;apiid=forms.googleapis.com) ```` ``` gcloud services enable forms.googleapis.com ``` ```` |
| ### [Gmail API](https://developers.google.com/workspace/gmail) | [Enable Gmail API](https://console.cloud.google.com/apis/enableflow;apiid=gmail.googleapis.com) ```` ``` gcloud services enable gmail.googleapis.com ``` ```` |
| ### [Groups Migration API](https://developers.google.com/workspace/admin/groups-migration) | [Enable Groups Migration API](https://console.cloud.google.com/apis/enableflow;apiid=groupsmigration.googleapis.com) ```` ``` gcloud services enable groupsmigration.googleapis.com ``` ```` |
| ### [Groups Settings API](https://developers.google.com/workspace/admin/groups-settings) | [Enable Groups Settings API](https://console.cloud.google.com/apis/enableflow;apiid=groupssettings.googleapis.com) ```` ``` gcloud services enable groupssettings.googleapis.com ``` ```` |
| ### [Google Workspace add-ons API](https://developers.google.com/workspace/add-ons) | [Enable Google Workspace add-ons API](https://console.cloud.google.com/apis/enableflow;apiid=gsuiteaddons.googleapis.com) ```` ``` gcloud services enable gsuiteaddons.googleapis.com ``` ```` |
| ### [Google Keep API](https://developers.google.com/workspace/keep/api) | [Enable Google Keep API](https://console.cloud.google.com/apis/enableflow;apiid=keep.googleapis.com) ```` ``` gcloud services enable keep.googleapis.com ``` ```` |
| ### [Enterprise License Manager API](https://developers.google.com/workspace/admin/licensing) | [Enable Enterprise License Manager API](https://console.cloud.google.com/apis/enableflow;apiid=licensing.googleapis.com) ```` ``` gcloud services enable licensing.googleapis.com ``` ```` |
| ### [Marketplace API](https://developers.google.com/workspace/marketplace/reference/rest) | [Enable Marketplace API](https://console.cloud.google.com/apis/enableflow;apiid=appsmarket.googleapis.com) ```` ``` gcloud services enable appsmarket.googleapis.com ``` ```` |
| ### [Marketplace SDK](https://developers.google.com/workspace/marketplace) | [Enable Marketplace SDK](https://console.cloud.google.com/apis/enableflow;apiid=appsmarket-component.googleapis.com) ```` ``` gcloud services enable appsmarket-component.googleapis.com ``` ```` |
| ### [Meet REST API](https://developers.google.com/meet) | [Enable Meet REST API](https://console.cloud.google.com/apis/enableflow;apiid=meet.googleapis.com) ```` ``` gcloud services enable meet.googleapis.com ``` ```` |
| ### [People API](https://developers.google.com/people) | [Enable People API](https://console.cloud.google.com/apis/enableflow;apiid=people.googleapis.com) ```` ``` gcloud services enable people.googleapis.com ``` ```` |
| ### [Postmaster Tools API](https://developers.google.com/workspace/gmail/postmaster) | [Enable Postmaster Tools API](https://console.cloud.google.com/apis/enableflow;apiid=gmailpostmastertools.googleapis.com) ```` ``` gcloud services enable gmailpostmastertools.googleapis.com ``` ```` |
| ### [Reseller API](https://developers.google.com/workspace/admin/reseller) | [Enable Reseller API](https://console.cloud.google.com/apis/enableflow;apiid=reseller.googleapis.com) ```` ``` gcloud services enable reseller.googleapis.com ``` ```` |
| ### [Sheets API](https://developers.google.com/workspace/sheets) | [Enable Sheets API](https://console.cloud.google.com/apis/enableflow;apiid=sheets.googleapis.com) ```` ``` gcloud services enable sheets.googleapis.com ``` ```` |
| ### [Slides API](https://developers.google.com/workspace/slides) | [Enable Slides API](https://console.cloud.google.com/apis/enableflow;apiid=slides.googleapis.com) ```` ``` gcloud services enable slides.googleapis.com ``` ```` |
| ### [Tasks API](https://developers.google.com/workspace/tasks) | [Enable Tasks API](https://console.cloud.google.com/apis/enableflow;apiid=tasks.googleapis.com) ```` ``` gcloud services enable tasks.googleapis.com ``` ```` |
| ### [Vault API](https://developers.google.com/workspace/vault) | [Enable Vault API](https://console.cloud.google.com/apis/enableflow;apiid=vault.googleapis.com) ```` ``` gcloud services enable vault.googleapis.com ``` ```` |

## Next step

[Learn how authentication and authorization works](https://developers.google.com/workspace/guides/auth-overview)
for Google Workspace APIs.