Get Attachment

Fetch email attachment metadata and base64 content from Microsoft Outlook Mail API.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/naftiko/microsoft-outlook-sandbox --skill get-attachment
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Get Attachment
Source: https://github.com/naftiko/microsoft-outlook-sandbox/tree/main/skills/get-attachment
Command: npx skills add https://github.com/naftiko/microsoft-outlook-sandbox --skill get-attachment

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill allows you to fetch a specific attachment from an email when you know both the message and attachment identifiers, providing access to the attachment's metadata and content.

Core Features & Use Cases

  • Attachment Retrieval: Get details and content of a single email attachment.
  • Metadata Access: Obtain information like attachment name, size, and content type.
  • Use Case: After listing attachments for an email, you can use this Skill to download a specific report file (e.g., 'quarterly_report.pdf') by providing its message ID and attachment ID.

Quick Start

Use the get attachment skill to retrieve the attachment with ID 'AAMkAGI1AAABEgAQAA==' from message 'AAMkAGI1AAAGB1rUAAA='.

Frequently Asked Questions about Get Attachment

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I retrieve a specific email attachment from Outlook using the Mail API?

To retrieve a specific email attachment, use the Microsoft Outlook Mail API by providing the unique message identifier and the specific attachment identifier to fetch its metadata and base64-encoded content.

What information do I need to get an attachment from an Outlook email?

You need both the unique message identifier and the attachment identifier to get an attachment from an Outlook email, allowing the API to locate and return the specific file's metadata and content.

Does fetching an Outlook email attachment require special API permissions?

Fetching an Outlook email attachment requires valid OAuth scopes configured for mail read permissions to authenticate and authorize access to the message and its attached files via the API.

What details can I access when retrieving an email attachment from the Mail API?

When retrieving an email attachment, you can access its metadata, including the file name, size, and content type, along with the base64-encoded content for file attachments.

How do I download a specific file like a PDF attached to an Outlook message?

To download a specific file like a PDF, call the direct endpoint with the message ID and attachment ID to retrieve the base64-encoded content, which can then be decoded to save the file locally.