Gmail API to Send, Sync & Manage Emails in Your App

Integrate Gmail into your software through Unipile's unified Email API. Send, receive, track and sync emails with real-time webhooks, skip months of direct Google API complexity.

7-Day Free Trial

Gmail Connected
Gmail Inbox
Sent
Drafts
JC
Julia Chen 10:42 AM
Re: Partnership proposal — updated terms
New
MP
Marc Peters 9:15 AM
Q3 report review — feedback attached
Replied
SL
Sophie Laurent Yesterday
Invoice #4892 — payment confirmation
Tracked
DK
David Kim Yesterday
New candidate pipeline — 12 profiles added
Replied
Compose via Gmail API... Send
2,847 Emails Synced via API
Real-time Webhooks active
99.5% Delivery rate
Email sent via API Delivered to julia.chen@company.com
Webhook
POST /new-email

Boost Client Retention with Advanced Gmail API Features

Our Gmail API enhances your CRM with features that boost client retention by streamlining email from Gmail, improving engagement without app switching.

Connected
Mery Kingsley
Mery Kingsley
Gmail WhatsApp LinkedIn
Gmail Gmail
LinkedIn LinkedIn
WhatsApp WhatsApp
Me
Me Monday, 05:09 PM
Hi Mery, What are your needs for the upcoming quarter? Thank you.
MK
Mery Kingsley Monday, 07:12 PM
Dear Sarah, for next quarter, we'll need 2,000 units of the flagship model and 1,000 of the budget model. Best.
Reply to Mery via Gmail...
Delivered 99.5% rate
Opened 3 times
Replied 2h 03m avg

Retrieve Email

Confidently retrieve work-related emails from any professional Gmail inbox, while maintaining the user's personal data privacy.

Send Email

Send emails directly from your platform via Gmail, ensuring consistent, professional outreach that aligns with your user's workflow.

Track Engagement

Monitor email opens, clicks, and replies in real-time with webhooks to optimize your outreach strategy.

Unlock Advanced Gmail API Features

Go beyond basic email. Access Gmail labels, real-time webhook notifications and Google Workspace integration through Unipile's unified API.

Google Workspace

Access Google Classic and Workspace features with Unipile's API

Gmail Labels
Inbox 128 Synced
Important 34 Synced
Clients 87 Synced
Prospects 56 Synced
Follow-up 23 Synced
All 5 labels synchronized via API

List and Get Gmail Labels

Efficiently manage and navigate through Gmail labels with API's 'List' and 'Get' features, streamlining email organization for your users.

Retrieve all Gmail labels with a single API call
Filter emails by label for targeted inbox management
Sync custom labels across your CRM or ATS
Build Now
Webhook Events
Gmail
New Email Received
From: julia.chen@acmeinc.com
NEW
Gmail
Email Sent
To: marc.peters@company.io
SENT
Gmail
Email Opened
marc.peters@company.io — 3 opens
OPENED
Gmail
Reply Received
From: marc.peters@company.io
REPLIED
POST /webhook
{
  "event": "email.received",
  "provider": "GMAIL",
  "account_id": "acc_7x9k2"
}

Real-Time Webhook Notifications

Webhooks enable your application to get alerts automatically when specific Gmail events happen. They're straightforward to implement and effortlessly scale as your needs expand.

Instant alerts on new emails, opens, clicks and replies
No polling needed, reduce API calls and latency
Track email engagement for outreach optimization
Build Now
Your App
Gmail LinkedIn WhatsApp
Gmail Outreach — Q3 Campaign Running
Step 1/5
Gmail
Day 1 Sending…
Gmail Cold Outreach
Personalized email with value proposition
Subject: Quick question about your outbound stack — Hi Elena, saw your team is scaling SDRs. We help automate multi-channel…
LinkedIn
Day 3 Pending
LinkedIn Connection
Invite + reference to email sent
Hey Elena — sent you an email about multi-channel outreach. Would love to connect here too and share some insights!
Gmail
Day 5 Pending
Gmail Follow-up
Case study + social proof
Subject: Re: Quick question — Here's how Acme Corp 3x'd their reply rates using multi-channel sequences…
Day 8 Pending
WhatsApp Check-in
Quick personal touch if no reply
Gmail
Day 12 Pending
Gmail Closing Email
Final offer + booking link
Subject: Last call — pilot access closing Friday. Book your 15-min demo slot → calendly.com/unipile-demo
1Sent
1Opened
0Replied
4Pending
Multi-Channel Sequences

