Skip to main content

Retrieve an email from Gmail

Retrieve an email.

Application

  • Gmail

Inputs (what you have)

NameDescriptionData TypeRequired?Example
Gmail credentialsThe connected account to use for the requestConnected AccountYes
Message IDGmail's unique ID for the sent message. Example: 17c5ac1d6b1d84c3Text (Short)Yes17c5ac1d6b1d84c3
Email addressThe email address you would like to search in. Defaults to ‘me’EmailNosupport@wrk.com
FormatThe email content you would like to returnText (Short)NoFull
Raw message?Retrieve the entire email message in an RFC 2822 formatted and base64url encoded string?True/FalseNotrue

Outputs (what you get)

NameDescriptionData TypeRequired?Example
Gmail message IDGmail's unique ID for the sent messageText (Short)No17c5ac1d6b1d84c3
TimestampExact time the message was sent inDatetimeNo
Gmail thread IDGmail conversation thread IDText (Short)No
Label IDsList of IDs of labels applied to this messageText (Long)No["SENT", "IMPORTANT"]
Email snippetA short part of the message text, used for preview or quick referenceText (Long)NoHi team, here's the update...
History IDThe ID of the last history record that modified this messageText (Short)No6543210
Size estimateEstimated size in bytes of the messageNumberNo1024
Raw messageIf raw is selected, the entire email message in RFC 2822 format and base64url-encoded stringText (Long)NoQmFzZTY0ZW5jb2RlZCBib2R5...
FromSender's email addressEmailNojane.doe@gmail.com
ToComma-separated list of recipientsText (Long)Noteam@example.com, you@domain.com
CCComma-separated list of carbon copy recipientsText (Long)Nomanager@example.com
BccComma-separated list of blind carbon copy recipientsText (Long)Nohr@example.com
SubjectSubject line of the emailText (Long)NoWeekly Sync Update
DateDate and time from the "Date" headerDatetimeNoMon, 21 Apr 2025 10:33:00 -0400
Message as textBody of the email in plain text formatText (Long)NoHi team, here’s the update...
Message as HTMLBody of the email in HTML formatText (Long)NoHi team, here’s...
Has attachments?Indicates if the message has any file attachmentsTrue/FalseNotrue

Outcomes

NameDescription
SuccessThis status is selected if the job has successfully completed.

Requirements

  • N/A