Read email
Read one email's details and body; optionally mark it read.
Command in the Microsoft 365 toolkit · id ooa.microsoft365/get_mail · 6 inputs (1 required), 1 output
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Access token | Credential | No | Microsoft Graph access token from the vault; or leave it empty and choose a connection that signs in, which gets and renews the token. | |
| ID | String | Yes | Email id from Find emails. | |
| Mark read | Boolean | No | true | Mark as read. |
| Body as text | Boolean | No | false | Return the body as plain text even when the email is HTML. |
| Mailbox | String | No | me | Mailbox: me, or a user's email address (needs application permission). |
| Endpoint address | String | No | https://graph.microsoft.com/v1.0 | Graph endpoint; change only for national clouds or testing. |
Outputs
| Output | Type | What it is |
|---|---|---|
| Dictionary | id, from, to, subject, received, body, body_type, has_attachments, cc, bcc, reply_to, sent, importance, flag_status, categories, conversation_id, internet_message_id. Also, the same on every mail service: id, from, to, cc, subject, received, text, html, attachments (names), has_attachments, unread, message_id. |