
List
List
yaml
type: "io.kestra.plugin.googleworkspace.mail.List"Examples
yaml
id: list_messages
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: 10
yaml
id: list_unread_messages
namespace: company.team
tasks:
- id: list_unread
type: io.kestra.plugin.googleworkspace.mail.List
clientId: "{{ secret('GMAIL_CLIENT_ID') }}"
clientSecret: "{{ secret('GMAIL_CLIENT_SECRET') }}"
refreshToken: "{{ secret('GMAIL_REFRESH_TOKEN') }}"
query: is:unread
labelIds:
- INBOX
maxResults: 50
fetchType: STORE
yaml
id: get_first_message
namespace: company.team
tasks:
- id: get_first
type: io.kestra.plugin.googleworkspace.mail.List
clientId: "{{ secret('GMAIL_CLIENT_ID') }}"
clientSecret: "{{ secret('GMAIL_CLIENT_SECRET') }}"
refreshToken: "{{ secret('GMAIL_REFRESH_TOKEN') }}"
fetchType: FETCH_ONE
maxResults: 1
Properties
clientId*Requiredstring
clientSecret*Requiredstring
refreshToken*Requiredstring
accessTokenstring
fetchTypestring
Default
FETCHPossible Values
STOREFETCHFETCH_ONENONEincludeSpamTrashbooleanstring
Default
falselabelIdsarray
SubTypestring
maxResultsintegerstring
Default
100querystring
readTimeoutintegerstring
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
messagesarray
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
nextPageTokenstring
resultSizeEstimateinteger
uristring
Format
uri