Mailbox API

Download a message attachment

Changed on

Streams one attachment from a message through the authenticated endpoint. Attachment metadata also provides short-lived download URLs for clients that cannot set request headers. Supports standard byte ranges.

get/mailbox/messages/{message_id}/attachments/{attachment_id}

Request

  • Base URL: https://app.sendmux.ai/api/v1
  • URL: https://app.sendmux.ai/api/v1/mailbox/messages/{message_id}/attachments/{attachment_id}
  • Auth: one of:
    • HTTP bearer
    • OAuth 2 (authorization code, authorization URL https://app.sendmux.ai/oauth/authorize, token URL https://app.sendmux.ai/oauth/token, scopes: mailbox.read)

Path parameters

message_idstring required
attachment_idstring required

Query parameters

mailbox_idstring

Mailbox public ID to target when the credential grants access to more than one mailbox. Omit when the credential is scoped to exactly one mailbox.

download_tokenstring

Short-lived token embedded in attachment metadata download_url values. Clients normally fetch the full URL rather than constructing this parameter manually.

Headers

Rangestring

Optional byte range, for example bytes=0-1048575.

Response

Attachment bytes

Changes