Orchestrate Gmail, LinkedIn & WhatsApp in One Sequence

Let your users build automated outreach workflows that start with Gmail and combine LinkedIn and WhatsApp touchpoints, all powered by a single API. Each step fires at the right time, on the right channel.

GmailGmail LinkedInLinkedIn WhatsAppWhatsApp
99.5% Gmail delivery rate
3x More replies
Build Now
Email API

Email API Capabilities

Integrate Gmail, Outlook, and IMAP email providers through a single unified API. Send, receive, organize, and track emails across all major providers with consistent endpoints.

Explore All Endpoints
Gmail Outlook IMAP
Account ConnectionAccount
Send / ReceiveSend
Organize
Webhooks

Account Connection

3 endpoints available

Gmail Gmail
Outlook Outlook
IMAP IMAP
Hosted Auth: White label email auth
Custom auth: Connect user with credentials
Use your App OAuth screen

Send / Receive

3 endpoints available

Gmail Gmail
Outlook Outlook
IMAP IMAP
Send an Email
Reply to an Email
List Emails

Organize

4 endpoints available

Gmail Gmail
Outlook Outlook
IMAP IMAP
Delete Email
Move Email
List Folders
Get Folder

Webhooks

2 events available

Gmail Gmail
Outlook Outlook
IMAP IMAP
New Email
Open and Click tracking
Use Cases

Gmail API Use Cases

Integrate Gmail into your platform. From recruiting to sales to outreach, give your users professional email communication at scale.

Your ATS
Candidates Jobs
Candidate Job Via Created
Michel Opra
Senior Dev
Gmail
2 hours ago
Sofia Rivera
UX Lead
Gmail
5 hours ago
Daniel Martinez
Marketer
Outlook
1 day ago
Gabriel Lopez
Designer
Gmail
2 days ago

ATS Publisher

Let recruiters sync Gmail conversations with candidates. Faster scheduling, fewer missed replies, more placements.

ATS Use Case
Your CRM
Contacts Deals
Contacts Company Via Status
Michel Opra
NexaTech
Gmail
Responsive
Sofia Rivera
Synthex
Gmail
Interested
Daniel Martinez
Orbix
Outlook
Proposal
Elena Garcia
Quark
Gmail
Won

CRM Publisher

Sync Gmail conversations into your CRM. Your users manage deals and follow-ups with full email context, no app switching.

CRM Use Case
Your Outreach Tool
Sequences Contacts
Sequence Step Channels Status
1
Michel - Intro Email + Calendar
Email Calendar
Live
2
Sofia - Multi-channel LinkedIn + WhatsApp
LinkedIn WhatsApp Email
Live
3
Daniel - Schedule Email + Calendar
Email Calendar
Paused
4
Elena - Demo Calendar + Email
Calendar Email
Draft

Outreach

Add Gmail email steps to multi-channel sequences. Professional outreach with 99.5% delivery rate and open tracking.

Outreach Use Case

Build Features into Your Product Today

Try our White-Label solution for free and unlock its full potential for your business. With the 7-Day Free Trial, gain access to the complete suite of features designed to enhance your platform's capabilities and branding.

How many accounts?
5.00
/account/month
How accounts are calculated Pricing is based on the number of linked accounts. For example, 3 Emails + 2 LinkedIn + 6 WhatsApp accounts would cost 55€ (11 x 5€) (or $60.5, 11 x $5.5). No additional cost by request. We have minimum of 49€/month ($55), including up to 10 accounts.

What's included

check
One API. All channels
Linkedin, Instagram, Email, WhatsApp...
check
All Features
Outreach, Real-time Inbox, Enrichment...
check
Unlimited usage
Only providers limit apply.
check
7-Day Free Trial
Build Now
Cancel anytime. No credit card required
Built for Developers

Gmail API Integration for Modern Apps

Connect Gmail accounts in minutes. Simplified Google OAuth, no complex scopes management. Send, receive, and track emails from your codebase with a unified API.

Simple Integration

Send emails, sync inboxes, and manage folders with a few lines of code. Our SDK handles OAuth, token refresh, and session management automatically.

gmail-integration.js
// Connect to Gmail in seconds
import { UnipileClient } from 'unipile-node-sdk';

const client = new UnipileClient({
  dsn: 'https://api.unipile.com',
  token: process.env.UNIPILE_TOKEN
});

