🚀 Quickstart
Connect to Gmail with Nango and see data flow in 2 minutes.Create the integration
In Nango (free signup), go to Integrations -> Configure New Integration -> Gmail.
Nango has credentials you can use for testing. Activate them in the dashboard.
Authorize Gmail
Go to Connections -> Add Test Connection -> Authorize, then log in to Gmail. Later, you’ll let your users do the same directly from your app.
Call the Gmail API
Let’s make your first request to the Gmail API (fetch the profile of the currently signed-in user). This request will return basic details about the authenticated user, such as their email address and message/thread counts. Replace the placeholders below with your secret key, integration ID, and connection ID:Or fetch credentials dynamically via the Node SDK or API.✅ You’re connected! Check the Logs tab in Nango to inspect requests.
- cURL
- Node
Implement Nango in your app
Follow our Auth implementation guide to integrate Nango in your app.To obtain your own production credentials, follow the setup guide linked below.
📚 Gmail Integration Guides
Nango maintained guides for common use cases.-
How to register your own Gmail OAuth app
Register an OAuth app with Gmail and obtain credentials to connect it to Nango -
How to setup webhooks with Gmail on Nango
Set up Gmail push notifications using Google Pub/Sub to receive real-time inbox updates