Skip to main content

Gmail resources

messages

list (metadata enrichment)

Gmail’s messages.list returns only id and threadId. Sanvex fetches format=metadata per message (up to 25 per call) and returns summarized fields. Cost: one list request plus up to maxResults metadata requests (capped at 25). Use raw Gmail API shapes only if you need bulk listing without enrichment. Each item in messages: Use q for Gmail search:

get

Returns a flat object (subject, from, to, date, snippet, bodyText when format=full) instead of raw MIME payload—unless format=raw.

threads

Local DB

Entity type: email_message API base: https://gmail.googleapis.com/gmail/v1/users/me