Request a file upload URL
Returns a GCS resumable upload URL and the corresponding CDN source URL. PUT your file bytes directly to upload_url with the correct Content-Type header. Once the upload completes, pass source_url as the source_url field in any render or task request.
The upload_url expires in 1 hour. If your network refuses storage.googleapis.com, first_party_upload_url is the same session on a Framelane hostname; PUT there instead.
Alternatively, send the file's bytes as base64 in content_base64 and this one call stores them: the response comes back with uploaded: true and a null upload_url, and source_url works immediately. That route needs no outbound network access of your own — the reason it exists — but it is capped at 256 KB, so it suits logos and icons rather than video.
Request
- Base URL: https://api.framelane.io
- URL: https://api.framelane.io/v1/uploads
- Auth: HTTP bearer
Request body
Example request
{
"content_type": "video/mp4",
"filename": "my-clip.mp4",
"duration": 12.5,
"width": 1920,
"height": 1080
}Response
Successful Response
Example response
{
"upload_url": "https://storage.googleapis.com/framelane-prod-user/uploads/ws_01J.../a1b2c3.mp4?upload_id=...",
"source_url": "https://cdn-user.framelane.io/uploads/ws_01J.../a1b2c3.mp4",
"asset_id": "asset_01J8QR2K5VKDGN2T4FBM3CZYX7",
"first_party_upload_url": "https://uploads.framelane.io/s/AAECAwQFBgcICQoL…"
}Changes
No recorded changes to this operation across all 1 revision of this API.