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
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Access token | Credential | Yes | Google OAuth access token from the vault; or leave it empty and choose a connection that signs in, which gets and renews the token. | |
| Message ID | String | Yes | Gmail message id from List Gmail messages. | |
| Mark read | Boolean | No | false | Mark the message as read. |
| Endpoint address | String | No | Replaces https://*.googleapis.com for testing or a proxy; leave empty normally. |
Outputs
| Output | Type | What it is |
|---|---|---|
| Dictionary | id, 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. |