Skip to main content
GET
Download a message attachment

Authorizations

Authorization
string
header
required

Sendmux API key. Use a root API key for Management API routes, or a mailbox credential for Mailbox API routes. Obtain keys from the dashboard under API Keys.

Headers

Range
string

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

Path Parameters

message_id
string
required
attachment_id
string
required

Query Parameters

mailbox_id
string

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_token
string

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

Response

Attachment bytes