Create Attachment Upload
sending_create_attachment_uploadGenerates a short-lived upload URL for an email attachment. Supply filename and size, upload the file, then use the attachment_id to send.
Instructions
Use this when a remote or shell-capable agent needs a short-lived upload URL for an outbound Sending API attachment. Provide filename, content_type, and exact size_bytes, PUT the file bytes outside model context with the returned headers, then pass the returned attachment_id to sending_send_email.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sha256 | No | Optional SHA-256 hex digest for the upload bytes. | |
| filename | Yes | Filename to associate with the uploaded attachment. | |
| size_bytes | Yes | Exact byte size that will be uploaded. | |
| content_type | No | MIME type expected for the upload. | |
| Idempotency-Key | No | Optional client-generated key to make the request idempotent for 24 hours. Replays under the same key return the cached response; a reused key with a different body returns 409 idempotency_conflict. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||