Emails
Upload File
Upload a file to the cache for use as an attachment or inline image across multiple emails.
POST
Upload File
Upload files to Unosend’s file cache and reuse them across multiple email sends without re-uploading. Cached files are referenced by their
file_cache_key in subsequent API calls.
The filename including extension (e.g.,
logo.png, invoice.pdf).The file content as multipart/form-data.
Request
Response
200
Using Cached Files in Emails
Reference thefile_cache_key when sending emails:
Inline Images
Usecid to embed images inline in HTML:
- Maximum file size: 10 MB
- Total email size (headers + body + attachments): 15 MB
- Cached files are stored for 30 days from last use
Upload File