Gmail
Gmail
Configuration
Gmail source connector integrates with the Gmail API to extract and synchronize email data.
Connects to your Gmail account.
It supports syncing email threads, individual messages, and file attachments.
Authentication
This connector uses OAuth 2.0 with custom credentials. You need to provide your OAuth application’s Client ID and Client Secret in the Airweave UI, then go through the OAuth consent screen.
- Create an OAuth application in your provider’s developer console
- Enter your Client ID and Client Secret in the Airweave UI
- Complete the OAuth consent flow when connecting the source
Configuration Options
This connector does not have any additional configuration options.
Data Models
The following data models are available for this connector:
GmailThreadEntity
Schema for Gmail thread entities.
Reference: https://developers.google.com/gmail/api/reference/rest/v1/users.threads
GmailMessageEntity
Schema for Gmail message entities.
Reference: https://developers.google.com/gmail/api/reference/rest/v1/users.messages
GmailAttachmentEntity
Schema for Gmail attachment entities.
Reference: https://developers.google.com/gmail/api/reference/rest/v1/users.messages.attachments
Integrate Airweave with Google APIs on localhost
This guide will walk you through connecting Google Workspace APIs to Airweave when running locally. Google provides extensive documentation on setting up your workspace. Below is a streamlined process for connecting Google APIs to Airweave.
- Create a Google Cloud project for your Google Workspace (if you don’t already have one)
- Enable the Google Workspace APIs for Gmail, Google Calendar, and Google Drive
- Configure Google OAuth 2.0 consent screen
- Under
Audience, selectMake externaland add test users - Under
Data Access, add the following scopes:
- Create OAuth client ID credentials
- Under “Authorized redirect URIs,” click ”+ Add URI” and add the following URIs:
- Locate the client ID and client secret from your newly created OAuth client. Add these credentials to the
dev.integrations.ymlfile to enable Google API integration.