Skip to main content
Base Node Node inspector for a Gmail Fetch node

Parameters

Duration
duration
default:"6 hours"
required
How far back to fetch messages from your Gmail inbox.

Credentials

Google OAuth Credential
Google OAuth Credential
required
Select a Google OAuth Credential with the API access and scopes needed by this node.

Inputs

Input
any
Inputs are ignored; the input port is only for graph connectivity.

Outputs

Output
array[json]
One output item per Gmail message in the time window. Each item is a JSON object with message metadata and the best-available body content.Each message object includes the following fields:
FieldDescription
idGmail message ID.
thread_idGmail thread ID.
label_idsArray of label IDs applied to the message.
snippetGmail-provided snippet.
size_estimateEstimated message size in bytes.
internal_timestamp_msInternal Gmail timestamp in milliseconds since epoch (UTC).
internal_dateInternal Gmail timestamp in ISO 8601 (UTC).
fromSender address from message headers.
toRecipient addresses from message headers.
ccCC addresses from message headers.
bccBCC addresses from message headers.
subjectSubject line from message headers.
dateDate header value.
reply_toReply-To header value.
message_idMessage-Id header value.
bodyBest-available message body content.
body_mime_typeMIME type of the selected body (text/plain or text/html).