> For the complete documentation index, see [llms.txt](https://cf-guide.storeify.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cf-guide.storeify.app/how-to-get-client-id-and-client-secret-in-google-cloud-console.md).

# 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 <a href="#step-by-step-guide" id="step-by-step-guide"></a>

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://cf.storeify.app/oauth/callback**](https://cf.storeify.app/oauth/callback)
   * 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 ***Google client ID and secret Key***: <a href="#see-the-detailed-step-by-step-screenshots-from-a-to-z-to-get-google-client-id-and-secret-key" id="see-the-detailed-step-by-step-screenshots-from-a-to-z-to-get-google-client-id-and-secret-key"></a>

<figure><img src="https://1000440327-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbjfGLUdIU6F5BuXHmj%2Fuploads%2F6nqS5oT7ehYLb0HOpwX6%2Fimage.png?alt=media&amp;token=4f2dd563-4de3-476d-885b-769cef094ff3" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1000440327-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbjfGLUdIU6F5BuXHmj%2Fuploads%2FNNKDwqfZ2qym8ag6iEN9%2Fimage.png?alt=media&amp;token=8d972818-e0a4-4ec7-ad4e-08c01c720259" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1000440327-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbjfGLUdIU6F5BuXHmj%2Fuploads%2FBHI2vrVBnMXMItEG4eRk%2Fimage.png?alt=media&amp;token=3c9943f0-3919-499d-befc-a13a00ae89dc" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1000440327-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbjfGLUdIU6F5BuXHmj%2Fuploads%2FVnO1wOASCSTRThCZYjz6%2Fimage.png?alt=media&amp;token=a6469909-46c8-4d86-99c2-6043f805b39c" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1000440327-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbjfGLUdIU6F5BuXHmj%2Fuploads%2FjUlOxKH9KDyCneCTNm9g%2Fimage.png?alt=media&amp;token=360f1a8d-e89a-4fa6-9ebc-7171d962faa5" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1000440327-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbjfGLUdIU6F5BuXHmj%2Fuploads%2FDfcCfWAar6X2uq5Hn4J7%2Fimage.png?alt=media&amp;token=a92a98b4-12f5-40e0-92b2-c577cd602aef" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1000440327-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbjfGLUdIU6F5BuXHmj%2Fuploads%2FjhciMXjexjDZvcnpymln%2Fimage.png?alt=media&amp;token=182990bc-4147-4666-b553-4613621cc8d2" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1000440327-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbjfGLUdIU6F5BuXHmj%2Fuploads%2F4eRLqHYcXXmd6nHD5YIV%2Fimage.png?alt=media&amp;token=7728d9a8-033a-45f4-8804-79ecbcb13b28" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1000440327-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbjfGLUdIU6F5BuXHmj%2Fuploads%2Fu6r6nzb67WcfN2YB5lsB%2Fimage.png?alt=media&amp;token=2c0a349a-abd6-420f-a545-533f33475a95" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1000440327-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbjfGLUdIU6F5BuXHmj%2Fuploads%2FLNVH4k3SomOhhSkgnM79%2Fimage.png?alt=media&amp;token=d24e9805-ecf7-4596-b810-9c78ddb4aed5" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1000440327-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbjfGLUdIU6F5BuXHmj%2Fuploads%2FTxITSi7xStTvitIYelst%2Fimage.png?alt=media&amp;token=1baae6ac-55f2-482e-ae75-f241ad23cee6" 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://cf.storeify.app/oauth/callback**](https://cf.storeify.app/oauth/callback)

<figure><img src="https://1000440327-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbjfGLUdIU6F5BuXHmj%2Fuploads%2F5jNQaIghLnzPHukYlpyt%2Fimage.png?alt=media&amp;token=3bfe51c7-2271-46bb-b7d8-88545f75f9f4" alt=""><figcaption></figcaption></figure>
