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

# How to get Google Client ID, Secret Key & Refresh Token?

> How to get Google Client ID, Secret Key & Refresh Token? — T3Planet documentation.

Before you can start using EXT:ns\_googledocs, You need to get Google Client ID, Secret Key and Refresh Token for your Gmail account. These details will help to fetch Google Docs from your Gmail account.

1. To Create Google Client ID and Secret Key go to [https://console.developers.google.com](https://console.developers.google.com)
2. Create a New Project or select existing project.

<img src="https://mintcdn.com/t3planet/pxwp9sDYIMgAHeEr/en/latest/ExtNsGoogleDocs/GoogleDocsConfiguration/images/select_project.webp?fit=max&auto=format&n=pxwp9sDYIMgAHeEr&q=85&s=9fa8e95d528ec7779e0abf6965a79100" alt="Select Project" width="1354" height="685" data-path="en/latest/ExtNsGoogleDocs/GoogleDocsConfiguration/images/select_project.webp" />

3. Switch to Credentials. Click on Create Credentials button and Select OAuth Client ID

<img src="https://mintcdn.com/t3planet/pxwp9sDYIMgAHeEr/en/latest/ExtNsGoogleDocs/GoogleDocsConfiguration/images/create_client.webp?fit=max&auto=format&n=pxwp9sDYIMgAHeEr&q=85&s=b12acb62a3f0bccc121352a0b9844be9" alt="Create OAuth Client" width="1274" height="556" data-path="en/latest/ExtNsGoogleDocs/GoogleDocsConfiguration/images/create_client.webp" />

4. Select "Web Application" option and set Authorized redirect URIs "[https://developers.google.com/oauthplayground](https://developers.google.com/oauthplayground)"

<img src="https://mintcdn.com/t3planet/pxwp9sDYIMgAHeEr/en/latest/ExtNsGoogleDocs/GoogleDocsConfiguration/images/create_client_2.webp?fit=max&auto=format&n=pxwp9sDYIMgAHeEr&q=85&s=2fe10d5504849e9ca82ad2dec8df6f85" alt="Create OAuth Client" width="703" height="721" data-path="en/latest/ExtNsGoogleDocs/GoogleDocsConfiguration/images/create_client_2.webp" />

5. This will generate Client ID and Client Secret Key.

<img src="https://mintcdn.com/t3planet/pxwp9sDYIMgAHeEr/en/latest/ExtNsGoogleDocs/GoogleDocsConfiguration/images/client_id_secret_key.webp?fit=max&auto=format&n=pxwp9sDYIMgAHeEr&q=85&s=ef091935b9ff6cde2e506ebe649baebf" alt="Client ID & Secret Key" width="1612" height="765" data-path="en/latest/ExtNsGoogleDocs/GoogleDocsConfiguration/images/client_id_secret_key.webp" />

6. Switch to Library and search for "Google Drive API". Select API and enable it.

<img src="https://mintcdn.com/t3planet/pxwp9sDYIMgAHeEr/en/latest/ExtNsGoogleDocs/GoogleDocsConfiguration/images/enable_api.webp?fit=max&auto=format&n=pxwp9sDYIMgAHeEr&q=85&s=222c001175e9859da71f6b987d1a8f61" alt="Enable API" width="1292" height="660" data-path="en/latest/ExtNsGoogleDocs/GoogleDocsConfiguration/images/enable_api.webp" />

7. Now go to [https://developers.google.com/oauthplayground/](https://developers.google.com/oauthplayground/)
8. Set your Client ID and Secret Key in Settings

<img src="https://mintcdn.com/t3planet/pxwp9sDYIMgAHeEr/en/latest/ExtNsGoogleDocs/GoogleDocsConfiguration/images/set_id_secret_key.webp?fit=max&auto=format&n=pxwp9sDYIMgAHeEr&q=85&s=cf51b4c6745c01187d69912c2b444cc0" alt="Set ID and Secret Key in Settings" width="1919" height="968" data-path="en/latest/ExtNsGoogleDocs/GoogleDocsConfiguration/images/set_id_secret_key.webp" />

9. Go to Step 1 section. Search & expand Drive API v3. Select all options and click on Authorize APIs button.

<img src="https://mintcdn.com/t3planet/pxwp9sDYIMgAHeEr/en/latest/ExtNsGoogleDocs/GoogleDocsConfiguration/images/authorize_apis.webp?fit=max&auto=format&n=pxwp9sDYIMgAHeEr&q=85&s=8bb830e600ce2186de42cc2a61057f94" alt="Authorize APIs" width="734" height="924" data-path="en/latest/ExtNsGoogleDocs/GoogleDocsConfiguration/images/authorize_apis.webp" />

10. Now, go to Step 2 and there you can find your Refresh token.

<img src="https://mintcdn.com/t3planet/pxwp9sDYIMgAHeEr/en/latest/ExtNsGoogleDocs/GoogleDocsConfiguration/images/refresh_token.webp?fit=max&auto=format&n=pxwp9sDYIMgAHeEr&q=85&s=60a52ec62a5aaf4fa4ed874138673b6c" alt="Refresh Token" width="832" height="641" data-path="en/latest/ExtNsGoogleDocs/GoogleDocsConfiguration/images/refresh_token.webp" />

Once you complete these steps, you will have Google Client ID, Secret Key and Refresh Token for your account. You have to set those in Global Settings of EXT:ns\_googledocs.
