Skip to main content
Emails come newest first (by their date). Results are paged with a cursor.

Filters

All filters are optional and combine with AND.
string
Emails of one account (acc_…). Without it, all accounts.
string
A folder’s fld_… id, its provider id, or a role (INBOX, SENT, ARCHIVE, …).
string
The email’s main role, such as INBOX or SENT. An email you sent to yourself (in Inbox and Sent) matches only its main role.
string
Sender address (exact, case-insensitive).
string
A recipient address (to, cc or bcc).
string
Sender or any recipient: everything exchanged with this person.
string
All emails of a conversation.
boolean
true for unread only, false for read only.
boolean
Flagged (IMAP) or starred (Gmail) emails.
boolean
Emails with attachments (inline images count).
string
Subject contains (case-insensitive).
date-time
Dated before this time (ISO 8601).
date-time
Dated after this time.
boolean
default:"false"
Add every header of each email.
integer
default:"50"
1 to 250.
string
From the previous page.
An account_id that isn’t an acc_… id gets 400 errors/invalid_parameters.

Response

Each item is a full email object, bodies included. When has_more is true, pass cursor back, with the same filters, to get the next page.

Examples

GET /api/v1/emails?account_id=acc_…&folder=INBOX&unread=true
GET /api/v1/emails?account_id=acc_…&any_email=ana@example.com
GET /api/v1/emails?thread_id=1a11078796ab3f43
GET /api/v1/emails?account_id=acc_…&role=SENT&has_attachments=true&after=2026-09-29T00:00:00Z