Read Email
read-emailRetrieve a single email by ID to view subject, sender/recipients, date, and body as Markdown, or inspect forensic headers for authentication checks.
Instructions
Read a single email by id (read-only). Returns subject, from/to/cc, date and the body as Markdown (HTML stripped to text): up to 2,000 characters by default, up to 40,000 with outputVerbosity: full; a cut body ends with a note on how to get the rest. With headersMode: true: returns RFC-822 forensic headers in place of the body (DKIM, SPF, DMARC, Received chain, Message-ID, Authentication-Results) — importantOnly: true for the security-relevant subset, groupByType: true for a category-bucketed view, raw: true for JSON. With includeHeaders: true (non-headers-mode): adds basic headers alongside the body. If the id came from a shared/delegated mailbox (e.g. via search-emails or access-shared-mailbox with sharedMailbox set), you MUST pass the same sharedMailbox (or alias email) here — message IDs are mailbox-scoped, and reading a shared-mailbox id without it fails with 404 ErrorInvalidMailboxItemId.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ID of the email to read | |
| raw | No | Return the headers as raw JSON, not Markdown (headersMode only, default: false) | |
| No | Alias for `sharedMailbox`. | ||
| groupByType | No | Group headers by category (headersMode only, default: false) | |
| headersMode | No | Return forensic headers in place of the email content (default: false) | |
| importantOnly | No | Show only important headers (headersMode only, default: false) | |
| sharedMailbox | No | Email address of the shared/delegated mailbox the id belongs to. Required when the id was obtained from a shared mailbox — message IDs are mailbox-scoped and reading without it returns 404 ErrorInvalidMailboxItemId. Requires delegate access + Mail.Read.Shared. Work/school only; needs the server opt-in setting OUTLOOK_SHARED_MAILBOX (otherwise the call is refused with setup guidance). | |
| includeHeaders | No | Include basic headers alongside email content (default: false) | |
| outputVerbosity | No | Output detail level (default: standard). minimal: body preview only; standard: body up to 2,000 characters; full: adds IDs, body up to 40,000 characters. For a longer body, export it with `export` target=message. |