# Gmail connection

**URL:** <https://community.make.com/t/gmail-connection/63609>\
**Category:** Questions\
**Tags:** google, connections, api\
**Created:** [December 10, 2024, 8:55am UTC](https://community.make.com/t/gmail-connection/63609 "2024-12-10T08:55:50Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Priit\_Kallas](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/priit_kallas/32/57239_2.png) [@Priit\_Kallas](https://community.make.com/u/Priit_Kallas)\
**Post date:** [December 10, 2024, 8:55am UTC](https://community.make.com/t/gmail-connection/63609/1 "2024-12-10T08:55:50Z")

</div>

I want to make an OAuth request to Gmail. I keep getting Error 400: redirect\_uri\_mismatch. Here are the screenshots of my setup.

What am I doing wrong?

 ![2024-12-10 (3)](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/4/3/430e10f1a3e4e425ddea2f14bdb35412fa38d35d.png)

 ![2024-12-10 (1)](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/2/b/2b32e35ba6ef08327c7aeced85a8c6827abbd562.png)

 ![2024-12-10 (4)](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/2/1/2195a0644a1666bcd589dbf9f298d24b0f5cdd24.png)

---

<div class="post-metadata">

**Author:** ![AutomationZion](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/automationzion/32/57226_2.png) [@AutomationZion](https://community.make.com/u/AutomationZion)\
**Post date:** [December 10, 2024, 2:22pm UTC](https://community.make.com/t/gmail-connection/63609/3 "2024-12-10T14:22:07Z")

</div>

Make sure to add `make.com` and `integromat.com` in the authorized redirect URI section

---

<div class="post-metadata">

**Author:** ![Priit\_Kallas](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/priit_kallas/32/57239_2.png) [@Priit\_Kallas](https://community.make.com/u/Priit_Kallas)\
**Post date:** [December 11, 2024, 7:21am UTC](https://community.make.com/t/gmail-connection/63609/4 "2024-12-11T07:21:32Z")

</div>

No, this is not the problem.

---

<div class="post-metadata">

**Author:** ![Caroline\_Kaeke](https://avatars.discourse-cdn.com/v4/letter/c/71e660/32.png) [@Caroline\_Kaeke](https://community.make.com/u/Caroline_Kaeke)\
**Post date:** [December 11, 2024, 8:23am UTC](https://community.make.com/t/gmail-connection/63609/5 "2024-12-11T08:23:19Z")

</div>

hey @pritt\_kallas,  
I’m experiencing the same problem did you get any solution to this?

---

<div class="post-metadata">

**Author:** ![Priit\_Kallas](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/priit_kallas/32/57239_2.png) [@Priit\_Kallas](https://community.make.com/u/Priit_Kallas)\
**Post date:** [December 11, 2024, 9:42am UTC](https://community.make.com/t/gmail-connection/63609/6 "2024-12-11T09:42:08Z")

</div>

No solution for this yet ☹

---

<div class="post-metadata">

**Author:** ![Caroline\_Kaeke](https://avatars.discourse-cdn.com/v4/letter/c/71e660/32.png) [@Caroline\_Kaeke](https://community.make.com/u/Caroline_Kaeke)\
**Post date:** [December 11, 2024, 9:52am UTC](https://community.make.com/t/gmail-connection/63609/7 "2024-12-11T09:52:56Z")

</div>

My scenario was working fine for a week but yesterday i got an error and have been trying to reconnect again but not working

---

<div class="post-metadata">

**Author:** ![samliew](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/samliew/32/13327_2.png) [@samliew](https://community.make.com/u/samliew)\
**Post date:** [December 25, 2024, 9:54am UTC](https://community.make.com/t/gmail-connection/63609/8 "2024-12-25T09:54:30Z")

</div>

Welcome to the Make community!

Looks like your Authorize URI is incorrect.

Follow this [main guide on how to set up a custom OAuth 2.0 custom app in Make](https://www.make.com/en/help/apps/it-and-development/g-suite-admin#connecting-to-google-services-using-oauth2).

Provided below are additional supplementary instructions in case the above isn’t clear enough.

* * *

# Enable APIs

## 1. Enable the relevant APIs that you want to use

**Search for the relevant Google API here:** [https://console.cloud.google.com/apis/library](https://console.cloud.google.com/apis/library)

- Go to each API page that you want to use, end click “Enable”

- Usually you’ll want to enable at least [Drive](https://console.cloud.google.com/apis/api/drive.googleapis.com) (includes Docs/Sheets) and [Gmail](https://console.cloud.google.com/apis/api/gmail.googleapis.com).

* * *

# OAuth Client

**Direct Link:** [https://console.cloud.google.com/apis/credentials](https://console.cloud.google.com/apis/credentials)

## 2a. Create “OAuth client ID” Credentials

 ![](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/0/c/0c29e0e6bb6d6b4b62461a894fb490c1e06dd048.png)

## 2b. Insert all the Google Redirect URIs for your app

 ![](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/2/8/2807e342c37d019fedbe8847450f96a19c696ffe.png)

### Google Redirect URIs

Here are some commonly-needed redirect URIs you need for your [Google Cloud Console](https://console.cloud.google.com/) OAuth app. If you set these up, you can reuse the same GCP app for other Google apps and modules on Make.

```plaintext
https://www.make.com/oauth/cb/google
https://www.make.com/oauth/cb/google-custom
https://www.make.com/oauth/cb/google-restricted
https://www.make.com/oauth/cb/google-cloud-speech
https://www.make.com/oauth/cb/youtube
https://www.make.com/oauth/cb/oauth2
https://www.integromat.com/oauth/cb/oauth2

```

**Note:** Once you’ve set these up, you can use/reuse the same Make connection for all the supported Google apps & modules on Make - you’ll only have to enable the APIs for your custom app.

* * *

# OAuth consent screen

**Direct Link:** [https://console.cloud.google.com/apis/credentials/consent/edit](https://console.cloud.google.com/apis/credentials/consent/edit)

## 3a. Insert Two Authorised Domains

- Insert `make.com` and `integromat.com`

- Fill in other required fields

- Click “Save and Continue”.

## 3b. Add All Scopes

- Click “Add or Remove Scopes”

- Select 100 “Rows per page”, for each page, check all the rows, OR

- Manually type in the scopes you need

- Click “Update” at the bottom

## 3c. Step through and go to dashboard

At the last step/page, click “ **BACK TO DASHBOARD** ” instead of “Prepare for Verification”  
 ![](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/0/c/0c8fe7b5be5b0fec74f940524cefe93259806a7c.png)

## 3d. Publish your GCP OAuth2 app

You will need to set your OAuth application to “Production”, otherwise the credentials expire very frequently.

- To do this, go back to “[OAuth consent screen](https://console.cloud.google.com/apis/credentials/consent)”

- Then click the “ **PUBLISH APP** ” button

- Then click the “ **CONFIRM** ” button

* * *

# Create New Connection (HTTP, or respective Google module)

You can find the Client ID and Client Secret in the OAuth2 app you created in GCP, on the right-hand side of where you inserted the callback URLs in step 2:

 ![](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/a/e/aeb4ff9ca8e4f5ddf3badd144b4f5a4fb19f27ef.png)

## 4a. Specific Google module (Sheets, Docs, Drive, Gmail, etc.)

Insert the GCP app client ID and secret here **BEFORE** clicking “Sign in”

_(Gmail example)_

 ![](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/c/a/caa6efb63fb50b12399549ee627da8bb29189a13.png)

**OR,**

## 4b. HTTP OAuth 2.0 Request module

 ![](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/8/9/89a1c01d161c36bc11d1e7460256be7e02258d18.png)

You need a “Authorize Parameters” key of `redirect_uri` with the above Make OAuth2 callback URL.

 ![](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/4/3/43df2cd92abedfda53a23fc12991dbfb13eff1be.png)

Hope this helps! Let me know if there are any further questions or issues.

— @samliew

P.S.: Investing some effort into the [Make Academy](https://academy.make.com) will save you lots of time and frustration using Make.

---

<div class="post-metadata">

**Author:** ![Priit\_Kallas](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/priit_kallas/32/57239_2.png) [@Priit\_Kallas](https://community.make.com/u/Priit_Kallas)\
**Post date:** [February 1, 2025, 1:03pm UTC](https://community.make.com/t/gmail-connection/63609/9 "2025-02-01T13:03:14Z")

</div>

Hi! Sorry I didn’t answer your extremely helpful explanation.

I finally got what I needed with the regular Make Gmail connection and didn’t need API approach.

Thank you, this is very useful

---

<div class="post-metadata">

**Author:** ![Make\_Bot](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/make_bot/32/14661_2.png) [@Make\_Bot](https://community.make.com/u/Make_Bot)\
**Post date:** [February 17, 2025, 7:30am UTC](https://community.make.com/t/gmail-connection/63609/10 "2025-02-17T07:30:45Z")

</div>

This topic was automatically closed because it's resolved or inactive. Please, start a new topic.


