Skip to main content

Setup Guide

This guide walks you through creating a Google Cloud Platform project and obtaining the OAuth 2.0 credentials required to use the Gmail connector.

Step 1: Create a Google Cloud Platform project

  1. Open the Google Cloud Platform Console.

  2. Select an existing project or create a new one from the project drop-down menu.

    GCP Console project view

Step 2: Enable Gmail API

  1. Navigate to the Library tab and enable the Gmail API.

    Enable Gmail API

  1. Select the OAuth consent screen tab in the Google Cloud Platform console.

    Consent screen

  2. Provide a name for the consent application and save your changes.

Step 4: Create an OAuth client

  1. Navigate to the Credentials tab and select Create credentialsOAuth client ID.

    Create credentials

  2. Fill in the following fields and select Create:

    FieldValue
    Application typeWeb Application
    NameGmailConnector
    Authorized redirect URIshttps://developers.google.com/oauthplayground
  3. Save the provided Client ID and Client secret.

Step 5: Get the access and refresh tokens

note

It is recommended to use the OAuth 2.0 playground to obtain the tokens.

  1. Configure the OAuth 2.0 playground with your client ID and client secret.

    OAuth playground

  2. Authorize the Gmail APIs (select all scopes except the metadata scope).

    Authorize APIs

  3. Exchange the authorization code for tokens.

    Exchange tokens