← Back

GMail Connection Setup

GMail Plugin Admin Setup

To enable users to connect their GMail accounts, you must first configure a Google Cloud Platform project and provide the OAuth credentials below.

Steps:

  1. Go to the Google Cloud Console:

  2. Enable the GMail API:

    • In the navigation menu, go to APIs & Services > Library.
    • Search for "Gmail API" and click Enable.
  3. Configure the OAuth Consent Screen:

    • Go to APIs & Services > OAuth consent screen.
    • Choose External user type and click Create.
    • Fill in the required app information (App name, User support email, etc.).
    • Under Authorized domains, add toolstream.dev.
    • Save and continue.
    • On the Scopes page, you do not need to add any scopes here. The application will request them dynamically.
    • Add test users if your app is in testing mode.
    • Review the summary and save.
  4. Create OAuth 2.0 Client ID:

    • Go to APIs & Services > Credentials.
    • Click + CREATE CREDENTIALS and select OAuth client ID.
    • For Application type, select Web application.
    • Give it a name, e.g., "Toolstream Web Client".
    • Under Authorized redirect URIs, click + ADD URI and enter the following value:
      • https://toolstream.dev/ui/connections/oauth/callback/gmail_tool
    • Click Create.
  5. Copy Credentials:

    • A dialog will appear showing your Client ID and Client Secret.
    • Copy these values and paste them into the fields on this admin page.