create_upload_url
Generate a direct-to-storage upload URL for file bytes this server cannot read, then use the returned ID to confirm the upload after PUTting the file.
Instructions
Starts a direct-to-storage upload for bytes this server can't read.
PUT the file to upload_url with exactly this Content-Type and Content-Length
(valid about ten minutes), then call confirm_upload with the returned id.
If already_exists is true, skip the PUT and confirm straight away.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | Full object key (folder path + filename). Excludes folder/folder_id. | |
| folder | No | Destination folder slug path, e.g. 'marketing/2026'. Created if missing. | |
| filename | No | Filename to store, e.g. 'hero.jpg'. Defaults to the path's name. | |
| folder_id | No | UUID of an existing destination folder. | |
| size_bytes | Yes | Exact size of the file in bytes. | |
| content_hash | No | Hex SHA-256 of the file; skips the upload if Dreep has it. | |
| content_type | Yes | MIME type of the file, e.g. video/mp4. | |
| auto_create_folders | No | False to require the folder path to exist already. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||