Email
List mailbox folders
GEThttps:/ / zernio.com/ api/ v1/ email/ folders
On Google, folders are Gmail labels (system labels carry wellKnown; unreadCount and totalCount are present only where Gmail reports them). There is no archive folder on Google; archived mail is listed with folder=archive.
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.
Responses
Success· the request worked
Errors· the request failed
List drafts
The mailbox's drafts, newest first, including drafts the user wrote in their mail app. Drafts in the trash are left out. Rows carry no bodies on Google; get a draft to read them.
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.