Inboxes

Download an email attachment

Streams one attachment's bytes through Aptly from the mail provider, with Content-Disposition: attachment and the attachment's file name. Content-Type is the attachment's contentType from the message endpoint (falling back to the provider's, then application/octet-stream). attachmentId is an attachments[].id from the message endpoint. A Range request header is forwarded, so large files can be fetched in parts (206).

get/api/inboxes/{channelId}/threads/{threadId}/messages/{messageId}/attachments/{attachmentId}

Request

Path parameters

channelIdstring required

External channel meta ID (meta.id) of the inbox.

threadIdstring required
messageIdstring required
attachmentIdstring required

Headers

Rangestring

Optional byte range, e.g. bytes=0-1048575.

Response

The attachment bytes.

Changes

No recorded changes to this operation across all 1 revision of this API.