Basic Attachment
Attach files using base64-encoded content:Multiple Attachments
Inline Images
To show an image inside the body of an email, host it at a public URL and reference that URL directly:Many email clients block remote images by default and ask the recipient to “display images.” An
alt attribute keeps the message readable when the image is blocked.Attachment Limits
Attachments vs. Download Links
Not every file belongs as an attachment. Consider which approach fits your use case:
Use attachments for: invoices, receipts, tickets, and small documents the recipient needs to keep.
Use download links for: large reports, media files, archives, and files that should expire after a set period.
Attachment Format
Attachments are included as base64-encoded content in the API request. Each attachment requires three fields:name— The filename the recipient will see (max 255 characters)data— The file content encoded as base64 (must not contain\r\ncharacters)type— The MIME type of the file