Email API for Gmail and Outlook
Read, search, send and reply from your users' Gmail and Outlook mailboxes with one REST API. Same requests for both providers, with a webhook for every new message.
- Gmail + Outlook
- Webhooks
- One API

One API. Gmail and Outlook
Connect a Google or Microsoft account and call the same email endpoints for both
Gmail, read and send
Threads, labels, attachments and sends from a Gmail or Google Workspace mailbox.
Explore GoogleOutlook, read and send
Threads, folders, attachments and sends from a Microsoft 365 mailbox.
Explore MicrosoftFrom signup to first email in three steps
1Key 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.
2Profile
Connect Google or Microsoft
Request a connect link with the areas you need. Each account gets an ID for API calls.
3POST /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.
Everything you need for email
Read
- Threads and messagesNewest first, cursor paginated
- Filters and searchUnread, sender, dates, native query
- Folders and labelsGmail labels, Outlook folders
- AttachmentsDownload any attachment by ID
- Raw and headersFull headers or the raw message
Send
- SendTo, cc, bcc, text and HTML
- Reply and reply allThreaded by the provider
- AttachmentsUp to 20 files, 25 MB in total
- Headers and metadataCustom X- headers, your own keys
- Send caps1,000 a day on Outlook, 500 on Workspace
Organize and listen
- Read stateMark messages read or unread
- Star and flagGmail stars, Outlook flags
- MoveBetween folders or labels
- TrashOne call per message
- message.receivedA webhook for each new email
Frequently asked questions
Add Gmail and Outlook to your app
Connect a mailbox, send the first email and get a webhook for every reply.
- Gmail + Outlook
- Webhooks
- One API

More on the same API key
Posting, DMs, analytics and ads run on the same API as your users' mailboxes.
Publish, schedule, and manage content across 16 platforms
Campaigns, boosts, and ad analytics in one API
Meta Ads
Pricing launch
Summer Sale
$40/day
Retargeting
$30/day
Every DM, one API
@leahmarx Ship to Berlin?
@sofia In stock? 😍
@casa.lumen Order update? 🙌
Every metric, one endpoint
Moderate every comment
sarah.klein
Does this cover Threads as well?
lauravisuals
Shipped our whole calendar with this 🙌
nate_builds
Any way to schedule a carousel?
Turn comments into DMs
@lucia_dev Guide 🙌
@andrewww_ Guide
lucia_dev
Here's the guide 👇 · now
andrewww_
Here's the guide 👇 · 1m
Schedule posts in every timezone
Q3 recap is live 📈 Everything we shipped this quarter, in one place.
Tue, Oct 14 · 09:00
One inbox for comments, DMs, and reviews
Olly Bennett
· via +44 7700 900456
Are you open on Sunday?
Diego
· via +1 646 555 0199
Is my order ready to pick up?
Nadia Okafor
· via @nadia.okafor
Love the new drop 😍
Vela Notifications
· via #orders
New order #4821 from Lisbon
Elias Duarte
· via Google review
★★★★★ Worth the queue