// Send an email via Gmail
await client.email.send({
  account_id: accountId,
  to: [{ email: 'elena@acme.com' }],
  subject: 'Quick follow-up on our call',
  body: 'Hi Elena, here is the proposal...',
  tracking: { opens: true, clicks: true }
});

// List emails from inbox
const emails = await client.email.list({
  account_id: accountId,
  folder: 'INBOX',
  limit: 50
});
Gmail
Gmail
Outlook
Outlook
IMAP
IMAP
One Unified API

RESTful API

Clean, standardized endpoints with JSON responses. Send emails, list folders, and manage labels through predictable REST calls.

Real-time Webhooks

Get instant notifications for new emails, opens, clicks, and replies. No polling required, zero latency on events.

Key Advantage

Simplified Google OAuth

Skip the complex Google OAuth setup. Unipile handles the entire authentication flow: consent screens, token refresh, scope management, and security reviews. Your users connect Gmail in one click.

Open & Click Tracking

Built-in email tracking with real-time webhook notifications. Know exactly when recipients open emails and click links.

Labels & Folders Sync

Full access to Gmail labels and folder structures. List, get, and filter emails by label to organize inbox data in your app.

Attachments Support

Send and receive emails with attachments — PDFs, images, documents. Full file support through a single unified endpoint.

Google OAuth

Google OAuth, Simplified

Google OAuth verification is complex, consent screens, security reviews, CASA assessments, annual re-certifications. Unipile handles all of it, including the security compliance, so you can focus on building.

DIY Google OAuth
Complex
Create Google Developer Console Project
Set up project, enable Gmail API, configure OAuth credentials
Configure OAuth Consent Screen
App info, logo, privacy policy, terms, authorized domains
Manage OAuth Scopes & Permissions
gmail.send, gmail.labels, gmail.readonly, gmail.modify...
Build Token Refresh & Session Logic
Handle token expiration, refresh cycles, reconnection flows
Record Demonstration Video
Unlisted YouTube video showing OAuth flow + all features
Submit for Google Verification
2–8 weeks review, multiple remediation rounds possible
2–8 weeks wait
CASA Security Assessment (Tier 2 or 3)
External audit by third-party assessor, mandatory for restricted scopes
~$500/year + weeks
Yearly Re-certification
Annual security re-assessment to maintain verified access
Total time to production 6–12 weeks
With Unipile
Simple
Sign Up & Get API Token
Create your Unipile account and generate credentials
5 minutes
Use Hosted Auth Link
One-click Gmail connection for your users — we handle the entire OAuth flow
Instant
Start Sending & Receiving Emails
Token refresh, session persistence, reconnection — all managed automatically
1–2 days
CASA Tier 2 Certified
Google Cloud Security Assessment
✓ Verified
Unipile is CASA Tier 2 certified — the Google-mandated security assessment for accessing restricted Gmail scopes. By using Unipile, your app benefits from our certification without going through the assessment yourself.
Skip the $500/year CASA audit — covered by Unipile
Access restricted scopes (gmail.modify, gmail.send) instantly
No yearly re-certification on your side — we handle renewals
Enterprise-ready compliance for your customers from day one
Total time to production 1–2 days
Want a full white-label experience?
You can optionally use your own Google OAuth credentials for complete branding control. Unipile guides you through the entire verification process. Read the full Google OAuth guide →
Unified Dashboard

One dashboard for all your integrations

Manage all your LinkedIn, WhatsApp, Gmail accounts and more from a single, intuitive interface.

/
Acme
/
Application
Documentation
API Reference
Changelog
Connect a new account
Select the type of account you
want to connect
LinkedIn
LinkedIn
WhatsApp
WhatsApp
Instagram
Instagram
Telegram
Telegram
Google
Google
IMAP
IMAP
Microsoft
Microsoft
Google Calendar
Google Calendar
Outlook Calendar
Outlook Calendar

Accounts

20 Operational
0 Authentication required
0 Service interruption
0 Paused
Name ID Status Linked
Operational Linked on
03/01/2025
Operational Linked on
02/15/2025
Operational Linked on
02/10/2025
Operational Linked on
03/01/2025
Operational Linked on
02/28/2025
Operational Linked on
02/20/2025
Operational Linked on
03/01/2025
Operational Linked on
02/25/2025
Operational Linked on
03/01/2025
Operational Linked on
02/22/2025
Operational Linked on
02/14/2025
Operational Linked on
02/12/2025
Operational Linked on
02/08/2025
Operational Linked on
02/05/2025
Operational Linked on
03/01/2025
Operational Linked on
02/15/2025
Operational Linked on
03/01/2025
Operational Linked on
02/22/2025
Try for free
Dashboard Demo

