Documentation Index
Fetch the complete documentation index at: https://mintlify.com/googleworkspace/cli/llms.txt
Use this file to discover all available pages before exploring further.
Overview
The Gmail API provides access to Gmail mailboxes and allows you to send email, manage drafts, labels, threads, and more. API Name:gmailVersion:
v1Official Documentation: Gmail API Reference
Common Resources
Messages
Send, read, and manage email messages.The user’s email address or
me for the authenticated userThe message ID
Gmail search query (e.g.,
"is:unread from:boss@example.com")Maximum number of messages to return (default: 100, max: 500)
Labels
Organize messages with labels.The user’s email address or
meThe label ID
The display name of the label
Drafts
Create and manage draft messages.The user’s email address or
meThe draft ID
Common Methods
List Messages
Get Message
Send Email
Search Messages
Modify Labels
Create Draft
List Labels
Response Format
Message list response:Related Helper Commands
+send- Send an email message+triage- Show unread inbox summary+watch- Watch for new emails and stream as NDJSON
Key Resources
users.messages- Send, read, manage messagesusers.drafts- Create and manage draftsusers.labels- Create and manage labelsusers.threads- Manage email threadsusers.settings- Manage Gmail settingsusers.history- Track mailbox changes