Gmail

Gmail

Gmail is a web-based email service from Google. With the Gmail connector, you can perform actions such as send or receive e-mail messages, and trigger flows on new e-mails.

Actions

Delete email

This operation is used to delete a specific email permanently.

Required Parameters

Message ID
string
Id of the email to delete.

Get email details

This operation retrieves the details of a specific email.

Required Parameters

Message ID
string
Unique id of the email message.

Optional Parameters

Include Attachments
boolean
If set to true, attachments will also be retrieved along with the email.

Returns

Email Message
DetailedReceiveMessage

Details associated with a specific email message.

Move email to trash

This operation is used to move a specific email to trash.

Required Parameters

Message ID
string
ID of the email to move to the trash.

Reply to email

This operation is used to reply to a specific email.

Required Parameters

Message ID
string
Id of the email to reply to.
Name
string
Title of the attachment.
Content
byte
Body of the attachment.

Optional Parameters

To
email
Example: recipient1@domain.com; recipient2@domain.com
CC
email
Example: recipient1@domain.com; recipient2@domain.com
BCC
email
Example: recipient1@domain.com; recipient2@domain.com
Subject
string
Email subject (if empty, the original subject used).
Body
string
Content of the email.
Reply All
boolean
True to reply to all recipients. (default: False)
Is HTML
boolean
True to send the reply as HTML. (default: True)
Importance
string
Pick an importance. (default: Normal)
Content-Type
string
Type of content in the attachment.

Send email

This operation is used to send an email to specific recipients.

Required Parameters

To
email
Example: recipient1@domain.com; recipient2@domain.com
Name
string
Title of the attachment.
Content
byte
Body of the attachment.

Optional Parameters

CC
email
Example: recipient1@domain.com; recipient2@domain.com
BCC
email
Example: recipient1@domain.com; recipient2@domain.com
Subject
string
Subject of the outgoing email.
Body
string
Body of the outgoing email.
Is HTML
boolean
True to send the email as HTML. (default: True)
Importance
string
Importance associated with the email message.
Content-Type
string
Type of content in the attachment.
Triggers

When a new email arrives

This operation triggers when a new email matching the specified criteria arrives.

Optional Parameters

Label
string
Pick a label (default: Inbox).
To
email
Example: Recipient1;recipient2@domain.com
From
email
Example: Sender1 | sender2@domain.com
Subject
string
String to look for in the subject.
Importance
string
True if the email should be important. (default: All)
Starred
string
True if the email should be starred. (default: All)
Has Attachments
boolean
True to retrieve only emails with attachments.
Include Attachments
boolean
True to retrieve attachments along with the email.

Returns

Body
DetailedReceiveMessage

Details associated with a specific email message.

Definitions

DetailedReceiveMessage

Details associated with a specific email message.

Attachments
array of Attachment
List of attachments to the email message.
BCC
email
Email addresses contained in the BCC field.
Body
string
Content of the email message.
CC
email
Email addresses contained in the CC field.
Estimated Size
integer
Estimated size in bytes of the message.
From
email
Email address the message was sent from.
Has Attachments
boolean
True if the message has attachments.
Is HTML
boolean
True if the message is in HTML format.
Is Read?
boolean
True if the message is read; false otherwise.
Label IDs
array of string
List of labels associated with the email message.
Message ID
string
The immutable ID of the message.
Received Date-Time
date-time
Example:2017-05-03T20:08:57+00:00
Snippet
string
A short part of the message text.
Subject
string
Subject or topic associated with the email message.
Thread ID
string
The ID of the thread the message belongs to.
To
email
Email address the message was sent to.

Attachment

Properties of an email attachment.

Content
byte
Body of the attachment.
Content-Type
string
Type of content in the attachment.
Name
string
Title of the attachment.

Limits

NameCallsRenewal Period
API calls per connection6060 seconds