CreateUploadUrlTool
Returns a short-lived URL for uploading a file directly to storage and a signed blob id for attaching it to a piece or to a message on it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| checksum | Yes | Base64-encoded MD5 digest of the file, as printed by `openssl md5 -binary FILE | base64` | |
| byte_size | Yes | Exact file size in bytes | |
| file_name | Yes | Filename with extension (e.g., "screenshot.png") | |
| account_code | Yes | Account code (e.g., "bcp", "jchsoft") | |
| content_type | No | MIME type of the file; derived from the file extension when omitted | |
| piece_relative_id | Yes | Relative ID of the piece the file will be attached to |