Discover More from Our API Suite

Beyond Gmail, Unipile connects your product to WhatsApp, LinkedIn, and calendars. Build a complete communication layer with a unified API approach.

WhatsApp
LinkedIn
Instagram
Telegram

Messaging API

Connect WhatsApp, LinkedIn, Instagram, and Telegram to send messages, sync conversations, and manage contacts. Build unified inbox, outreach, and social selling features in your app.

Outlook
IMAP

Email API

Integrate Outlook and IMAP providers to send, receive, and sync emails in real time. Build powerful email features with tracking, threading, and attachment support.

Google Calendar
Outlook Calendar

Calendar API

Sync Google Calendar and Outlook events in real time. Create, update, and manage meetings directly from your product. Ideal for scheduling features and CRM integrations.

3000+ Companies Innovating with Unipile
Trusted by industry leaders
1 API
Streamline operations for all major communication channels
2 Days
Achieve live integration quickly with minimal setup
30%
Reduction in maintenance efforts and resources

Built-In Security and Compliance

Enterprise-grade protection for your data and workflows Learn more about our security
SOC 2 Type II
SOC 2 Type II
Certified
Independently audited security controls ensuring data protection and operational integrity.
GDPR
GDPR
Compliant
Full compliance with European data protection regulations for user privacy.
99.9%
Platform Uptime over the last 24 months
24/7
Global Support with high-performance API

Gmail API — Frequently Asked Questions

Everything you need to know about integrating Gmail through Unipile's unified email API

The Gmail API enables developers to access Gmail features like reading emails, composing drafts, sending messages, organizing the inbox, and customizing settings. Unipile leverages this API, offering streamlined integration and expertise to enhance your app's email functionality with a single unified endpoint that also supports Outlook and IMAP.
Unipile handles the entire Google OAuth flow for you — consent screens, scope management, token refresh, and Google security reviews. Instead of building and maintaining your own OAuth implementation, you use our hosted authentication link. Your users connect their Gmail in one click, and Unipile manages session persistence and automatic reconnection. For detailed guidance, visit the Google OAuth documentation.
Getting started is simple: sign up for a Unipile account, generate your API token, and use our hosted auth link to connect your first Gmail account. From there, you can send emails, list inboxes, and set up webhooks in minutes. If you've integrated APIs before, expect 1–2 days to go live. Check our developer documentation for step-by-step guides.
Yes. You can send emails, reply to threads, and attach files through a single API call. Unipile also provides built-in open and click tracking — you'll receive real-time webhook notifications when a recipient opens your email or clicks a link. No third-party tracking tools needed.
Yes. Unipile provides one unified email API that works identically across Gmail, Outlook, and any IMAP provider. You write your integration once and support all three — same endpoints for sending, receiving, listing folders, and managing emails. No provider-specific code needed.
Using an email API provides several key benefits: scalability for sending emails at volume, automation of transactional and outreach workflows, seamless integration with your existing tools and platforms, and improved deliverability with analytics tracking. With Unipile, you also get multi-provider support and simplified authentication on top.
The Gmail API provides access to a massive user base of 1.5 billion worldwide users. By integrating it into your CRM, you can sync contacts effortlessly, eliminate manual data entry, log email conversations automatically, and give your users a complete view of their customer interactions — all without leaving your platform.
The Google Mail API offers free access for basic usage, subject to Gmail's daily sending limits. However, for higher usage or additional features, you may need a paid Google Workspace subscription. Unipile develops a comprehensive email API that supports all constraints and provides detailed pricing information here.
Unipile implements OAuth 2.0 for authentication and secure access tokens to protect data. All communications use SSL/TLS encryption for data in transit. We are fully GDPR compliant with data stored in Europe by default, and offer DPA agreements upon request. For more details, visit Unipile's documentation.
Unipile's solutions facilitate improved business processes, including recruitment efficiency, enhanced customer relationship management, and effective outreach strategies. For detailed insights into these applications, please visit our use cases: ATS Publisher, CRM Publisher, and Outreach.

Still have questions? Our team is here to help.

en_USEN