Messages
The store: list/read (parsed content, raw MIME, individual parts), flags/labels/keywords updates, batch operations, trash and restore, incremental sync (/changes), spam-filter training, and the live WebSocket event feed.
- GETList mailbox messagesLists messages newest-first (or oldest-first with order=asc) with cursor pagination, optionally filtered to one label. sortBy=date orders by the Date header…
- PATCHUpdate flags and labels for multiple messages or whole conversationsApplies flag, label, and keyword updates across multiple messages in a single atomic operation.
- POSTAppend raw MIME message to mailboxStores raw RFC 5322 email bytes directly into a mailbox under a label without sending (similar to IMAP APPEND).
- DELETEEmpty trash, or delete a batch of messages or whole conversationsPermanently purges every row on the Recently-deleted tier with state=expunged, or deletes the messages named by ids and/or the conversations named by threadIds.
- GETGet message metadataReturns metadata for a specific message including subject, sender/recipients, labels, flags, UIDs, and timestamps.
- PATCHUpdate message flags and labelsUpdates message flags, adds or removes labels, and modifies custom keywords.
- DELETEDelete a messageSoft-deletes a message to trash or permanently purges it.
- GETGet parsed message content and attachmentsReturns decoded email headers, inline plain text and HTML bodies, and attachment metadata for a message.
- GETGet raw MIME message bodyStreams the full raw RFC 5322 MIME message bytes directly from storage.
- GETGet specific message MIME partStreams a single decoded MIME part or raw encoded slice from message storage by section number.
- POSTBatch get message metadataRetrieves metadata summaries for up to 200 messages in a single request.
- POSTBatch get raw header blocksReturns each message's raw header block (base64, byte-exact, separator line included) from one bounded head read per message — the projection an IMAP folder…
- POSTBatch get cached MIME structuresReturns cached MIME envelope and body structure metadata for multiple messages without downloading raw blobs.
- GETList the keywords in use, with countsEvery distinct keyword on this mailbox's LIVE messages, most-used first then alphabetical, with how many messages carry each.
- GETFull-text search a mailboxSearches email messages across subject, sender/recipient addresses, and body text using BM25 relevance ranking.
- POSTStructured filter and query messagesExecutes a structured query over mailbox messages with complex filters (combinators, header conditions, date ranges, flag states) and custom sort orders.
- PATCHUpdate flags, labels and keywords for every message a search selectsApplies one patch to every message POST /search/query would return for the same filter — the way to act on a whole result set without naming its messages.
- POSTHighlighted excerpts for search resultsBuilds the same highlighted <mark> excerpts (subject + body preview) the search surfaces return inline under snippet, for up to 50 result ids the caller…
- GETSemantic (meaning-based) search of a mailboxFinds the messages whose MEANING is closest to the query, ranked by similarity — 'the invoice from the Berlin supplier' finds it whether or not those words…
- GETMessages similar to one message'More like this': the message's own embedding is the query.
- GETGet message sync changesAnswers created / updated / destroyed message ids for everything that happened since since, plus a newState to send next time.
- GETSubscribe to live mailbox change events over WebSocketUpgrades to a WebSocket that streams best-effort change signals for this mailbox: message.new (delivery), message.updated / message.expunged / message.restored…
- POSTSave structured message to mailboxConstructs and saves an email message from structured JSON (headers, body text/HTML, attachments) into a mailbox without sending.
- POSTCopy or move messages and conversations into another mailboxStores each message again, from its original bytes, in a folder of another mailbox you can reach, with its flags, keywords and received time.
- POSTTrain spam filter from a messageSubmits spam or ham training feedback for a specific email message to tune the spam filter.
- POSTTrain spam filter from multiple messagesSubmits spam or ham training feedback for a batch of messages in a single request.
- POSTTake messages out of Trash, back to where they were filedRemoves the Trash label from a batch of messages.
- POSTTake messages out of Junk, back to where they were filedRemoves the Junk label from a batch of messages — the "Not spam" verb, and POST /messages/untrash's counterpart for the other state label.
- POSTRestore an expunged message from trashRestores one message from the Recently-deleted tier back to where it was filed (restoresTo), or Inbox when that is no longer resolvable.
- POSTRestore multiple messages from trashRestores a batch of messages from the Recently-deleted tier in a single atomic operation, each back to where it was filed (restoresTo).
Trigger immediate POP3 pickup POST
Manually triggers an immediate POP3 mail fetch out of band without changing the regular schedule.
List mailbox messages GET
Lists messages newest-first (or oldest-first with order=asc) with cursor pagination, optionally filtered to one label. sortBy=date orders by the Date header…