Capability Sources
Download an Outlook attachment's bytes as the calling member
Changed onDownloads one file attachment from an Outlook message as base64, up to 10 MiB, using the attachment id from the mail-attachments capability. Decode contentBase64 locally to reconstruct the file, e.g. a PDF or spreadsheet. Attached Outlook items, cloud links and larger files return contentUnavailableReason instead.
get/v1/capabilities/microsoft-365/mail-attachment/{messageId}/{attachmentId}
Request
- Base URLhttps://api.openworklabs.com
- URLhttps://api.openworklabs.com/v1/capabilities/microsoft-365/mail-attachment/{messageId}/{attachmentId}
- Auth
- API key in header x-api-key
- or HTTP bearer
Path parameters
messageIdstring required
Microsoft Graph message id.
attachmentIdstring required
Attachment id from the mail-attachments capability.
Response
Outlook attachment returned.
Changes
- info
endpoint added
- info