Integrate Google accounts with Nylas
The Nylas platform drastically reduces the effort it takes to build and maintain a Google integration. With just a few lines of code, you can integrate full email, calendar, and contacts functions into your application.
This section describes how to create and integrate a Google API project.
To integrate Google accounts into your application, you first need to connect your Nylas application to a Google project. This allows your end users to authenticate with their Google account, and provides access to the data that you stipulate in the Google API.
For instructions on how to create a Google API project, see Create a Google provider authentication application.
Before you publish your Google application, you might have to take additional steps to comply with Google’s OAuth 2.0 policies and complete the verification process.
Your Google application must have the "Sign in with Google" button that meets Google's branding guidelines. This applies to the OAuth flow for both personal Gmail (
@gmail.com) and Workspace email addresses.
For more information, see Google verification and security assessment guide.
⚠️ Keep in mind: The Google verification and security assessment processes can take several weeks or longer.
When you create your Google project, you must list which Google scopes your Nylas application will use. Each scope grants your application permission to access a specific category or piece of user data.
If your application accesses Google user data with Google APIs and requests certain scopes, you might have to complete a Google verification process, and a separate security assessment process. Which process or processes depends on whether your app requests sensitive scopes or restricted scopes.
|Google Policy and Requirements
|Your application must follow Google’s API Services User Data Policy.
|Both Google verification and security assessment
|Your application must follow Google’s API Services User Data Policy and meet additional requirements for specific scopes.
For more information, see the Google verification and security assessment guide.
You should keep the following limitations in mind when you work with Google integrations:
- The Gmail API has a set of usage limits that apply to all requests made from your Nylas application. This includes the number of email messages that you can send per day. For more information, see the official Google documentation.
- The Google Calendar API has two sets of usage limits: the number of requests your application can make each minute, and the number of requests your application can make per user each minute. For more information, see the official Google documentation.
The Nylas SDKs are the quickest way to get started integrating Gmail, Google Calendar, and Google Contacts into your Nylas application. Nylas offers SDKs for Python, Node.js, Ruby, and Kotlin/Java to suit a variety of preferences.