Skip to content

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

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

  • Case study
  • Case study
How it works

From signup to first email in three steps

  1. 01

    Get your API key

    Sign up free and create a key in the dashboard.

  2. 02

    Connect Google or Microsoft

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

  3. 03

    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 Tevanio 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
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

  • CASA Tier 2: Cloud Application Security Assessment, assessed annuallyCloud Application Security AssessmentCASATIER 2assessed annually

    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.

  • Microsoft publisher verified

    Your users see Tevanio as a verified publisher on the Microsoft consent screen.

    No publisher verification for you to set up.

Frequently asked questions

One set of endpoints that reads and sends mail across providers. With Tevanio you connect a Google account, a Microsoft account or any IMAP mailbox and call /v1/email for all of them: the same threads, messages, folders, attachments and send requests, whichever provider sits behind the account. Each account’s capabilities field says what its provider supports.

Gmail and Google Workspace mailboxes through a Google account, Outlook mailboxes through a Microsoft 365 account, and any other mailbox over IMAP and SMTP: iCloud, Yahoo, Fastmail, GMX, Zoho or a company’s own domain. One hosted link (GET /v1/connect/email) asks for the address and picks the right one, with the provider’s app-password steps for IMAP.

iCloud, Yahoo, AOL, Fastmail and others refuse the account password from mail apps and ask for an app password instead. The hosted page shows that provider’s steps and link before the password field, says when IMAP access has to be turned on first, and checks IMAP and SMTP sign-in before it stores anything. POST /v1/email/imap/discover gives your own form the same settings and steps.

IMAP has folders, not labels, so label calls answer 400. Drafts, forward, scheduled send, holdAsDraft, open, click and reply tracking, email.sent, bounces, Tevanio signatures and declared send-as addresses work the same. An IMAP connection is email only, with no calendar, files or contacts. Proton Mail is not supported.

Encrypted, and used only to sign in to the user’s mail server. When a password stops working, Tevanio stops checking the mailbox so the provider does not lock it, and fires account.disconnected with a reconnect link that asks only for the new password and keeps the same account ID.

Subscribe to the message.received webhook. Tevanio watches each connected mailbox and fires it for every new inbound message, so there is no polling loop to run. Gmail and Outlook push new mail to Tevanio as it arrives. IMAP mailboxes push over IMAP IDLE, so their mail usually arrives within seconds, with a minute poll as the fallback. The message also lands in Tevanio’s unified inbox.

Each mailbox has a daily cap: 1,000 on Microsoft, 500 on Google Workspace, 200 on consumer Gmail and 200 on an IMAP mailbox. A Microsoft, Google Workspace or Gmail mailbox doubles its cap once, after 14 days of sending with no spam signal, and higher limits are available on request for established senders. Every send returns the remaining quota in the X-Tevanio-Send-Remaining header. The same message reaching more than 50 recipients within an hour pauses the mailbox, since bulk mail belongs in broadcasts.

Yes. Add scheduledFor to send up to 30 days later, then list or cancel it under /v1/email/messages/scheduled. Add holdAsDraft to keep it as a draft the user can edit in Gmail, Outlook or their own mail app until then. Add trackOpens, trackLinks or trackReplies to get the email.opened, email.link_clicked and email.thread_replied webhooks, with the metadata you sent. Tracking costs nothing extra. Opens are a signal rather than proof, since image proxies and image blocking affect them.

Yes. POST /v1/email/drafts saves a draft in the user’s own mailbox (Gmail, Outlook or an IMAP Drafts folder), threaded as a reply when you pass replyToMessageId. The person reviews or edits it in their mail client. Pass the draft version as If-Match to POST /v1/email/drafts/{draftId}/send, and it goes out only if nobody changed it since. Read messages with clean=true to give the model only the new text of each mail, without quoted history.

Gmail and IMAP sends need a payment method on your Tevanio workspace. Reading mail, Outlook sends, calendar and files do not.

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