Attachments
Attach files to outbound email with base64 content or a public URL.
Attachments belong on POST /emails (not batch).
Shape
{
"attachments": [
{
"filename": "invoice.pdf",
"content": "<base64>",
"content_type": "application/pdf"
}
]
}| Field | Required | Description |
|---|---|---|
filename | Yes | File name shown to recipients |
content | One of | Base64-encoded bytes |
path | One of | http or https URL Postbound fetches |
content_type | No | MIME type |
content_id | No | For inline images referenced as cid:… in HTML |
Provide either content or path, not both.
Limits
| Limit | Value |
|---|---|
| Combined attachment payload | 40 MB |
| Entire send request body | 64 MB |
Oversized or invalid attachments return invalid_attachment.
Inline images
Set content_id and reference it from HTML:
<img src="cid:logo" alt="Logo" />{
"filename": "logo.png",
"content": "…",
"content_type": "image/png",
"content_id": "logo"
}Remote path attachments
When using path, the URL must be publicly reachable over HTTPS (or HTTP). Postbound downloads the file at send time. Prefer content when the file is private or short-lived.