Skip to main content
API Keys

Connect Gmail to NexaEra

Connect Gmail to NexaEra through Google Cloud Console. You'll create a project, set up OAuth consent and credentials, turn on the Gmail API, then save and authorize the credentials in NexaEra.

Written By Fred Yalmeh

Last updated About 2 months ago

1. Open Integrations in NexaEra

Click on Operate in the NexaEra platform.

Then go to Integrations.

From there, click on API Keys.

In the search field, type Gmail. When the Gmail option appears, click on the Connect button.

2. Open Google Cloud Console from NexaEra

On the Gmail integration screen in NexaEra, you will see step-by-step instructions. Follow these instructions carefully.

Click on Open Google Cloud Console.

This opens your Google Cloud Console account.

3. Select the Correct Google Account and Create a Project

In Google Cloud Console, switch to the Google account you want to use for this integration.

Click on Create Project.

Enter a project name, for example, NexaEra Gmail. Select your Organization.

Optionally, select a Parent resource if required. After that, click on Create.

Wait a few seconds for the project to be created.

4. Configure the OAuth Consent Screen

Once the project is created, click on Configure Consent Screen.

Click on Get Started.

Name the app (for example, NexaEra).

Select the Support email.

Click on Next.

Set the Audience to Internal.

Click Next.

In Contact information, enter the email address you want to use as the contact email (this can be your personal email or any appropriate contact email).

Click Next.

Agree to the terms and conditions.

Click on Continue, and then click Create to finish the consent screen setup.

5. Create an OAuth Client in Google Cloud

Under the Credentials (or Metrics) section, click Create OAuth Client.

Set Application type to Web application.

Name it, for example, NexaEra.

6. Copy Redirect URLs from NexaEra and Add Them to OAuth Client

Go back to the NexaEra platform and locate the URL provided for the Gmail integration. Click on the URL to copy it.

Return to Google Cloud Console.

Under Authorized JavaScript origins, click Add URL and paste the copied URL. Then remove the path portion so that only https://NexaEra.com remains.

Under Authorized redirect URIs, click Add URL and paste the full URL you copied from NexaEra (do not modify this one).

Keep in mind:

  • Authorized JavaScript origins: https://NexaEra.com only

  • Authorized redirect URIs: full URL copied from NexaEra

When finished, click Create.

7. Copy Client ID and Client Secret into NexaEra

After creating the OAuth client, your Client ID and Client secret will be displayed.

Click Copy for the Client ID.

In NexaEra, paste it into the Client ID field.

Then copy the Client secret.

Paste it into the Client Secret field in NexaEra.

Back in Google Cloud Console, click OK to close the credentials dialog.

8. Enable the Gmail API in Google Cloud

Return to NexaEra and click on Open Google Cloud Console again to ensure you are in the correct project.

The console will open; confirm you are on the correct account/project.

Click Enable APIs and Services.

In the API Library, search for Gmail.

Select Gmail API (the top result).

Click Enable.

Wait a few moments to ensure the Gmail API is fully enabled; otherwise, the integration will not work.

9. Save Credentials in NexaEra and Authorize Gmail

Go back to NexaEra and click Save Credentials.

You will be prompted for authorization. Click Authorize with Gmail.

Select the Google account you used for the project.

Click Allow to grant the requested permissions.

You should now see a confirmation that authorization is complete and the integration is fully working.

10. Verify Gmail is Connected in NexaEra

To confirm, go back under API Keys in NexaEra and search for Gmail again.
You should now see Gmail showing as Connected.