Skip to main content

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​

InputTypeRequiredDefaultWhat it is
Access tokenCredentialNoMicrosoft Graph access token from the vault; or leave it empty and choose a connection that signs in, which gets and renews the token.
IDStringYesEmail id from Find emails.
Mark readBooleanNotrueMark as read.
Body as textBooleanNofalseReturn the body as plain text even when the email is HTML.
MailboxStringNomeMailbox: me, or a user's email address (needs application permission).
Endpoint addressStringNohttps://graph.microsoft.com/v1.0Graph endpoint; change only for national clouds or testing.

Outputs​

OutputTypeWhat it is
emailDictionaryid, 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.