InboxDownload an attachment

Download an attachment

Attachment bytes are not stored; this fetches the message from the mailbox's IMAP server on demand and streams the part. index is the attachments[].index value on the message.

curl -X GET "https://api.supasend.io/v1/inbox/messages/507f1f77bcf86cd799439011/attachments/42" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: YOUR_API_KEY"
{}
GET
/v1/inbox/messages/{id}/attachments/{index}
GET
Base URLstring

Target server for requests. Edit to use your own host.

API Key (header: X-API-Key)
X-API-Keystring
Required

API key in the format sk_live_<64 hex characters>

API key in the format sk_live_<64 hex characters>
Request Preview
Response

Response will appear here after sending the request

Authentication

header
X-API-Keystring
Required

API Key for authentication. API key in the format sk_live_\<64 hex characters\>

Path Parameters

idstring
Required

MongoDB ObjectID

Example:
507f1f77bcf86cd799439011

Responses

Attachment bytes (Content-Type / Content-Disposition set from the part)