Skip to main content
outlook_get_attachment Download and read the content of an email attachment from Outlook. Requires the messageId and attachmentId from the attachments list returned by outlook_get_message or outlook_get_conversation. PDFs are extracted to text server-side. Text-based files (CSV, JSON, TXT, HTML, XML) are returned as text. All other formats (DOCX, XLSX, images, etc.) are returned as raw base64 for direct reading.

Parameters

messageId
string
required
Outlook message ID that contains the attachment.
attachmentId
string
required
Attachment ID from the message’s attachments list.