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

# Google oauth

The **Google API Integration** page allows you to connect your platform with Google services using OAuth authentication. This enables users to securely link their Google accounts and use features such as Google Sheets, Calendar, and Contacts within the platform.

This integration is essential for automation, data synchronization, and workflow enhancements.

***

## What This Is Used For

Once configured, users can connect their Google accounts to enable:

* **Google Sheets** → read/write data for automation and syncing
* **Google Contacts** → import and sync contacts into the platform
* **Google Calendar** → create and manage events via automation
* **User Profile Access** → fetch basic user information

These integrations help extend platform capabilities and enable real-time workflows.

***

## Required OAuth Scopes

The following Google OAuth scopes are required for full functionality:

* [https://www.googleapis.com/auth/spreadsheets](https://www.googleapis.com/auth/spreadsheets)\
  → Read and write Google Sheets
* [https://www.googleapis.com/auth/contacts](https://www.googleapis.com/auth/contacts)\
  → Read and write Google Contacts
* [https://www.googleapis.com/auth/calendar](https://www.googleapis.com/auth/calendar)\
  → Read and write Google Calendar
* [https://www.googleapis.com/auth/userinfo.email](https://www.googleapis.com/auth/userinfo.email)\
  → Access user email
* [https://www.googleapis.com/auth/userinfo.profile](https://www.googleapis.com/auth/userinfo.profile)\
  → Access user profile information

These permissions are required for the platform to interact with Google services on behalf of the user.

***

## How to Configure Google OAuth

### Step 1: Go to Google Cloud Console

Open:  [https://console.cloud.google.com/](https://console.cloud.google.com/)

### Step 2: Create or Select a Project

* Create a new project OR Select an existing project
  <Frame>
    <img src="https://mintcdn.com/mail2skyfreegmailcom/gD5fsE_Fmldf0VFl/images/image-45.png?fit=max&auto=format&n=gD5fsE_Fmldf0VFl&q=85&s=c949fb3117a878ff26b3f142c18bd782" alt="Image" width="592" height="550" data-path="images/image-45.png" />
  </Frame>

### Step 3: Enable Required APIs

Go to **APIs & Services → Library** and enable:

<Frame>
  <img src="https://mintcdn.com/mail2skyfreegmailcom/gD5fsE_Fmldf0VFl/images/image-47.png?fit=max&auto=format&n=gD5fsE_Fmldf0VFl&q=85&s=443aca199e7de5338420fc898d1a6e86" alt="Image" width="1557" height="238" data-path="images/image-47.png" />
</Frame>

* Google Sheets API
* Google Calendar API
* Google People API (for contacts)
* Google Maps API (for Inbox)
* Google Translate API (for Inbox)

<Frame>
  <img src="https://mintcdn.com/mail2skyfreegmailcom/gD5fsE_Fmldf0VFl/images/image-46.png?fit=max&auto=format&n=gD5fsE_Fmldf0VFl&q=85&s=84415bbc6c9628111fa7ac98c6b2f69a" alt="Image" width="723" height="347" data-path="images/image-46.png" />
</Frame>

### Step 4: Complete OAuth Consent Setup and Verification

After creating your project, you must fully configure the OAuth consent screen in the Google Cloud Console.

Go to **APIs & Services → OAuth consent screen**

<Frame>
  <img src="https://mintcdn.com/mail2skyfreegmailcom/gD5fsE_Fmldf0VFl/images/image-51.png?fit=max&auto=format&n=gD5fsE_Fmldf0VFl&q=85&s=4956154fa2b63dd32580bbe55ed87c80" alt="Image" width="251" height="272" data-path="images/image-51.png" />
</Frame>

Ensure that all required sections are completed, including:

<Frame>
  <img src="https://mintcdn.com/mail2skyfreegmailcom/gD5fsE_Fmldf0VFl/images/image-52.png?fit=max&auto=format&n=gD5fsE_Fmldf0VFl&q=85&s=3ea6fafa63ba87f32ec743dfab80a4da" alt="Image" width="1647" height="627" data-path="images/image-52.png" />
</Frame>

* Branding (application name, logo, support email)
  <Frame>
    <img src="https://mintcdn.com/mail2skyfreegmailcom/gD5fsE_Fmldf0VFl/images/image-54.png?fit=max&auto=format&n=gD5fsE_Fmldf0VFl&q=85&s=1877e74397dc0752a5f02286ae78e9e4" alt="Image" width="612" height="577" data-path="images/image-54.png" />
  </Frame>
* Audience (internal or external users)
  <Frame>
    <img src="https://mintcdn.com/mail2skyfreegmailcom/gD5fsE_Fmldf0VFl/images/image-55.png?fit=max&auto=format&n=gD5fsE_Fmldf0VFl&q=85&s=0d65a0818e9e5da9bdced0f08b31d503" alt="Image" width="609" height="450" data-path="images/image-55.png" />
  </Frame>
* Clients (OAuth client configuration) - ***Refer Step 5***
* Data Access (required scopes and permissions)
* Settings (general app configuration)

Once all sections are properly configured, proceed to the **Verification Center** and submit your application for verification if required.

Verification is mandatory when using sensitive scopes such as Google Sheets, Contacts, or Calendar. Until verification is approved, access may be limited to test users only.

***

### Step 5: Create OAuth Credentials

Go to **APIs & Services → Credentials**

* Click **Create Credentials → OAuth Client ID**
* Select:
  * **Web Application**
  <Frame>
    <img src="https://mintcdn.com/mail2skyfreegmailcom/gD5fsE_Fmldf0VFl/images/image-56.png?fit=max&auto=format&n=gD5fsE_Fmldf0VFl&q=85&s=eaf92a83cc3eb0335ca6a7186d30387b" alt="Image" width="608" height="397" data-path="images/image-56.png" />
  </Frame>
  * **Add Redirect URI**
    Add the redirect URL from your platform: [https://your-domain.com/api/auth/google/callback](https://your-domain.com/api/auth/google/callback) (Use the exact URL shown in your platform settings)

<Frame>
  <img src="https://mintcdn.com/mail2skyfreegmailcom/gD5fsE_Fmldf0VFl/images/screencapture-console-cloud-google-auth-clients-534192499054-hmqmfdkc9qabqvrmt8kv8dpd8f991qs9-apps-googleusercontent-com-2026-04-23-21_13_33-edit.png?fit=max&auto=format&n=gD5fsE_Fmldf0VFl&q=85&s=8437253a01b01c8def19c8f985758596" alt="Screencapture Console Cloud Google Auth Clients 534192499054 Hmqmfdkc9qabqvrmt8kv8dpd8f991qs9 Apps Googleusercontent Com 2026 04 23 21 13 33 Edit" width="1920" height="1117" data-path="images/screencapture-console-cloud-google-auth-clients-534192499054-hmqmfdkc9qabqvrmt8kv8dpd8f991qs9-apps-googleusercontent-com-2026-04-23-21_13_33-edit.png" />
</Frame>

***

### Step 6: Copy Credentials

After creating credentials, copy:

* **Client ID**
* **Client Secret**
* **API Key** (from credentials section)

***

### Step 7: Configure in Platform

Go to **Google API Integration** page and:

* Paste API Key
* Paste Client ID
* Paste Client Secret
* Enable Google OAuth
* Save settings
  <Frame>
    <img src="https://mintcdn.com/mail2skyfreegmailcom/gD5fsE_Fmldf0VFl/images/image-57.png?fit=max&auto=format&n=gD5fsE_Fmldf0VFl&q=85&s=299cafb66ce3df8d5e0869528a3d40d1" alt="Image" width="1332" height="665" data-path="images/image-57.png" />
  </Frame>

***

## Testing the Integration

After saving:

* Click **Test** (if available)
* Try connecting a Google account
* Verify that Sheets, Contacts, and Calendar access works correctly

***

## Verification (Important)

If your app is in production and uses sensitive scopes (like Contacts or Sheets), Google may require **OAuth verification**.

You may need to:

* submit your app for verification
* provide a demo video
* explain how data is used
* verify domain ownership

Until verified, your app may be limited to test users.

***

## Security Notes

* Keep your **Client Secret secure**
* Never expose credentials in frontend code
* Use HTTPS for all redirect URLs
* Restrict API usage where possible

***
