Google’s email service for sending, receiving, and managing emails
gmail.createEmailDraft
mailRecipient
(TEXT, Required): Email address of the person you want to send the email to
mailSubject
(TEXT, Optional): Subject line for the email draftmailBody
(MULTI_LINE_TEXT, Optional): Main content of the email draft. Provide HTML-formatted content with proper tags: use <b>
for bold text, <i>
for italic text, <ul><li>
for bullet lists, <ol><li>
for numbered lists, and <br>
for line breaks. Example: <b>Important:</b> This is a <i>test</i> email.<br><br>Features:<ul><li>First item</li><li>Second item</li></ul>
cc
(TEXT, Optional): Email addresses to carbon copy on this reply. Multiple addresses should be separated by commas, for example: mats@acme.com, jonas@acme.combcc
(TEXT, Optional): Email addresses to blind carbon copy on this reply. Recipients won’t see who was BCC’d. Multiple addresses should be separated by commas, for example: mats@acme.com, jonas@acme.comattachments
(FILE, Optional): Files to attach to the draftgmail.replytoEmail
mailSubject
(TEXT, Required): Subject line for the email
mailRecipient
(TEXT, Required): Email address of the person you want to send the email tomailBody
(MULTI_LINE_TEXT, Required): Main content of the email. Provide HTML-formatted content with proper tags: use <b>
for bold text, <i>
for italic text, <ul><li>
for bullet lists, <ol><li>
for numbered lists, and <br>
for line breaks. Example: <b>Important:</b> This is a <i>test</i> email.<br><br>Features:<ul><li>First item</li><li>Second item</li></ul>
threadId
(TEXT, Required): The unique identifier of the email thread you want to send a reply tocc
(TEXT, Optional): Email addresses to carbon copy on this reply. Multiple addresses should be separated by commas, for example: mats@acme.com, jonas@acme.combcc
(TEXT, Optional): Email addresses to blind carbon copy on this reply. Recipients won’t see who was BCC’d. Multiple addresses should be separated by commas, for example: mats@acme.com, jonas@acme.comattachments
(FILE, Optional): Files to attach to the replygmail.sendEmail
mailSubject
(TEXT, Required): Subject line for the email
mailRecipient
(TEXT, Required): Email address of the person you want to send the email tomailBody
(MULTI_LINE_TEXT, Required): Main content of the email. Provide HTML-formatted content with proper tags: use <b>
for bold text, <i>
for italic text, <ul><li>
for bullet lists, <ol><li>
for numbered lists, and <br>
for line breaks. Example: <b>Important:</b> This is a <i>test</i> email.<br><br>Features:<ul><li>First item</li><li>Second item</li></ul>
cc
(TEXT, Optional): Email addresses to carbon copy on this reply. Multiple addresses should be separated by commas, for example: mats@acme.com, jonas@acme.combcc
(TEXT, Optional): Email addresses to blind carbon copy on this reply. Recipients won’t see who was BCC’d. Multiple addresses should be separated by commas, for example: mats@acme.com, jonas@acme.comattachments
(FILE, Optional): Files to attach to the emailgmail.searchEmails
filter
(TEXT, Optional): Search term to find specific emails. You can search by sender, recipient, subject, or content within the email body. Only return messages matching the specified query. Supports the same query format as the Gmail search box. For example, 'from:someuser@example.com rfc822msgid:<somemsgid@example.com>
is:unread’. Please only set this field, if you really need to filter the emails. If you just want the latest, leave it empty.message
: Summary message about the search resultsemails
: Array of email objects containing:
messageId
: Email message IDthreadId
: Email thread IDsubject
: Email subjectdate
: Email datefrom
: Sender informationto
: Recipient informationsnippet
: Email snippetbody
: Email body contenthasAttachments
: Whether the email has attachmentsattachmentCount
: Number of attachmentsgmail.getEmailwithAttachments
threadId
(TEXT, Optional): The unique identifier of the email thread to retrieve. Either threadId or messageId is required.
messageId
(TEXT, Optional): The unique identifier of a specific email message to retrieve. Either threadId or messageId is required.gmail.createDraftReply
threadId
(TEXT, Required): The id of the thread where the message is in that should be answered.
replyContent
(MULTI_LINE_TEXT, Required): The email content that should be the content of the draft. Provide HTML-formatted content with proper tags: use <b>
for bold text, <i>
for italic text, <ul><li>
for bullet lists, <ol><li>
for numbered lists, and <br>
for line breaks. Example: <b>Important:</b> This is a <i>test</i> email.<br><br>Features:<ul><li>First item</li><li>Second item</li></ul>
to
(TEXT, Optional): Email address of the recipient. If left empty, the reply will be sent to the sender of the last message in the thread. Multiple addresses should be separated by commas, for example: mats@acme.com, karl@acme.comcc
(TEXT, Optional): Email addresses to carbon copy on this reply. Multiple addresses should be separated by commas, for example: mats@acme.com, jonas@acme.combcc
(TEXT, Optional): Email addresses to blind carbon copy on this reply. Recipients won’t see who was BCC’d. Multiple addresses should be separated by commas, for example: mats@acme.com, jonas@acme.comattachments
(FILE, Optional): Files to attach to the draft replygmail.newEmail
gmail.newEmailMatchingSearch
searchQuery
(TEXT, Required): Google search query to filter emails. Examples: ‘from:johndoe@example.com’, ‘subject:Important’, ‘has:attachment’. Sent emails are automatically excluded unless you include ‘in:sent’ in your queryIssue | Solution |
---|---|
Authentication failed | Verify your OAuth credentials |
Rate limit exceeded | Reduce request frequency |
Data not found | Check permissions and data availability |
Connection timeout | Verify network connectivity |