
Get
Get
yaml
type: "io.kestra.plugin.googleworkspace.mail.Get"Examples
yaml
id: get_gmail_message
namespace: company.team
tasks:
- id: list_messages
type: io.kestra.plugin.googleworkspace.mail.List
clientId: "{{ secret('GMAIL_CLIENT_ID') }}"
clientSecret: "{{ secret('GMAIL_CLIENT_SECRET') }}"
refreshToken: "{{ secret('GMAIL_REFRESH_TOKEN') }}"
maxResults: 1
- id: get_message
type: io.kestra.plugin.googleworkspace.mail.Get
clientId: "{{ secret('GMAIL_CLIENT_ID') }}"
clientSecret: "{{ secret('GMAIL_CLIENT_SECRET') }}"
refreshToken: "{{ secret('GMAIL_REFRESH_TOKEN') }}"
messageId: "{{ outputs.list_messages.messages[0].id }}"
yaml
id: get_message_metadata
namespace: company.team
tasks:
- id: get_full_message
type: io.kestra.plugin.googleworkspace.mail.Get
clientId: "{{ secret('GMAIL_CLIENT_ID') }}"
clientSecret: "{{ secret('GMAIL_CLIENT_SECRET') }}"
refreshToken: "{{ secret('GMAIL_REFRESH_TOKEN') }}"
messageId: "1a2b3c4d5e6f7890"
format: full
Properties
clientId*Requiredstring
clientSecret*Requiredstring
messageId*Requiredstring
refreshToken*Requiredstring
accessTokenstring
formatstring
Default
fullreadTimeoutintegerstring
Default
120scopesarray
SubTypestring
Default
["https://www.googleapis.com/auth/gmail.modify","https://www.googleapis.com/auth/gmail.readonly","https://www.googleapis.com/auth/gmail.send"]Outputs
message
Definitions
Gmail message representation
attachmentsarray
Gmail message attachment
attachmentIdstring
datastring
filenamestring
mimeTypestring
sizeinteger
bccarray
SubTypestring
ccarray
SubTypestring
fromstring
headersobject
SubTypestring
historyIdstring
idstring
internalDatestring
Format
date-timelabelIdsarray
SubTypestring
rawstring
sizeEstimateinteger
snippetstring
subjectstring
textHtmlstring
textPlainstring
threadIdstring
toarray
SubTypestring