Upload an email attachment
upload_email_attachmentUpload a file to attach to a future outbound email.
Instructions
Upload a file to attach to a future outbound email.
``content_base64`` is the file's raw bytes, base64-encoded.
Returns ``{"id": ..., "filename": ..., "content_type": ...,
"size_bytes": ...}`` — pass ``id`` in ``send_email``'s
``attachment_ids`` list. The id is reusable across many sends
and expires in 24h if never used. Files over 25MB (combined
with the message body and any other attachments, per send) are
rejected — host large files externally and link to them in the
body instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | ||
| content_type | Yes | ||
| content_base64 | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||