get_upload_url
Get a presigned PUT URL to upload video, audio, or document files. Upload raw bytes directly to the URL, then use the object_key for further processing.
Instructions
Get a presigned PUT URL to upload any file — video, audio, or document (markdown, HTML, DOCX, etc.). The URL expires in 15 minutes. PUT raw file bytes directly to the URL. After upload, pass the object_key to transcode_video (for video) or convert_file (for documents).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | Original filename including extension, e.g. report.md or footage.mp4 | |
| content_type | Yes | MIME type. Video: "video/mp4". Documents: "text/markdown", "text/html", "application/vnd.openxmlformats-officedocument.wordprocessingml.document", "text/plain". |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| upload_url | Yes | Presigned HTTPS PUT URL. Send raw file bytes as the request body. | |
| object_key | Yes | storage object key — pass this to transcode_video or convert_file. | |
| expires_in | Yes | Seconds until the upload URL expires (900 = 15 minutes). |