Skip to Content

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"
    }
  ]
}
FieldRequiredDescription
filenameYesFile name shown to recipients
contentOne ofBase64-encoded bytes
pathOne ofhttp or https URL Postbound fetches
content_typeNoMIME type
content_idNoFor inline images referenced as cid:… in HTML

Provide either content or path, not both.

Limits

LimitValue
Combined attachment payload40 MB
Entire send request body64 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.

On this page