Skip to main content

Gmail

Type ID: gmail  ·  Kind: Action  ·  Ports: 1 in, 1 out

Send and read emails using the Gmail API.

Credentials​

Gmail

Resources & operations​

  • Message (message)
    • Send (send) - Send a message
    • Read All (readAll) - Read all messages

Properties​

Common​

PropertyKeyTypeRequiredDefaultPossible valuesApplies when
ResourceresourceoptionsNomessageMessage (message)-
OperationoperationoptionsNosendSend (send), Read All (readAll)resource = message

Message → Send​

PropertyKeyTypeRequiredDefaultPossible valuesApplies when
To (Recipients)toRecipientsstringYes''Comma-separated list of primary recipient email addressesresource = message, operation = send
Email SubjectsubjectstringNo''Free textresource = message, operation = send
MessagebodyContentstringNo''Free text (message body)resource = message, operation = send
Advanced Email OptionsadditionalFieldsobjectNo{}Collection (see below)resource = message, operation = send

additionalFields collection options:

PropertyKeyTypeRequiredDefaultPossible values
BCC (Hidden Recipients)bccRecipientsstringNo''Comma-separated list of BCC email addresses
CC (Carbon Copy Recipients)ccRecipientsstringNo''Comma-separated list of CC email addresses
Body Content FormatbodyContentTypeoptionsNotextHTML (html), Text (text)
Reply-To AddressreplyTostringNo''Email address recipients should reply to

Message → Read All​

PropertyKeyTypeRequiredDefaultPossible valuesApplies when
OutputoutputoptionsNosimpleSimplified (simple), Raw (raw), Select Included Fields (fields)resource = message, operation = readAll
LimitlimitnumberYes100Max number of results to returnresource = message, operation = readAll
Include AttachmentsincludeAttachmentsbooleanNofalseDownload message attachments and return them as binary dataresource = message, operation = readAll
FieldsfieldscheckboxYes[]id, threadId, labelIds, snippet, historyId, internalDate, payload, sizeEstimate, raw, classificationLabelValuesresource = message, operation = readAll, output = fields
FiltersuserFiltersobjectNo{}Collection (see below)resource = message, operation = readAll

userFilters collection options:

PropertyKeyTypeRequiredDefaultPossible values
Filter ByfilterByoptionsNofiltersFilters (filters), Search (search)
SearchsearchstringNo''Gmail search query (e.g. from:user@example.com subject:hello); shown when filterBy = search
FiltersfiltersobjectNo{}Nested collection (see below); shown when filterBy = filters

userFilters.filters nested collection options:

PropertyKeyTypeRequiredDefaultPossible values
Read StatusreadStatusoptionsNounreadUnread and read messages (both), Unread messages only (unread), Read messages only (read)
Received AfterreceivedAfterdateTimeNo''ISO date string or millisecond timestamp
Received BeforereceivedBeforedateTimeNo''ISO date string or millisecond timestamp
SendersenderstringNo''Sender name or email to filter by
Has AttachmenthasAttachmentbooleanNofalsetrue / false
LabellabelstringNo''Label name (e.g. INBOX, SENT, IMPORTANT)

Notes​

  • To (Recipients) is required for Send; Limit is required for Read All; Fields is required when Output = Select Included Fields.
  • Send output: { success, messageId, threadId, labelIds }.
  • Read All output: { success, data: [...] } (empty data array when no messages match).