Email

List email messages

Changed on

Same filters and envelope as GET /v1/email/threads, one row per message. Bodies are omitted; fetch a message to read text and html.

On Google

  • List rows also omit attachments (Gmail's metadata pages carry headers only); hasAttachment=true still filters server-side.
  • sortOrder=asc reverses the fetched page.
  • archive means mail without the inbox, trash or spam labels.
get/v1/email/messages

Request

  • Base URL
    https://zernio.com/api
  • URL
    https://zernio.com/api/v1/email/messages
  • Auth
    HTTP bearer

Query parameters

accountIdstring required

The connected Google or Microsoft account.

folderstring
unreadboolean
starredboolean
hasAttachmentboolean
subjectstring
fromstring
tostring
ccstring
bccstring
anyEmailstring
afterstring date-time
beforestring date-time
searchQueryNativestring
sortOrder'asc' | 'desc'
cursorstring
limitinteger

Response

Messages

Changes