Skip to main content
Vosaire
All docs
Connections

Connecting Gmail with your own Google OAuth app

Step-by-step guide to create a Google OAuth app, configure Gmail API scopes, and connect your Gmail inbox to Vosaire.

Gmail is currently in Beta. To connect a Gmail inbox you'll create your own Google OAuth app in Google Cloud Console and paste the credentials into Vosaire. This takes about 10–15 minutes.

Before you start: Internal or External?

The first decision is whether to set your OAuth app as Internal or External. This determines who can authorize the app.

InternalExternal (Testing)
Who can authorizeOnly users inside your Google Workspace orgAny Google account you add as a test user
Works with @gmail.comNoYes
Works with @company.comYes (if Google Workspace)Yes
Test user limitNone (all org members)100 users max
Google verification neededNoNo (while in testing)

Use Internal if: You're a Google Workspace org (your team uses @yourcompany.com email) and you're only connecting inboxes at that domain.

Use External (Testing) if: You're connecting a personal @gmail.com inbox, or you're not on Google Workspace, or you need to connect inboxes across different domains.

Note: @gmail.com personal accounts cannot use Internal mode — only Google Workspace organizations support it.


Step 1 — Create a Google Cloud project

  1. Go to console.cloud.google.com and sign in with your Google account
  2. Click the project dropdown in the top navigation bar → New Project
Project selector open in Google Cloud Console, showing the New Project button
Project selector open in Google Cloud Console, showing the New Project button
  1. Enter a name (e.g. "Vosaire Gmail") and click Create
New Project form with project name filled in
New Project form with project name filled in
  1. Wait for the project to be created, then make sure it's selected in the dropdown before continuing

Step 2 — Enable the Gmail API

  1. In the left sidebar go to APIs & ServicesLibrary
  2. Search for Gmail API and click on it
  3. Click Enable
Gmail API page with Enable button
Gmail API page with Enable button

Step 3 — Configure the OAuth consent screen

  1. Go to APIs & ServicesOAuth consent screen
  2. Choose your user type:
    • Internal — if you're on Google Workspace and only connecting your org's inboxes
    • External — if you're connecting a @gmail.com account or need to connect inboxes outside your org
Audience page showing Internal vs External selection
Audience page showing Internal vs External selection
  1. Click Create (or Get started if it's your first project)
  2. Fill in the required fields:
    • App name — anything descriptive (e.g. "Vosaire Support Inbox")
    • User support email — your email address
    • Developer contact information — your email address
App information and branding form in Google Auth Platform
App information and branding form in Google Auth Platform
  1. Click through the remaining steps to reach Data Access / Scopes

Add the required Gmail scopes

On the Scopes step, click Add or Remove Scopes. In the filter box, search for and select these three scopes:

ScopePurpose
https://www.googleapis.com/auth/gmail.readonlyRead incoming emails
https://www.googleapis.com/auth/gmail.sendSend replies
https://www.googleapis.com/auth/gmail.modifyCreate drafts, mark emails read
Data Access page showing Gmail scopes
Data Access page showing Gmail scopes

Click Update to add them, then Save and Continue.

These are classified as sensitive scopes by Google. Your app will show an "unverified app" warning when users authorize it — that's expected. Click Continue past the warning. For internal use, this is fine.

  1. Click Save and Continue through the remaining steps (Test Users, Summary)

Step 4 — Add test users (External apps only)

If you chose External, your app starts in testing mode, which means only users you explicitly add can authorize it.

  1. On the Test Users step (or go back to OAuth consent screenTest Users)
  2. Click + Add Users
  3. Add the email address of every Gmail account you want to connect to Vosaire
Test users section in Google Auth Platform Audience page
Test users section in Google Auth Platform Audience page
  1. Click Save

If you chose Internal: Skip this step. All users in your Google Workspace org can authorize without being added manually.


Step 5 — Create OAuth credentials

  1. Go to APIs & ServicesCredentials
Credentials page with Create credentials button
Credentials page with Create credentials button
  1. Click + Create CredentialsOAuth client ID
Create credentials dropdown showing OAuth client ID option
Create credentials dropdown showing OAuth client ID option
  1. Set Application type to Web application
  2. Give it a name (e.g. "Vosaire Gmail Channel")
  3. Under Authorized redirect URIs, click + Add URI and paste exactly:
https://api.vosaire.com/api/v1/integration-connections/oauth/gmail/callback
OAuth client ID form with Web application type and redirect URI filled in
OAuth client ID form with Web application type and redirect URI filled in
  1. Click Create

Google will show a dialog with your Client ID and Client Secret. Copy both — you'll need them in the next step.

OAuth client created dialog showing Client ID and Client Secret
OAuth client created dialog showing Client ID and Client Secret

If you close this dialog without copying the secret, you can get it again from Credentials → click your OAuth client → Download JSON or view the secret inline.


Step 6 — Connect in Vosaire

  1. In Vosaire, go to your agent → Channels tab → Add ChannelGmail
  2. You'll see the credentials form. The Authorized redirect URI is shown at the top — you already added this in Step 5.
  3. Paste your Client ID and Client Secret
  4. Click Save & Authorize with Google
  5. A Google sign-in popup opens. Sign in with the Gmail inbox you want to connect.

If you see "This app isn't verified": Click AdvancedGo to [your app name] (unsafe). This warning appears for unverified apps and is expected during beta. It's safe to proceed since you created this app yourself.

  1. Grant the requested permissions and click Allow

The popup closes and the connection is created. You'll move automatically to the channel configuration step.


What permissions does Vosaire request?

After saving your credentials, when the Google authorization popup opens, Vosaire requests:

  • Read all your email messages and settings — to process incoming messages
  • Send email on your behalf — to send replies in Auto mode
  • Manage your email messages and settings — to create drafts (Draft mode) and mark emails as read

These are the minimum permissions needed for the Gmail channel to work.


After connecting

Configure the Gmail channel:

  • Reply mode — Start with Draft mode. Your agent writes replies, you review and send. Switch to Auto-reply once you've verified quality.
  • Labels to monitor — Choose which Gmail folders the agent watches (e.g. Inbox, Support)
  • Skip categories — Turn on Promotions, Social, Updates, Forums to avoid replying to automated emails
  • Skip no-reply senders — Recommended: prevents replies to noreply@ addresses
  • Polling interval — How often Vosaire checks for new emails (depends on your plan)

See Setting up a Gmail channel for the full configuration walkthrough.


Troubleshooting

"Access blocked: This app's request is invalid" The redirect URI doesn't match. Check that you added the URI exactly as shown in Step 5 — no trailing slash, no http:// instead of https://.

"You can't sign in because this app sent an invalid request" or "Error 400" Same issue — redirect URI mismatch. In Google Cloud Console, go to Credentials → your OAuth client and verify the redirect URI.

"This app is blocked" Your OAuth app is in External mode and the email you're signing in with hasn't been added as a test user. Go to OAuth consent screen → Test Users and add it.

"This app isn't verified" Expected warning for unverified apps. Click AdvancedGo to [app name] (unsafe) to continue. This is safe since you created the app.

Connection stops working after it was working Gmail tokens expire if unused, or can be revoked if you change your Google account password or revoke access at myaccount.google.com/permissions. Delete the connection in Vosaire and re-add it with the same credentials to reconnect.

Ready to put this into practice?

Free plan available. Be up and running in under 10 minutes. No credit card required.

Start free — no credit card