# How to get Client ID and Client Secret in Google Cloud Console

To get a **Client ID** and **Client Secret**, you must create **OAuth 2.0 credentials** within a project in the Google Cloud Console. The process involves setting up an OAuth consent screen and then generating the credentials for a specific application type.

**Step-by-Step Guide**

1. **Go to the Google Cloud Console**
   * Navigate to the Google Cloud Console and sign in with your Google account.
   * Select an existing project from the top menu, or create a new one if needed.
2. **Enable the Necessary API**
   * In the left-hand navigation menu, go to **APIs & Services** > **Library**.
   * Search for the API you need (e.g., "Google Sheets API," "Gmail API") and click on it.
   * Click the **Enable** button to activate the API for your project.
3. **Configure the OAuth Consent Screen**
   * In the left menu, go to **APIs & Services** > **OAuth consent screen**.
   * Select the **User type** (usually **External** unless you are a Google Workspace organization user) and click **Create**.
   * Fill in the required "App information," including the **App name**, **User support email**, and **Developer contact information**.
   * Click **Save and Continue** through the "Scopes" and "Summary" sections (you can define scopes later if needed).
4. **Create the OAuth Client ID and Secret**
   * In the left menu, go to **APIs & Services** > **Credentials**.
   * Click the **+ CREATE CREDENTIALS** button at the top and select **OAuth client ID** from the dropdown menu.
   * Select the appropriate **Application type** for your use case: **Web application**.
   * Provide a **Name** for your client ID (this is only for your reference within the console).
   * You need to add **Authorized redirect URIs:** [**https://sl.storeify.app/oauth/callback**](https://sl.storeify.app/oauth/callback) **(**<mark style="color:$danger;">**IMPORTANT**</mark>**)**.
   * Click **Create**.

**Retrieve the Client ID and Client Secret**

A pop-up window will display your generated **Client ID** and **Client Secret**. Copy these values and store the **Client Secret** securely, as it should be treated like a password.

You can revisit and view these credentials anytime from the Credentials page in the Google Cloud Console by clicking on the name of the client you created.

**See the detailed step-by-step screenshots from A to Z to get&#x20;*****Google client ID and secret Key*****:**

<figure><img src="https://3193615300-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbGA3WnXKJXk8zrgkrt%2Fuploads%2FEukVVvwbtbD3cZSd2WU0%2Fimage.png?alt=media&#x26;token=1f9b90c5-9c07-4c98-9a4f-38ffd17627b0" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3193615300-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbGA3WnXKJXk8zrgkrt%2Fuploads%2FQFb4lm9ZeU89bk4EblUP%2Fimage.png?alt=media&#x26;token=ea7cd85e-cb31-4711-8193-d6b6c4ccd02b" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3193615300-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbGA3WnXKJXk8zrgkrt%2Fuploads%2FWg3TkBSLSQsAOFihUa7I%2Fimage.png?alt=media&#x26;token=4d5fa109-3eb6-4221-932b-d9ab0e1f4e41" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3193615300-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbGA3WnXKJXk8zrgkrt%2Fuploads%2F9dPoZZkyAvwJuHGLLez3%2Fimage.png?alt=media&#x26;token=b3d6e3b8-d444-40f4-b204-23df46ebaee5" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3193615300-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbGA3WnXKJXk8zrgkrt%2Fuploads%2FKsBrB1eIiumDXYJ57X8K%2Fimage.png?alt=media&#x26;token=dd2528a4-afcf-41a7-92fc-2ed038d0c7b8" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3193615300-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbGA3WnXKJXk8zrgkrt%2Fuploads%2FrmgxdZqp6ovfOXK1fwpv%2Fimage.png?alt=media&#x26;token=87d61cc8-58f6-41ec-904c-3769d933dab5" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3193615300-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbGA3WnXKJXk8zrgkrt%2Fuploads%2FDfWemSP0xszTWLuJw1kc%2Fimage.png?alt=media&#x26;token=48361a72-36e7-4972-9c2c-c8fc4015d6b9" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3193615300-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbGA3WnXKJXk8zrgkrt%2Fuploads%2FXNMtTIeWG8f4L6GOx2Ot%2Fimage.png?alt=media&#x26;token=4ff80a89-d668-4593-a8b8-0fc3a364f9fd" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3193615300-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbGA3WnXKJXk8zrgkrt%2Fuploads%2F9xgUntcH8s01vDv0UOb6%2Fimage.png?alt=media&#x26;token=81a6ed1d-0803-49e0-8c75-7490c391a276" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3193615300-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbGA3WnXKJXk8zrgkrt%2Fuploads%2FVobyZ42e6bWydx4cFXZx%2Fimage.png?alt=media&#x26;token=8959ccb8-88bd-4cd3-929f-9dc4b6e24d46" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3193615300-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbGA3WnXKJXk8zrgkrt%2Fuploads%2FBLUH9J6iySjjiCqHSsWg%2Fimage.png?alt=media&#x26;token=79a211da-9172-4ba6-ac8a-3a1ace0b9f89" alt=""><figcaption></figcaption></figure>

<mark style="color:$danger;">**Note**</mark>**: The tutorial image above is using the URI of our Quote app; you need to replace this URI with the URI of your Contact Form app:** [**https://sl.storeify.app/oauth/callback**](https://sl.storeify.app/oauth/callback)

<figure><img src="https://3193615300-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbGA3WnXKJXk8zrgkrt%2Fuploads%2F5UCUbNRwXXAFelvjG7kD%2Fimage.png?alt=media&#x26;token=7e1c0025-81c2-4af3-ba79-5f6ef11f846a" alt=""><figcaption></figcaption></figure>
