Overview
Video Upload
Upload large video files in two steps before running an agent.
Mosaic uses signed URLs so you can upload directly to cloud storage without routing bytes through our API servers.
POST /video/get-upload-url
Returns a pre-signed URL.
Field | Type | Required | Description |
---|---|---|---|
filename | string | ✅ | Original file name |
file_size | integer | ✅ | Size in bytes |
content_type | string | ✅ | MIME type, e.g. video/mp4 |
project_id | string | Session-auth only – override auto-created project |
Sample Request
Sample Response
PUT
Upload the bytes to the signed URL. Make sure to set the same Content-Type
you passed in the previous call.
POST /video/finalize-upload/
Converts the temporary object into a permanent asset and returns a file_uuid
to use with agents.
Field | Type | Required | Description |
---|---|---|---|
skip_project_creation | boolean | Session-auth only |
Sample Response
Retry-safe: The
finalize-upload
endpoint is idempotent – calling it twice with the samevideo_id
returns the samefile_uuid
.