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.
account_id that isn’t an acc_… id gets 400 errors/invalid_parameters.
Response
has_more is true, pass cursor back, with the same filters, to get the next page.
Examples
Unread emails in the inbox
Unread emails in the inbox
GET /api/v1/emails?account_id=acc_…&folder=INBOX&unread=trueEverything exchanged with one person
Everything exchanged with one person
GET /api/v1/emails?account_id=acc_…&any_email=ana@example.comA whole conversation
A whole conversation
GET /api/v1/emails?thread_id=1a11078796ab3f43Sent last week, with attachments
Sent last week, with attachments
GET /api/v1/emails?account_id=acc_…&role=SENT&has_attachments=true&after=2026-09-29T00:00:00Z