Skip to content
Start here

Direct Upload

Upload videos via direct upload URLs
client.stream.directUpload.create(DirectUploadCreateParams { account_id, maxDurationSeconds, allowedOrigins, 8 more } params, RequestOptionsoptions?): DirectUploadCreateResponse { scheduledDeletion, uid, uploadURL, watermark }
POST/accounts/{account_id}/stream/direct_upload
ModelsExpand Collapse
DirectUploadCreateResponse { scheduledDeletion, uid, uploadURL, watermark }
scheduledDeletion?: string

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?: string

A Cloudflare-generated unique identifier for a media item.

maxLength32
uploadURL?: string

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

watermark?: Watermark { created, downloadedFrom, height, 8 more }