Upload Attachment
qubrics_mailbox_upload_attachmentUploads email attachments for sending by returning a short-lived presigned PUT URL for real files or accepting tiny inline base64 content, plus a blob ID to include in the send request.
Instructions
Use this before sending a mailbox attachment. For real files set presign_upload_url=true with filename, content_type, and size_bytes, then PUT the file to the returned short-lived URL promptly and send the returned blob_id. Inline content_base64 is a last resort for tiny agent-authored files only and is capped at 32 KiB decoded.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | Filename to use when sending the uploaded attachment. | |
| mailbox_id | No | Mailbox public ID when the credential can access more than one mailbox. | |
| size_bytes | No | Exact byte size required when presign_upload_url=true. | |
| content_type | No | MIME type to store with the upload, for example application/pdf. | application/octet-stream |
| content_base64 | No | Last-resort inline base64 for tiny agent-authored files only. Decoded content must be at most 32 KiB; use presign_upload_url for real files. | |
| presign_upload_url | No | When true, return a short-lived signed PUT URL instead of reading bytes. Provide size_bytes and upload with a shell/client promptly. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||