Skip to content
Start here

Direct Upload

Upload videos via direct upload URLs
stream.direct_upload.create(DirectUploadCreateParams**kwargs) -> DirectUploadCreateResponse
POST/accounts/{account_id}/stream/direct_upload
ModelsExpand Collapse
class DirectUploadCreateResponse:
scheduled_deletion: Optional[datetime]

Indicates the date and time at which the video will be deleted. Omit the field to indicate no change, or include with a null value to remove an existing scheduled deletion. If specified, must be at least 30 days from upload time.

formatdate-time
uid: Optional[str]

A Cloudflare-generated unique identifier for a media item.

maxLength32
upload_url: Optional[str]

The URL an unauthenticated upload can use for a single HTTP POST multipart/form-data request.

watermark: Optional[Watermark]