Skip to main content

Read email

Read one Gmail message: headers, text and HTML body, labels and attachment names.

Command in the Google Workspace toolkit · id ooa.google/gmail_get_message · 4 inputs (2 required), 1 output

Inputs​

InputTypeRequiredDefaultWhat it is
Access tokenCredentialYesGoogle OAuth access token from the vault; or leave it empty and choose a connection that signs in, which gets and renews the token.
Message IDStringYesGmail message id from List Gmail messages.
Mark readBooleanNofalseMark the message as read.
Endpoint addressStringNoReplaces https://*.googleapis.com for testing or a proxy; leave empty normally.

Outputs​

OutputTypeWhat it is
emailDictionaryid, thread_id, from, to, cc, subject, date, message_id, text, html, attachments, labels. Also, the same on every mail service: id, from, to, cc, subject, received, text, html, attachments (names), has_attachments, unread, message_id.