Get a signed upload URL for a large file
create_artifact_uploadUse this when you need to attach a file too big for add_artifact's inline base64 path (~6 MB): decks, PDFs, audio recordings, archives. Returns a short-lived signed upload URL plus an upload_token. PUT the raw file bytes to upload_url (Content-Type set to the file's type, no base64), then call add_artifact with the same task_id, name and upload_token to record the artifact. Nothing is recorded until you finalize, so an abandoned upload leaves no artifact behind.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Filename, with its real extension (report.pptx, call.m4a). | |
| task_id | Yes | Task the file belongs to. | |
| mime_type | No | Optional. Content-Type you will send on the PUT. | |
| size_bytes | No | Optional. Expected file size. |