Capability Sources

Download an Outlook attachment's bytes as the calling member

Changed on

Downloads 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 URL
    https://api.openworklabs.com
  • URL
    https://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.

oktrue required

Changes