yaml
type: "io.kestra.plugin.googleworkspace.mail.Get"
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
Defaultfull
Default120
SubTypestring
Default["https://www.googleapis.com/auth/gmail.modify","https://www.googleapis.com/auth/gmail.readonly","https://www.googleapis.com/auth/gmail.send"]
Definitions
attachmentsarray
attachmentIdstring
datastring
filenamestring
mimeTypestring
sizeinteger
bccarray
SubTypestring
ccarray
SubTypestring
fromstring
headersobject
SubTypestring
historyIdstring
idstring
internalDatestring
Formatdate-time
labelIdsarray
SubTypestring
rawstring
sizeEstimateinteger
snippetstring
subjectstring
textHtmlstring
textPlainstring
threadIdstring
toarray
SubTypestring