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
- Base URLhttps://core-api.getaptly.com
- Auth
- API key in header x-token
- or API key in header Authorization
- or HTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
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.