Enable Google Workspace APIs

  • Before using Google APIs, you must enable them within a Google Cloud project, which can be created if you don't have one.

  • You can enable Google APIs through the Google Cloud console by navigating to the Product Library, selecting the desired API, and clicking "Enable".

  • Alternatively, use the Google Cloud CLI by running the gcloud services enable API_SERVICE_ID command, replacing API_SERVICE_ID with the specific API's identifier.

  • A comprehensive table lists various Google Workspace APIs along with their corresponding console links and CLI commands for enabling them within your project.

  • After enabling the necessary APIs, you should understand the authentication and authorization processes for using Google Workspace APIs.

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.

To enable an API in your Cloud project:

Google Cloud console

  1. In the Google Cloud console, go to Menu > More products > Google Workspace > Product Library.

    Go to Product Library

  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).
  2. Run the services enable command, specifying which API service to enable.

    gcloud services enable API_SERVICE_ID

(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 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 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

Use the following Google Cloud console links or the Google Cloud Command Line Interface (CLI) to enable specific Google Workspace APIs in your Cloud project.

Next step

Learn how authentication and authorization works for Google Workspace APIs.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2026-01-26 UTC.