Skip to main content
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.
string
required
The filename including extension (e.g., logo.png, invoice.pdf).
binary
required
The file content as multipart/form-data.

Request

Response

200

Using Cached Files in Emails

Reference the file_cache_key when sending emails:

Inline Images

Use cid 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