Email API for Gmail, Outlook and IMAP

Read, search, send and reply from your users' Gmail, Outlook and IMAP mailboxes with one REST API. Same requests for every provider, with a webhook for every new message.

  • Gmail + Outlook + IMAP
  • Open and click tracking
  • Scheduled send
Inbox
northsupplyAny update on my order?
9:40
Daniel ParkRe: Contract draft
9:12
lauravisualsCan you send me the guide?
8:55
Marta RuizCan someone check this refund?
Yesterday
Priya ShahOffsite agenda
Yesterday

Join 200,000+ of the world's most ambitious developers and builders

Warner Music Group
Runable
ClickUp
MoFlo
RE/MAX
Readdy
Supported platforms

One API. Gmail, Outlook and IMAP

Connect a Google account, a Microsoft account or any IMAP mailbox, and call the same email endpoints for all three

  • Gmail
  • Google Calendar
  • Google Drive
  • Google Contacts

Gmail, read and send

Threads, labels, attachments and sends from a Gmail or Google Workspace mailbox.

Explore Google
  • Outlook
  • Outlook Calendar
  • OneDrive
  • Outlook Contacts

Outlook, read and send

Threads, folders, attachments and sends from a Microsoft 365 mailbox.

Explore Microsoft
  • iCloud, Yahoo, AOL
  • Fastmail, GMX, Zoho
  • Custom domains

Any IMAP mailbox, read and send

iCloud, Yahoo, Fastmail, GMX, Zoho or a company's own domain, with the same requests.

Explore IMAP
How it works

From signup to first email in three steps

1

Key name

e.g., Production API key

Permission

Read & write

Read only

Profile access

Full access (all profiles)

Create key

Get your API key

Sign up free and create a key in the dashboard.

2

Profile

Default
Google
emailcalendarfilescontacts
Microsoft
emailcalendarfilescontacts

Connect Google or Microsoft

Request a connect link with the areas you need. Each account gets an ID for API calls.

3

POST /v1/email/messages

curl -X POST "https://zernio.com/api/v1/email/messages" \
-H "Authorization: Bearer $ZERNIO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"accountId": "acc_xxx",
"to": [{ "email": "lena@northwind.io", "name": "Lena" }],
"subject": "Your demo on Thursday",
"text": "Hi Lena, see you Thursday at 2 pm."
}'

Send from their mailbox

POST /v1/email/messages sends as the connected user and returns the stored sent copy.

Features

Everything you need for email

Read

  • Threads and messagesNewest first, cursor paginated
  • Filters and searchUnread, sender, dates, native query
  • Folders and labelsCreate labels, tag without moving
  • AttachmentsDownload any attachment by ID
  • Clean textThe new text only, quotes and signature stripped
  • Raw and headersFull headers or the raw message

Send

  • SendFrom any alias or shared mailbox, with a signature
  • Reply and reply allThreaded by the provider
  • ForwardWith the original attachments
  • DraftsVersioned, so a person approves exactly one
  • Scheduled sendUp to 30 days ahead, cancel any time
  • AttachmentsUp to 20 files, 25 MB in total
  • Send caps200 to 1,000 a day per mailbox

Track and organize

  • Open trackingemail.opened when it is opened
  • Link trackingemail.link_clicked on every click
  • Reply trackingemail.thread_replied when they answer
  • Bounce detectionemail.bounced with a recommended action
  • Read, star, label, moveGmail labels, Outlook categories
  • message.receivedA webhook for each new email
Hosted connect

One link connects any mailbox

Your user types their email address and Zernio finds the provider. No provider picker, no server settings form.

  • Gmail and Microsoft addresses go to their own sign-in
  • Other mailboxes get their provider's app-password steps
  • Errors name the step that failed, in plain words
  • Reconnect asks only for the new password
Connect your emailmaria@icloud.com
iCloud needs an app-specific passwordApple Account, Sign-In and Security, App-Specific Passwords
••••-••••-••••-••••
  • Found iCloud Mail settings
  • Signed in to IMAP
  • Signed in to SMTP
  • Found Sent and Drafts
Security

Verified consent screens, no app review on your side

Ask only for the areas you need (email, calendar, files or contacts) and your users grant just those. How we handle user data

Verified for restricted Gmail and Drive scopes

  • CASA Tier 2 security assessed by an independent, authorized lab, renewed every year.
  • No restricted-scope review or CASA assessment for you to run.
  • Drive uses drive.file: only files your users pick or your app creates.
CASA Tier 2 security assessed

Microsoft publisher verified

  • Your users see Zernio as a verified publisher on the Microsoft consent screen.
  • No publisher verification for you to set up.
Marketing infrastructure

More on the same API key

Posting, DMs, analytics, and ads run on the same API and the same connected accounts.

  • Posting API

    Publish, schedule, and manage content across 18 platforms

    Simon Fairhurst@siimonfairhurst
  • Ads API

    Campaigns, boosts, and ad analytics in one API

    Meta Ads

    Pricing launch

    $412

    Summer Sale

    $40/day

    Active

    Retargeting

    $30/day

    Paused
  • Messaging API

    Every DM, one API

    @leahmarx Ship to Berlin?

    @sofia In stock? 😍

    @casa.lumen Order update? 🙌

  • Analytics API

    Every metric, one endpoint

    Views18.4K
    Likes3,410
    Views31.9K
    Comments58
    Total reach · last 7 days184.6K+12.4%
  • Comments API

    Moderate every comment

    sarah.klein

    Does this cover Threads as well?

    ReplyDMHide

    lauravisuals

    Shipped our whole calendar with this 🙌

    ReplyDMHide

    nate_builds

    Any way to schedule a carousel?

    ReplyDMHide
  • Comments to DM API

    Turn comments into DMs

    @lucia_dev Guide 🙌

    @andrewww_ Guide

    lucia_dev

    Here's the guide 👇 · now

    andrewww_

    Here's the guide 👇 · 1m

  • Scheduler API

    Schedule posts in every timezone

    Simon Fairhurst@siimonfairhurst

    Q3 recap is live 📈 Everything we shipped this quarter, in one place.

    Tue, Oct 14 · 09:00

  • Inbox API

    One inbox for comments, DMs, and reviews

    All platformsAll profilesAll accounts

    Olly Bennett

    · via +44 7700 900456

    Are you open on Sunday?

    2m

    Diego

    · via +1 646 555 0199

    Is my order ready to pick up?

    6m

    Nadia Okafor

    · via @nadia.okafor

    Love the new drop 😍

    9m

    Vela Notifications

    · via #orders

    New order #4821 from Lisbon

    20m

    Elias Duarte

    · via Google review

    ★★★★★ Worth the queue

    1h
  • Calendar API

    Events and open slots on every calendar

    Demo with Northwind

    Google Meet · 4 guests

    10:00

    Product review

    Teams · 6 guests

    12:00

    Free for everyone

    14:00 – 15:00 · 3 calendars

    Open
  • Files API

    Upload and share on Drive and OneDrive

    Launch photo.jpg
    Q4 report.pdf

Frequently asked questions

Add Gmail, Outlook and IMAP to your app

Connect a mailbox, send the first email and get a webhook for every reply.

  • Gmail + Outlook + IMAP
  • Open and click tracking
  • Scheduled send