Skip to main content
gmail.getRawMessage returns Gmail’s raw RFC 5322 source for protocols, signature verification, or specialized parsing. Most automations should use Get message.

Example

automations/get-raw-message.automation.ts

Inputs

Inputs accept compatible signals.

Output

Returns the base64url-encoded RFC 5322 message as a Signal<string>. Decode it before using a parser that expects raw bytes or text.
The output can contain message bodies, recipient data, and attachment contents. Treat it as sensitive mailbox data.