Sending with attachments
Sluice supports file attachments via the REST API using base64-encoded content in JSON — the same model used by Resend and other modern email APIs.
Attachment format
Each attachment is an object with filename and content (base64-encoded):
curl example
Node.js example
Read a file from disk, base64-encode it, and send:
Python example
Multiple attachments
Include multiple objects in the attachments array:
Limits and constraints
10 MB total payload limit. The entire request body — including all base64-encoded attachments — must be under 10 MB. Base64 encoding increases file size by approximately 33%, so the effective file size limit is roughly 7.5 MB of original file data.
Attachment content is not inspected by guardrails. Guardrails analyze email text and HTML content only. File attachments pass through without content inspection. If your organization requires attachment review, enable the Attachment Scanning guardrail to flag emails with attachments for human review.