Email Campaigns
Upload Attachment
Upload a file and get back base64 attachment data ready to use in a campaign
POST
Accepts a
multipart/form-data upload and returns the file encoded as base64. Pass the returned attachment object directly into the attachments array of Send Campaign.
Limits
- Max file size: 10 MB per file
- Allowed types: PDF, Word, Excel, plain text, CSV, JPEG, PNG, GIF, WebP
Headers
Bearer YOUR_API_KEYYour project UUID. Not required if the API key already encodes the project.
Request Body
The file to upload (
multipart/form-data)Response
true on successful uploadReady-to-use attachment object
Human-readable confirmation