Email
List email messages
GEThttps:/ / zernio.com/ api/ v1/ email/ messages
Same filters and envelope as GET /v1/email/threads, one row per message. Bodies are omitted; fetch a message to read text and html.
Authentication
AuthorizationBearer tokenRequired
API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.
Query parameters
accountIdstringRequired
The connected Google, Microsoft or IMAP account.
folderstring
unreadboolean
starredboolean
hasAttachmentboolean
subjectstring
fromstring
tostring
ccstring
bccstring
anyEmailstring
afterstring (date-time)
beforestring (date-time)
searchQueryNativestring, max 500
sortOrderstringDefault
descOne of asc | desccursorstring
limitintegerDefault
50Responses
Success· the request worked
Errors· the request failed
How it behaves
On Google
- List rows also omit
attachments(Gmail's metadata pages carry headers only);hasAttachment=truestill filters server-side. sortOrder=ascreverses the fetched page.archivemeans mail without the inbox, trash or spam labels.
List labels
Gmail labels, system and user, or the Outlook category list. If an organization blocks reading the Outlook list, it comes back empty and categories still apply to messages by name.
List send-as addresses
The addresses a mailbox can send from, for `from`, each with the signature `appendSignature` would add. Gmail lists every alias itself. Outlook lists the mailbox address and its aliases, plus any address declared with `POST /v1/email/send-as`.