---
title: Stream
---

[Skip to content](#_top)

[API Reference](https://developers.cloudflare.com/api/python)

Copy Markdown

Open in **Claude**Open in **ChatGPT**Open in **Cursor**

---

**Copy Markdown****View as Markdown**

# Stream

##### [List videos](https://developers.cloudflare.com/api/python/resources/stream/methods/list)

stream.list(StreamListParams\*\*kwargs) -> SyncSinglePage\[[Video](<https://developers.cloudflare.com/api/python/resources/stream#(resource)%20stream%20%3E%20(model)%20video%20%3E%20(schema)>)]

GET/accounts/{account\_id}/stream

##### [Retrieve video details](https://developers.cloudflare.com/api/python/resources/stream/methods/get)

stream.get(stridentifier, StreamGetParams\*\*kwargs) -> [Video](<https://developers.cloudflare.com/api/python/resources/stream#(resource)%20stream%20%3E%20(model)%20video%20%3E%20(schema)>)

GET/accounts/{account\_id}/stream/{identifier}

##### [Initiate video uploads using TUS](https://developers.cloudflare.com/api/python/resources/stream/methods/create)

stream.create(StreamCreateParams\*\*kwargs)

POST/accounts/{account\_id}/stream

##### [Edit video details](https://developers.cloudflare.com/api/python/resources/stream/methods/edit)

stream.edit(stridentifier, StreamEditParams\*\*kwargs) -> [Video](<https://developers.cloudflare.com/api/python/resources/stream#(resource)%20stream%20%3E%20(model)%20video%20%3E%20(schema)>)

POST/accounts/{account\_id}/stream/{identifier}

##### [Delete video](https://developers.cloudflare.com/api/python/resources/stream/methods/delete)

stream.delete(stridentifier, StreamDeleteParams\*\*kwargs)

DELETE/accounts/{account\_id}/stream/{identifier}

##### ModelsExpand Collapse

str

[Link to this property](<#(resource)%20stream%20%3E%20(model)%20allowed_origins%20%3E%20(schema)>)

<details>

<summary>

class Video: …

</summary>

allowed\_origins: Optional\[List\[<a href="https://developers.cloudflare.com/api/python/resources/stream#(resource)%20stream%20%3E%20(model)%20allowed_origins%20%3E%20(schema)">AllowedOrigins</a>]]

Lists the origins allowed to display the video. Enter allowed origin domains in an array and use <code>*</code> for wildcard subdomains. Empty arrays allow the video to be viewed on any origin.

<a href="#(resource)%20stream%20%3E%20(model)%20video%20%3E%20(schema)%20%3E%20(property)%20allowedOrigins">Link to this property</a>

clipped\_from: Optional\[str]

The unique identifier of the source video this video was clipped from.

<a href="#(resource)%20stream%20%3E%20(model)%20video%20%3E%20(schema)%20%3E%20(property)%20clippedFrom">Link to this property</a>

created: Optional\[datetime]

The date and time the media item was created.

formatdate-time

<a href="#(resource)%20stream%20%3E%20(model)%20video%20%3E%20(schema)%20%3E%20(property)%20created">Link to this property</a>

creator: Optional\[str]

A user-defined identifier for the media creator.

maxLength64

<a href="#(resource)%20stream%20%3E%20(model)%20video%20%3E%20(schema)%20%3E%20(property)%20creator">Link to this property</a>

duration: Optional\[float]

The duration of the video in seconds. A value of <code>-1</code> means the duration is unknown. The duration becomes available after the upload and before the video is ready.

<a href="#(resource)%20stream%20%3E%20(model)%20video%20%3E%20(schema)%20%3E%20(property)%20duration">Link to this property</a>

<details>

<summary>

input: Optional\[Input]

</summary>

height: Optional\[int]

The video height in pixels. A value of <code>-1</code> means the height is unknown. The value becomes available after the upload and before the video is ready.

<a href="#(resource)%20stream%20%3E%20(model)%20video%20%3E%20(schema)%20%3E%20(property)%20input%20%3E%20(property)%20height">Link to this property</a>

width: Optional\[int]

The video width in pixels. A value of <code>-1</code> means the width is unknown. The value becomes available after the upload and before the video is ready.

<a href="#(resource)%20stream%20%3E%20(model)%20video%20%3E%20(schema)%20%3E%20(property)%20input%20%3E%20(property)%20width">Link to this property</a>

</details>

<a href="#(resource)%20stream%20%3E%20(model)%20video%20%3E%20(schema)%20%3E%20(property)%20input">Link to this property</a>

live\_input: Optional\[str]

The live input ID used to upload a video with Stream Live.

maxLength32

<a href="#(resource)%20stream%20%3E%20(model)%20video%20%3E%20(schema)%20%3E%20(property)%20liveInput">Link to this property</a>

max\_duration\_seconds: Optional\[int]

The maximum duration in seconds for a video upload. Can be set for a video that is not yet uploaded to limit its duration. Uploads that exceed the specified duration will fail during processing. A value of <code>-1</code> means the value is unknown.

maximum36000

minimum1

<a href="#(resource)%20stream%20%3E%20(model)%20video%20%3E%20(schema)%20%3E%20(property)%20maxDurationSeconds">Link to this property</a>

max\_size\_bytes: Optional\[int]

The maximum size in bytes for the video upload.

formatint64

<a href="#(resource)%20stream%20%3E%20(model)%20video%20%3E%20(schema)%20%3E%20(property)%20maxSizeBytes">Link to this property</a>

meta: Optional\[object]

A user modifiable key-value store used to reference other systems of record for managing videos.

<a href="#(resource)%20stream%20%3E%20(model)%20video%20%3E%20(schema)%20%3E%20(property)%20meta">Link to this property</a>

modified: Optional\[datetime]

The date and time the media item was last modified.

formatdate-time

<a href="#(resource)%20stream%20%3E%20(model)%20video%20%3E%20(schema)%20%3E%20(property)%20modified">Link to this property</a>

<details>

<summary>

playback: Optional\[Playback]

</summary>

dash: Optional\[str]

DASH Media Presentation Description for the video.

<a href="#(resource)%20stream%20%3E%20(model)%20video%20%3E%20(schema)%20%3E%20(property)%20playback%20%3E%20(property)%20dash">Link to this property</a>

hls: Optional\[str]

The HLS manifest for the video.

<a href="#(resource)%20stream%20%3E%20(model)%20video%20%3E%20(schema)%20%3E%20(property)%20playback%20%3E%20(property)%20hls">Link to this property</a>

</details>

<a href="#(resource)%20stream%20%3E%20(model)%20video%20%3E%20(schema)%20%3E%20(property)%20playback">Link to this property</a>

preview: Optional\[str]

The video’s preview page URI. This field is omitted until encoding is complete.

formaturi

<a href="#(resource)%20stream%20%3E%20(model)%20video%20%3E%20(schema)%20%3E%20(property)%20preview">Link to this property</a>

<details>

<summary>

public\_details: Optional\[PublicDetails]

Public details for the video including title, share link, channel link, and logo.

</summary>

channel\_link: Optional\[str]

<a href="#(resource)%20stream%20%3E%20(model)%20video%20%3E%20(schema)%20%3E%20(property)%20publicDetails%20%3E%20(property)%20channel_link">Link to this property</a>

logo: Optional\[str]

<a href="#(resource)%20stream%20%3E%20(model)%20video%20%3E%20(schema)%20%3E%20(property)%20publicDetails%20%3E%20(property)%20logo">Link to this property</a>

media\_id: Optional\[int]

<a href="#(resource)%20stream%20%3E%20(model)%20video%20%3E%20(schema)%20%3E%20(property)%20publicDetails%20%3E%20(property)%20media_id">Link to this property</a>

share\_link: Optional\[str]

<a href="#(resource)%20stream%20%3E%20(model)%20video%20%3E%20(schema)%20%3E%20(property)%20publicDetails%20%3E%20(property)%20share_link">Link to this property</a>

title: Optional\[str]

<a href="#(resource)%20stream%20%3E%20(model)%20video%20%3E%20(schema)%20%3E%20(property)%20publicDetails%20%3E%20(property)%20title">Link to this property</a>

</details>

<a href="#(resource)%20stream%20%3E%20(model)%20video%20%3E%20(schema)%20%3E%20(property)%20publicDetails">Link to this property</a>

ready\_to\_stream: Optional\[bool]

Indicates whether the video is playable. The field is empty if the video is not ready for viewing or the live stream is still in progress.

<a href="#(resource)%20stream%20%3E%20(model)%20video%20%3E%20(schema)%20%3E%20(property)%20readyToStream">Link to this property</a>

ready\_to\_stream\_at: Optional\[datetime]

Indicates the time at which the video became playable. The field is empty if the video is not ready for viewing or the live stream is still in progress.

formatdate-time

<a href="#(resource)%20stream%20%3E%20(model)%20video%20%3E%20(schema)%20%3E%20(property)%20readyToStreamAt">Link to this property</a>

require\_signed\_urls: Optional\[bool]

Indicates whether the video can be a accessed using the UID. When set to <code>true</code>, a signed token must be generated with a signing key to view the video.

<a href="#(resource)%20stream%20%3E%20(model)%20video%20%3E%20(schema)%20%3E%20(property)%20requireSignedURLs">Link to this property</a>

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 <code>null</code> value to remove an existing scheduled deletion. If specified, must be at least 30 days from upload time.

formatdate-time

<a href="#(resource)%20stream%20%3E%20(model)%20video%20%3E%20(schema)%20%3E%20(property)%20scheduledDeletion">Link to this property</a>

size: Optional\[float]

The size of the media item in bytes.

<a href="#(resource)%20stream%20%3E%20(model)%20video%20%3E%20(schema)%20%3E%20(property)%20size">Link to this property</a>

<details>

<summary>

status: Optional\[Status]

Specifies a detailed status for a video. If the <code>state</code> is <code>inprogress</code> or <code>error</code>, the <code>step</code> field returns <code>encoding</code> or <code>manifest</code>. If the <code>state</code> is <code>inprogress</code>, <code>pctComplete</code> returns a number between 0 and 100 to indicate the approximate percent of completion. If the <code>state</code> is <code>error</code>, <code>errorReasonCode</code> and <code>errorReasonText</code> provide additional details.

</summary>

error\_reason\_code: Optional\[str]

Specifies why the video failed to encode. This field is empty if the video is not in an <code>error</code> state. Preferred for programmatic use.

<a href="#(resource)%20stream%20%3E%20(model)%20video%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(property)%20errorReasonCode">Link to this property</a>

error\_reason\_text: Optional\[str]

Specifies why the video failed to encode using a human readable error message in English. This field is empty if the video is not in an <code>error</code> state.

<a href="#(resource)%20stream%20%3E%20(model)%20video%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(property)%20errorReasonText">Link to this property</a>

pct\_complete: Optional\[str]

Indicates the progress as a percentage between 0 and 100.

<a href="#(resource)%20stream%20%3E%20(model)%20video%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(property)%20pctComplete">Link to this property</a>

<details>

<summary>

state: Optional\[Literal\["pendingupload", "downloading", "queued", 4 more]]

Specifies the processing status for all quality levels for a video.

</summary>

One of the following:

"pendingupload"

<a href="#(resource)%20stream%20%3E%20(model)%20video%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(property)%20state%20%3E%20(member)%200">Link to this property</a>

"downloading"

<a href="#(resource)%20stream%20%3E%20(model)%20video%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(property)%20state%20%3E%20(member)%201">Link to this property</a>

"queued"

<a href="#(resource)%20stream%20%3E%20(model)%20video%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(property)%20state%20%3E%20(member)%202">Link to this property</a>

"inprogress"

<a href="#(resource)%20stream%20%3E%20(model)%20video%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(property)%20state%20%3E%20(member)%203">Link to this property</a>

"ready"

<a href="#(resource)%20stream%20%3E%20(model)%20video%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(property)%20state%20%3E%20(member)%204">Link to this property</a>

"error"

<a href="#(resource)%20stream%20%3E%20(model)%20video%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(property)%20state%20%3E%20(member)%205">Link to this property</a>

"live-inprogress"

<a href="#(resource)%20stream%20%3E%20(model)%20video%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(property)%20state%20%3E%20(member)%206">Link to this property</a>

</details>

<a href="#(resource)%20stream%20%3E%20(model)%20video%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(property)%20state">Link to this property</a>

</details>

<a href="#(resource)%20stream%20%3E%20(model)%20video%20%3E%20(schema)%20%3E%20(property)%20status">Link to this property</a>

thumbnail: Optional\[str]

The media item’s thumbnail URI. This field is omitted until encoding is complete.

formaturi

<a href="#(resource)%20stream%20%3E%20(model)%20video%20%3E%20(schema)%20%3E%20(property)%20thumbnail">Link to this property</a>

thumbnail\_timestamp\_pct: Optional\[float]

The timestamp for a thumbnail image calculated as a percentage value of the video’s duration. To convert from a second-wise timestamp to a percentage, divide the desired timestamp by the total duration of the video. If this value is not set, the default thumbnail image is taken from 0s of the video.

maximum1

minimum0

<a href="#(resource)%20stream%20%3E%20(model)%20video%20%3E%20(schema)%20%3E%20(property)%20thumbnailTimestampPct">Link to this property</a>

uid: Optional\[str]

A Cloudflare-generated unique identifier for a media item.

maxLength32

<a href="#(resource)%20stream%20%3E%20(model)%20video%20%3E%20(schema)%20%3E%20(property)%20uid">Link to this property</a>

uploaded: Optional\[datetime]

The date and time the media item was uploaded.

formatdate-time

<a href="#(resource)%20stream%20%3E%20(model)%20video%20%3E%20(schema)%20%3E%20(property)%20uploaded">Link to this property</a>

upload\_expiry: Optional\[datetime]

The date and time when the video upload URL is no longer valid for direct user uploads.

formatdate-time

<a href="#(resource)%20stream%20%3E%20(model)%20video%20%3E%20(schema)%20%3E%20(property)%20uploadExpiry">Link to this property</a>

watermark: Optional\[Watermark]

<a href="#(resource)%20stream%20%3E%20(model)%20video%20%3E%20(schema)%20%3E%20(property)%20watermark">Link to this property</a>

</details>

[Link to this property](<#(resource)%20stream%20%3E%20(model)%20video%20%3E%20(schema)>)

#### StreamAudio Tracks

##### [List additional audio tracks on a video](https://developers.cloudflare.com/api/python/resources/stream/subresources/audio_tracks/methods/get)

stream.audio\_tracks.get(stridentifier, AudioTrackGetParams\*\*kwargs) -> [AudioTrackGetResponse](<https://developers.cloudflare.com/api/python/resources/stream#(resource)%20stream.audio_tracks%20%3E%20(model)%20audio_track_get_response%20%3E%20(schema)>)

GET/accounts/{account\_id}/stream/{identifier}/audio

##### [Edit additional audio tracks on a video](https://developers.cloudflare.com/api/python/resources/stream/subresources/audio_tracks/methods/edit)

stream.audio\_tracks.edit(straudio\_identifier, AudioTrackEditParams\*\*kwargs) -> [Audio](<https://developers.cloudflare.com/api/python/resources/stream#(resource)%20stream.audio_tracks%20%3E%20(model)%20audio%20%3E%20(schema)>)

PATCH/accounts/{account\_id}/stream/{identifier}/audio/{audio\_identifier}

##### [Delete additional audio tracks on a video](https://developers.cloudflare.com/api/python/resources/stream/subresources/audio_tracks/methods/delete)

stream.audio\_tracks.delete(straudio\_identifier, AudioTrackDeleteParams\*\*kwargs) -> [AudioTrackDeleteResponse](<https://developers.cloudflare.com/api/python/resources/stream#(resource)%20stream.audio_tracks%20%3E%20(model)%20audio_track_delete_response%20%3E%20(schema)>)

DELETE/accounts/{account\_id}/stream/{identifier}/audio/{audio\_identifier}

##### [Add audio tracks to a video](https://developers.cloudflare.com/api/python/resources/stream/subresources/audio_tracks/methods/copy)

stream.audio\_tracks.copy(stridentifier, AudioTrackCopyParams\*\*kwargs) -> [Audio](<https://developers.cloudflare.com/api/python/resources/stream#(resource)%20stream.audio_tracks%20%3E%20(model)%20audio%20%3E%20(schema)>)

POST/accounts/{account\_id}/stream/{identifier}/audio/copy

##### ModelsExpand Collapse

<details>

<summary>

class Audio: …

</summary>

default: Optional\[bool]

Denotes whether the audio track will be played by default in a player.

<a href="#(resource)%20stream.audio_tracks%20%3E%20(model)%20audio%20%3E%20(schema)%20%3E%20(property)%20default">Link to this property</a>

label: Optional\[str]

A string to uniquely identify the track amongst other audio track labels for the specified video.

<a href="#(resource)%20stream.audio_tracks%20%3E%20(model)%20audio%20%3E%20(schema)%20%3E%20(property)%20label">Link to this property</a>

<details>

<summary>

status: Optional\[Literal\["queued", "ready", "error"]]

Specifies the processing status of the video.

</summary>

One of the following:

"queued"

<a href="#(resource)%20stream.audio_tracks%20%3E%20(model)%20audio%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%200">Link to this property</a>

"ready"

<a href="#(resource)%20stream.audio_tracks%20%3E%20(model)%20audio%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%201">Link to this property</a>

"error"

<a href="#(resource)%20stream.audio_tracks%20%3E%20(model)%20audio%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20stream.audio_tracks%20%3E%20(model)%20audio%20%3E%20(schema)%20%3E%20(property)%20status">Link to this property</a>

uid: Optional\[str]

A Cloudflare-generated unique identifier for a media item.

maxLength32

<a href="#(resource)%20stream.audio_tracks%20%3E%20(model)%20audio%20%3E%20(schema)%20%3E%20(property)%20uid">Link to this property</a>

</details>

[Link to this property](<#(resource)%20stream.audio_tracks%20%3E%20(model)%20audio%20%3E%20(schema)>)

<details>

<summary>

class AudioTrackGetResponse: …

</summary>

<details>

<summary>

audio: Optional\[List\[<a href="https://developers.cloudflare.com/api/python/resources/stream#(resource)%20stream.audio_tracks%20%3E%20(model)%20audio%20%3E%20(schema)">Audio</a>]]

Array of audio tracks for the video.

</summary>

default: Optional\[bool]

Denotes whether the audio track will be played by default in a player.

<a href="#(resource)%20stream.audio_tracks%20%3E%20(model)%20audio%20%3E%20(schema)%20%3E%20(property)%20default">Link to this property</a>

label: Optional\[str]

A string to uniquely identify the track amongst other audio track labels for the specified video.

<a href="#(resource)%20stream.audio_tracks%20%3E%20(model)%20audio%20%3E%20(schema)%20%3E%20(property)%20label">Link to this property</a>

<details>

<summary>

status: Optional\[Literal\["queued", "ready", "error"]]

Specifies the processing status of the video.

</summary>

One of the following:

"queued"

<a href="#(resource)%20stream.audio_tracks%20%3E%20(model)%20audio%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%200">Link to this property</a>

"ready"

<a href="#(resource)%20stream.audio_tracks%20%3E%20(model)%20audio%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%201">Link to this property</a>

"error"

<a href="#(resource)%20stream.audio_tracks%20%3E%20(model)%20audio%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20stream.audio_tracks%20%3E%20(model)%20audio%20%3E%20(schema)%20%3E%20(property)%20status">Link to this property</a>

uid: Optional\[str]

A Cloudflare-generated unique identifier for a media item.

maxLength32

<a href="#(resource)%20stream.audio_tracks%20%3E%20(model)%20audio%20%3E%20(schema)%20%3E%20(property)%20uid">Link to this property</a>

</details>

<a href="#(resource)%20stream.audio_tracks%20%3E%20(model)%20audio_track_get_response%20%3E%20(schema)%20%3E%20(property)%20audio">Link to this property</a>

</details>

[Link to this property](<#(resource)%20stream.audio_tracks%20%3E%20(model)%20audio_track_get_response%20%3E%20(schema)>)

str

[Link to this property](<#(resource)%20stream.audio_tracks%20%3E%20(model)%20audio_track_delete_response%20%3E%20(schema)>)

#### StreamVideos

##### [Storage use](https://developers.cloudflare.com/api/python/resources/stream/subresources/videos/methods/storage_usage)

stream.videos.storage\_usage(VideoStorageUsageParams\*\*kwargs) -> [VideoStorageUsageResponse](<https://developers.cloudflare.com/api/python/resources/stream#(resource)%20stream.videos%20%3E%20(model)%20video_storage_usage_response%20%3E%20(schema)>)

GET/accounts/{account\_id}/stream/storage-usage

##### ModelsExpand Collapse

<details>

<summary>

class VideoStorageUsageResponse: …

</summary>

creator: Optional\[str]

A user-defined identifier for the media creator.

maxLength64

<a href="#(resource)%20stream.videos%20%3E%20(model)%20video_storage_usage_response%20%3E%20(schema)%20%3E%20(property)%20creator">Link to this property</a>

total\_storage\_minutes: Optional\[float]

The total minutes of video content stored in the account. May contain decimal values.

formatfloat

<a href="#(resource)%20stream.videos%20%3E%20(model)%20video_storage_usage_response%20%3E%20(schema)%20%3E%20(property)%20totalStorageMinutes">Link to this property</a>

total\_storage\_minutes\_limit: Optional\[int]

The storage capacity alloted for the account.

<a href="#(resource)%20stream.videos%20%3E%20(model)%20video_storage_usage_response%20%3E%20(schema)%20%3E%20(property)%20totalStorageMinutesLimit">Link to this property</a>

video\_count: Optional\[int]

The total count of videos associated with the account.

<a href="#(resource)%20stream.videos%20%3E%20(model)%20video_storage_usage_response%20%3E%20(schema)%20%3E%20(property)%20videoCount">Link to this property</a>

</details>

[Link to this property](<#(resource)%20stream.videos%20%3E%20(model)%20video_storage_usage_response%20%3E%20(schema)>)

#### StreamClip

##### [Clip videos given a start and end time](https://developers.cloudflare.com/api/python/resources/stream/subresources/clip/methods/create)

stream.clip.create(ClipCreateParams\*\*kwargs) -> [Video](<https://developers.cloudflare.com/api/python/resources/stream#(resource)%20stream%20%3E%20(model)%20video%20%3E%20(schema)>)

POST/accounts/{account\_id}/stream/clip

#### StreamCopy

##### [Upload videos from a URL](https://developers.cloudflare.com/api/python/resources/stream/subresources/copy/methods/create)

stream.copy.create(CopyCreateParams\*\*kwargs) -> [Video](<https://developers.cloudflare.com/api/python/resources/stream#(resource)%20stream%20%3E%20(model)%20video%20%3E%20(schema)>)

POST/accounts/{account\_id}/stream/copy

#### StreamDirect Upload

##### [Upload videos via direct upload URLs](https://developers.cloudflare.com/api/python/resources/stream/subresources/direct_upload/methods/create)

stream.direct\_upload.create(DirectUploadCreateParams\*\*kwargs) -> [DirectUploadCreateResponse](<https://developers.cloudflare.com/api/python/resources/stream#(resource)%20stream.direct_upload%20%3E%20(model)%20direct_upload_create_response%20%3E%20(schema)>)

POST/accounts/{account\_id}/stream/direct\_upload

##### ModelsExpand Collapse

<details>

<summary>

class DirectUploadCreateResponse: …

</summary>

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 <code>null</code> value to remove an existing scheduled deletion. If specified, must be at least 30 days from upload time.

formatdate-time

<a href="#(resource)%20stream.direct_upload%20%3E%20(model)%20direct_upload_create_response%20%3E%20(schema)%20%3E%20(property)%20scheduledDeletion">Link to this property</a>

uid: Optional\[str]

A Cloudflare-generated unique identifier for a media item.

maxLength32

<a href="#(resource)%20stream.direct_upload%20%3E%20(model)%20direct_upload_create_response%20%3E%20(schema)%20%3E%20(property)%20uid">Link to this property</a>

upload\_url: Optional\[str]

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

<a href="#(resource)%20stream.direct_upload%20%3E%20(model)%20direct_upload_create_response%20%3E%20(schema)%20%3E%20(property)%20uploadURL">Link to this property</a>

watermark: Optional\[Watermark]

<a href="#(resource)%20stream.direct_upload%20%3E%20(model)%20direct_upload_create_response%20%3E%20(schema)%20%3E%20(property)%20watermark">Link to this property</a>

</details>

[Link to this property](<#(resource)%20stream.direct_upload%20%3E%20(model)%20direct_upload_create_response%20%3E%20(schema)>)

#### StreamKeys

##### [List signing keys](https://developers.cloudflare.com/api/python/resources/stream/subresources/keys/methods/get)

stream.keys.get(KeyGetParams\*\*kwargs) -> SyncSinglePage\[[KeyGetResponse](<https://developers.cloudflare.com/api/python/resources/stream#(resource)%20stream.keys%20%3E%20(model)%20key_get_response%20%3E%20(schema)>)]

GET/accounts/{account\_id}/stream/keys

##### [Create signing keys](https://developers.cloudflare.com/api/python/resources/stream/subresources/keys/methods/create)

stream.keys.create(KeyCreateParams\*\*kwargs) -> [Keys](<https://developers.cloudflare.com/api/python/resources/stream#(resource)%20stream.keys%20%3E%20(model)%20keys%20%3E%20(schema)>)

POST/accounts/{account\_id}/stream/keys

##### [Delete signing keys](https://developers.cloudflare.com/api/python/resources/stream/subresources/keys/methods/delete)

stream.keys.delete(stridentifier, KeyDeleteParams\*\*kwargs) -> [KeyDeleteResponse](<https://developers.cloudflare.com/api/python/resources/stream#(resource)%20stream.keys%20%3E%20(model)%20key_delete_response%20%3E%20(schema)>)

DELETE/accounts/{account\_id}/stream/keys/{identifier}

##### ModelsExpand Collapse

<details>

<summary>

class Keys: …

</summary>

id: Optional\[str]

Identifier.

maxLength32

<a href="#(resource)%20stream.keys%20%3E%20(model)%20keys%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

created: Optional\[datetime]

The date and time a signing key was created.

formatdate-time

<a href="#(resource)%20stream.keys%20%3E%20(model)%20keys%20%3E%20(schema)%20%3E%20(property)%20created">Link to this property</a>

jwk: Optional\[str]

The signing key in JWK format.

<a href="#(resource)%20stream.keys%20%3E%20(model)%20keys%20%3E%20(schema)%20%3E%20(property)%20jwk">Link to this property</a>

pem: Optional\[str]

The signing key in PEM format.

<a href="#(resource)%20stream.keys%20%3E%20(model)%20keys%20%3E%20(schema)%20%3E%20(property)%20pem">Link to this property</a>

</details>

[Link to this property](<#(resource)%20stream.keys%20%3E%20(model)%20keys%20%3E%20(schema)>)

<details>

<summary>

class KeyGetResponse: …

</summary>

id: Optional\[str]

Identifier.

maxLength32

<a href="#(resource)%20stream.keys%20%3E%20(model)%20key_get_response%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

created: Optional\[datetime]

The date and time a signing key was created.

formatdate-time

<a href="#(resource)%20stream.keys%20%3E%20(model)%20key_get_response%20%3E%20(schema)%20%3E%20(property)%20created">Link to this property</a>

key\_id: Optional\[str]

The unique identifier for the signing key.

<a href="#(resource)%20stream.keys%20%3E%20(model)%20key_get_response%20%3E%20(schema)%20%3E%20(property)%20key_id">Link to this property</a>

</details>

[Link to this property](<#(resource)%20stream.keys%20%3E%20(model)%20key_get_response%20%3E%20(schema)>)

str

[Link to this property](<#(resource)%20stream.keys%20%3E%20(model)%20key_delete_response%20%3E%20(schema)>)

#### StreamLive Inputs

##### [List live inputs](https://developers.cloudflare.com/api/python/resources/stream/subresources/live_inputs/methods/list)

stream.live\_inputs.list(LiveInputListParams\*\*kwargs) -> [LiveInputListResponse](<https://developers.cloudflare.com/api/python/resources/stream#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input_list_response%20%3E%20(schema)>)

GET/accounts/{account\_id}/stream/live\_inputs

##### [Retrieve a live input](https://developers.cloudflare.com/api/python/resources/stream/subresources/live_inputs/methods/get)

stream.live\_inputs.get(strlive\_input\_identifier, LiveInputGetParams\*\*kwargs) -> [LiveInput](<https://developers.cloudflare.com/api/python/resources/stream#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input%20%3E%20(schema)>)

GET/accounts/{account\_id}/stream/live\_inputs/{live\_input\_identifier}

##### [Create a live input](https://developers.cloudflare.com/api/python/resources/stream/subresources/live_inputs/methods/create)

stream.live\_inputs.create(LiveInputCreateParams\*\*kwargs) -> [LiveInput](<https://developers.cloudflare.com/api/python/resources/stream#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input%20%3E%20(schema)>)

POST/accounts/{account\_id}/stream/live\_inputs

##### [Update a live input](https://developers.cloudflare.com/api/python/resources/stream/subresources/live_inputs/methods/update)

stream.live\_inputs.update(strlive\_input\_identifier, LiveInputUpdateParams\*\*kwargs) -> [LiveInput](<https://developers.cloudflare.com/api/python/resources/stream#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input%20%3E%20(schema)>)

PUT/accounts/{account\_id}/stream/live\_inputs/{live\_input\_identifier}

##### [Delete a live input](https://developers.cloudflare.com/api/python/resources/stream/subresources/live_inputs/methods/delete)

stream.live\_inputs.delete(strlive\_input\_identifier, LiveInputDeleteParams\*\*kwargs)

DELETE/accounts/{account\_id}/stream/live\_inputs/{live\_input\_identifier}

##### ModelsExpand Collapse

<details>

<summary>

class LiveInput: …

Details about a live input.

</summary>

created: Optional\[datetime]

The date and time the live input was created.

formatdate-time

<a href="#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input%20%3E%20(schema)%20%3E%20(property)%20created">Link to this property</a>

delete\_recording\_after\_days: Optional\[float]

Indicates the number of days after which the live inputs recordings will be deleted. When a stream completes and the recording is ready, the value is used to calculate a scheduled deletion date for that recording. Omit the field to indicate no change, or include with a <code>null</code> value to remove an existing scheduled deletion.

minimum30

<a href="#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input%20%3E%20(schema)%20%3E%20(property)%20deleteRecordingAfterDays">Link to this property</a>

enabled: Optional\[bool]

Indicates whether the live input is enabled and can accept streams.

<a href="#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

keys\_rotated\_at: Optional\[datetime]

The date and time the live input keys were last rotated. Omitted for live inputs that have never had their keys rotated.

formatdate-time

<a href="#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input%20%3E%20(schema)%20%3E%20(property)%20keysRotatedAt">Link to this property</a>

meta: Optional\[object]

A user modifiable key-value store used to reference other systems of record for managing live inputs.

<a href="#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input%20%3E%20(schema)%20%3E%20(property)%20meta">Link to this property</a>

modified: Optional\[datetime]

The date and time the live input was last modified.

formatdate-time

<a href="#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input%20%3E%20(schema)%20%3E%20(property)%20modified">Link to this property</a>

<details>

<summary>

playback: Optional\[Playback]

Details for playing a live input’s broadcast using the HLS or DASH manifests. URLs reference the live input ID.

</summary>

dash: str

The DASH manifest URL used to play live video, referencing the live input ID.

<a href="#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input%20%3E%20(schema)%20%3E%20(property)%20playback%20%3E%20(property)%20dash">Link to this property</a>

hls: str

The HLS manifest URL used to play live video, referencing the live input ID.

<a href="#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input%20%3E%20(schema)%20%3E%20(property)%20playback%20%3E%20(property)%20hls">Link to this property</a>

</details>

<a href="#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input%20%3E%20(schema)%20%3E%20(property)%20playback">Link to this property</a>

prefer\_low\_latency: Optional\[bool]

When enabled, the live stream is delivered using Low-Latency HLS (LL-HLS), reducing glass-to-glass latency for viewers at the cost of reduced player compatibility.

<a href="#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input%20%3E%20(schema)%20%3E%20(property)%20preferLowLatency">Link to this property</a>

<details>

<summary>

recording: Optional\[Recording]

Records the input to a Cloudflare Stream video. Behavior depends on the mode. In most cases, the video will initially be viewable as a live video and transition to on-demand after a condition is satisfied.

</summary>

allowed\_origins: Optional\[List\[str]]

Lists the origins allowed to display videos created with this input. Enter allowed origin domains in an array and use <code>*</code> for wildcard subdomains. An empty array allows videos to be viewed on any origin.

<a href="#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input%20%3E%20(schema)%20%3E%20(property)%20recording%20%3E%20(property)%20allowedOrigins">Link to this property</a>

hide\_live\_viewer\_count: Optional\[bool]

Disables reporting the number of live viewers when this property is set to <code>true</code>.

<a href="#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input%20%3E%20(schema)%20%3E%20(property)%20recording%20%3E%20(property)%20hideLiveViewerCount">Link to this property</a>

<details>

<summary>

mode: Optional\[Literal\["off", "automatic"]]

Specifies the recording behavior for the live input. Set this value to <code>off</code> to prevent a recording. Set the value to <code>automatic</code> to begin a recording and transition to on-demand after Stream Live stops receiving input.

</summary>

One of the following:

"off"

<a href="#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input%20%3E%20(schema)%20%3E%20(property)%20recording%20%3E%20(property)%20mode%20%3E%20(member)%200">Link to this property</a>

"automatic"

<a href="#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input%20%3E%20(schema)%20%3E%20(property)%20recording%20%3E%20(property)%20mode%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input%20%3E%20(schema)%20%3E%20(property)%20recording%20%3E%20(property)%20mode">Link to this property</a>

require\_signed\_urls: Optional\[bool]

Indicates if a video using the live input has the <code>requireSignedURLs</code> property set. Also enforces access controls on any video recording of the livestream with the live input.

<a href="#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input%20%3E%20(schema)%20%3E%20(property)%20recording%20%3E%20(property)%20requireSignedURLs">Link to this property</a>

timeout\_seconds: Optional\[int]

Determines the amount of time a live input configured in <code>automatic</code> mode should wait before a recording transitions from live to on-demand. <code>0</code> is recommended for most use cases and indicates the platform default should be used.

<a href="#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input%20%3E%20(schema)%20%3E%20(property)%20recording%20%3E%20(property)%20timeoutSeconds">Link to this property</a>

</details>

<a href="#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input%20%3E%20(schema)%20%3E%20(property)%20recording">Link to this property</a>

<details>

<summary>

rtmps: Optional\[Rtmps]

Details for streaming to an live input using RTMPS.

</summary>

stream\_key: Optional\[str]

The secret key to use when streaming via RTMPS to a live input.

<a href="#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input%20%3E%20(schema)%20%3E%20(property)%20rtmps%20%3E%20(property)%20streamKey">Link to this property</a>

url: Optional\[str]

The RTMPS URL you provide to the broadcaster, which they stream live video to.

<a href="#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input%20%3E%20(schema)%20%3E%20(property)%20rtmps%20%3E%20(property)%20url">Link to this property</a>

</details>

<a href="#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input%20%3E%20(schema)%20%3E%20(property)%20rtmps">Link to this property</a>

<details>

<summary>

rtmps\_playback: Optional\[RtmpsPlayback]

Details for playback from an live input using RTMPS.

</summary>

stream\_key: Optional\[str]

The secret key to use for playback via RTMPS.

<a href="#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input%20%3E%20(schema)%20%3E%20(property)%20rtmpsPlayback%20%3E%20(property)%20streamKey">Link to this property</a>

url: Optional\[str]

The URL used to play live video over RTMPS.

<a href="#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input%20%3E%20(schema)%20%3E%20(property)%20rtmpsPlayback%20%3E%20(property)%20url">Link to this property</a>

</details>

<a href="#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input%20%3E%20(schema)%20%3E%20(property)%20rtmpsPlayback">Link to this property</a>

<details>

<summary>

srt: Optional\[Srt]

Details for streaming to a live input using SRT.

</summary>

passphrase: Optional\[str]

The secret key to use when streaming via SRT to a live input.

<a href="#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input%20%3E%20(schema)%20%3E%20(property)%20srt%20%3E%20(property)%20passphrase">Link to this property</a>

stream\_id: Optional\[str]

The identifier of the live input to use when streaming via SRT.

<a href="#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input%20%3E%20(schema)%20%3E%20(property)%20srt%20%3E%20(property)%20streamId">Link to this property</a>

url: Optional\[str]

The SRT URL you provide to the broadcaster, which they stream live video to.

<a href="#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input%20%3E%20(schema)%20%3E%20(property)%20srt%20%3E%20(property)%20url">Link to this property</a>

</details>

<a href="#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input%20%3E%20(schema)%20%3E%20(property)%20srt">Link to this property</a>

<details>

<summary>

srt\_playback: Optional\[SrtPlayback]

Details for playback from an live input using SRT.

</summary>

passphrase: Optional\[str]

The secret key to use for playback via SRT.

<a href="#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input%20%3E%20(schema)%20%3E%20(property)%20srtPlayback%20%3E%20(property)%20passphrase">Link to this property</a>

stream\_id: Optional\[str]

The identifier of the live input to use for playback via SRT.

<a href="#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input%20%3E%20(schema)%20%3E%20(property)%20srtPlayback%20%3E%20(property)%20streamId">Link to this property</a>

url: Optional\[str]

The URL used to play live video over SRT.

<a href="#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input%20%3E%20(schema)%20%3E%20(property)%20srtPlayback%20%3E%20(property)%20url">Link to this property</a>

</details>

<a href="#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input%20%3E%20(schema)%20%3E%20(property)%20srtPlayback">Link to this property</a>

<details>

<summary>

status: Optional\[Literal\["connected", "reconnected", "reconnecting", 5 more]]

The connection status of a live input.

</summary>

One of the following:

"connected"

<a href="#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%201">Link to this property</a>

"reconnected"

<a href="#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%202">Link to this property</a>

"reconnecting"

<a href="#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%203">Link to this property</a>

"client\_disconnect"

<a href="#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%204">Link to this property</a>

"ttl\_exceeded"

<a href="#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%205">Link to this property</a>

"failed\_to\_connect"

<a href="#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%206">Link to this property</a>

"failed\_to\_reconnect"

<a href="#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%207">Link to this property</a>

"new\_configuration\_accepted"

<a href="#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%208">Link to this property</a>

</details>

<a href="#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input%20%3E%20(schema)%20%3E%20(property)%20status">Link to this property</a>

uid: Optional\[str]

A unique identifier for a live input.

maxLength32

<a href="#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input%20%3E%20(schema)%20%3E%20(property)%20uid">Link to this property</a>

<details>

<summary>

web\_rtc: Optional\[WebRtc]

Details for streaming to a live input using WebRTC.

</summary>

url: Optional\[str]

The WebRTC URL you provide to the broadcaster, which they stream live video to.

<a href="#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input%20%3E%20(schema)%20%3E%20(property)%20webRTC%20%3E%20(property)%20url">Link to this property</a>

</details>

<a href="#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input%20%3E%20(schema)%20%3E%20(property)%20webRTC">Link to this property</a>

<details>

<summary>

web\_rtc\_playback: Optional\[WebRtcPlayback]

Details for playback from a live input using WebRTC.

</summary>

url: Optional\[str]

The URL used to play live video over WebRTC.

<a href="#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input%20%3E%20(schema)%20%3E%20(property)%20webRTCPlayback%20%3E%20(property)%20url">Link to this property</a>

</details>

<a href="#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input%20%3E%20(schema)%20%3E%20(property)%20webRTCPlayback">Link to this property</a>

</details>

[Link to this property](<#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input%20%3E%20(schema)>)

<details>

<summary>

class LiveInputListResponse: …

</summary>

<details>

<summary>

live\_inputs: Optional\[List\[LiveInput]]

</summary>

created: Optional\[datetime]

The date and time the live input was created.

formatdate-time

<a href="#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input_list_response%20%3E%20(schema)%20%3E%20(property)%20liveInputs%20%3E%20(items)%20%3E%20(property)%20created">Link to this property</a>

delete\_recording\_after\_days: Optional\[float]

Indicates the number of days after which the live inputs recordings will be deleted. When a stream completes and the recording is ready, the value is used to calculate a scheduled deletion date for that recording. Omit the field to indicate no change, or include with a <code>null</code> value to remove an existing scheduled deletion.

minimum30

<a href="#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input_list_response%20%3E%20(schema)%20%3E%20(property)%20liveInputs%20%3E%20(items)%20%3E%20(property)%20deleteRecordingAfterDays">Link to this property</a>

enabled: Optional\[bool]

Indicates whether the live input is enabled and can accept streams.

<a href="#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input_list_response%20%3E%20(schema)%20%3E%20(property)%20liveInputs%20%3E%20(items)%20%3E%20(property)%20enabled">Link to this property</a>

meta: Optional\[object]

A user modifiable key-value store used to reference other systems of record for managing live inputs.

<a href="#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input_list_response%20%3E%20(schema)%20%3E%20(property)%20liveInputs%20%3E%20(items)%20%3E%20(property)%20meta">Link to this property</a>

modified: Optional\[datetime]

The date and time the live input was last modified.

formatdate-time

<a href="#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input_list_response%20%3E%20(schema)%20%3E%20(property)%20liveInputs%20%3E%20(items)%20%3E%20(property)%20modified">Link to this property</a>

uid: Optional\[str]

A unique identifier for a live input.

maxLength32

<a href="#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input_list_response%20%3E%20(schema)%20%3E%20(property)%20liveInputs%20%3E%20(items)%20%3E%20(property)%20uid">Link to this property</a>

</details>

<a href="#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input_list_response%20%3E%20(schema)%20%3E%20(property)%20liveInputs">Link to this property</a>

range: Optional\[int]

The total number of remaining live inputs based on cursor position.

<a href="#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input_list_response%20%3E%20(schema)%20%3E%20(property)%20range">Link to this property</a>

total: Optional\[int]

The total number of live inputs that match the provided filters.

<a href="#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input_list_response%20%3E%20(schema)%20%3E%20(property)%20total">Link to this property</a>

</details>

[Link to this property](<#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input_list_response%20%3E%20(schema)>)

#### StreamLive InputsOutputs

##### [List all outputs associated with a specified live input](https://developers.cloudflare.com/api/python/resources/stream/subresources/live_inputs/subresources/outputs/methods/list)

stream.live\_inputs.outputs.list(strlive\_input\_identifier, OutputListParams\*\*kwargs) -> SyncSinglePage\[[Output](<https://developers.cloudflare.com/api/python/resources/stream#(resource)%20stream.live_inputs.outputs%20%3E%20(model)%20output%20%3E%20(schema)>)]

GET/accounts/{account\_id}/stream/live\_inputs/{live\_input\_identifier}/outputs

##### [Create a new output, connected to a live input](https://developers.cloudflare.com/api/python/resources/stream/subresources/live_inputs/subresources/outputs/methods/create)

stream.live\_inputs.outputs.create(strlive\_input\_identifier, OutputCreateParams\*\*kwargs) -> [Output](<https://developers.cloudflare.com/api/python/resources/stream#(resource)%20stream.live_inputs.outputs%20%3E%20(model)%20output%20%3E%20(schema)>)

POST/accounts/{account\_id}/stream/live\_inputs/{live\_input\_identifier}/outputs

##### [Update an output](https://developers.cloudflare.com/api/python/resources/stream/subresources/live_inputs/subresources/outputs/methods/update)

stream.live\_inputs.outputs.update(stroutput\_identifier, OutputUpdateParams\*\*kwargs) -> [Output](<https://developers.cloudflare.com/api/python/resources/stream#(resource)%20stream.live_inputs.outputs%20%3E%20(model)%20output%20%3E%20(schema)>)

PUT/accounts/{account\_id}/stream/live\_inputs/{live\_input\_identifier}/outputs/{output\_identifier}

##### [Delete an output](https://developers.cloudflare.com/api/python/resources/stream/subresources/live_inputs/subresources/outputs/methods/delete)

stream.live\_inputs.outputs.delete(stroutput\_identifier, OutputDeleteParams\*\*kwargs)

DELETE/accounts/{account\_id}/stream/live\_inputs/{live\_input\_identifier}/outputs/{output\_identifier}

##### ModelsExpand Collapse

<details>

<summary>

class Output: …

</summary>

enabled: Optional\[bool]

When enabled, live video streamed to the associated live input will be sent to the output URL. When disabled, live video will not be sent to the output URL, even when streaming to the associated live input. Use this to control precisely when you start and stop simulcasting to specific destinations like YouTube and Twitch.

<a href="#(resource)%20stream.live_inputs.outputs%20%3E%20(model)%20output%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

stream\_key: Optional\[str]

The streamKey used to authenticate against an output’s target.

<a href="#(resource)%20stream.live_inputs.outputs%20%3E%20(model)%20output%20%3E%20(schema)%20%3E%20(property)%20streamKey">Link to this property</a>

uid: Optional\[str]

A unique identifier for the output.

maxLength32

<a href="#(resource)%20stream.live_inputs.outputs%20%3E%20(model)%20output%20%3E%20(schema)%20%3E%20(property)%20uid">Link to this property</a>

url: Optional\[str]

The URL an output uses to restream.

<a href="#(resource)%20stream.live_inputs.outputs%20%3E%20(model)%20output%20%3E%20(schema)%20%3E%20(property)%20url">Link to this property</a>

</details>

[Link to this property](<#(resource)%20stream.live_inputs.outputs%20%3E%20(model)%20output%20%3E%20(schema)>)

#### StreamWatermarks

##### [List watermark profiles](https://developers.cloudflare.com/api/python/resources/stream/subresources/watermarks/methods/list)

stream.watermarks.list(WatermarkListParams\*\*kwargs) -> SyncSinglePage\[[Watermark](<https://developers.cloudflare.com/api/python/resources/stream#(resource)%20stream.watermarks%20%3E%20(model)%20watermark%20%3E%20(schema)>)]

GET/accounts/{account\_id}/stream/watermarks

##### [Watermark profile details](https://developers.cloudflare.com/api/python/resources/stream/subresources/watermarks/methods/get)

stream.watermarks.get(stridentifier, WatermarkGetParams\*\*kwargs) -> [Watermark](<https://developers.cloudflare.com/api/python/resources/stream#(resource)%20stream.watermarks%20%3E%20(model)%20watermark%20%3E%20(schema)>)

GET/accounts/{account\_id}/stream/watermarks/{identifier}

##### [Create watermark profiles via basic upload](https://developers.cloudflare.com/api/python/resources/stream/subresources/watermarks/methods/create)

stream.watermarks.create(WatermarkCreateParams\*\*kwargs) -> [Watermark](<https://developers.cloudflare.com/api/python/resources/stream#(resource)%20stream.watermarks%20%3E%20(model)%20watermark%20%3E%20(schema)>)

POST/accounts/{account\_id}/stream/watermarks

##### [Delete watermark profiles](https://developers.cloudflare.com/api/python/resources/stream/subresources/watermarks/methods/delete)

stream.watermarks.delete(stridentifier, WatermarkDeleteParams\*\*kwargs) -> [WatermarkDeleteResponse](<https://developers.cloudflare.com/api/python/resources/stream#(resource)%20stream.watermarks%20%3E%20(model)%20watermark_delete_response%20%3E%20(schema)>)

DELETE/accounts/{account\_id}/stream/watermarks/{identifier}

##### ModelsExpand Collapse

<details>

<summary>

class Watermark: …

</summary>

created: Optional\[datetime]

The date and a time a watermark profile was created.

formatdate-time

<a href="#(resource)%20stream.watermarks%20%3E%20(model)%20watermark%20%3E%20(schema)%20%3E%20(property)%20created">Link to this property</a>

downloaded\_from: Optional\[str]

The source URL for a downloaded image. If the watermark profile was created via direct upload, this field is null.

<a href="#(resource)%20stream.watermarks%20%3E%20(model)%20watermark%20%3E%20(schema)%20%3E%20(property)%20downloadedFrom">Link to this property</a>

height: Optional\[int]

The height of the image in pixels.

<a href="#(resource)%20stream.watermarks%20%3E%20(model)%20watermark%20%3E%20(schema)%20%3E%20(property)%20height">Link to this property</a>

name: Optional\[str]

A short description of the watermark profile.

<a href="#(resource)%20stream.watermarks%20%3E%20(model)%20watermark%20%3E%20(schema)%20%3E%20(property)%20name">Link to this property</a>

opacity: Optional\[float]

The translucency of the image. A value of <code>0.0</code> makes the image completely transparent, and <code>1.0</code> makes the image completely opaque. Note that if the image is already semi-transparent, setting this to <code>1.0</code> will not make the image completely opaque.

maximum1

minimum0

<a href="#(resource)%20stream.watermarks%20%3E%20(model)%20watermark%20%3E%20(schema)%20%3E%20(property)%20opacity">Link to this property</a>

padding: Optional\[float]

The whitespace between the adjacent edges (determined by position) of the video and the image. <code>0.0</code> indicates no padding, and <code>1.0</code> indicates a fully padded video width or length, as determined by the algorithm.

maximum1

minimum0

<a href="#(resource)%20stream.watermarks%20%3E%20(model)%20watermark%20%3E%20(schema)%20%3E%20(property)%20padding">Link to this property</a>

position: Optional\[str]

The location of the image. Valid positions are: <code>upperRight</code>, <code>upperLeft</code>, <code>lowerLeft</code>, <code>lowerRight</code>, and <code>center</code>. Note that <code>center</code> ignores the <code>padding</code> parameter.

<a href="#(resource)%20stream.watermarks%20%3E%20(model)%20watermark%20%3E%20(schema)%20%3E%20(property)%20position">Link to this property</a>

scale: Optional\[float]

The size of the image relative to the overall size of the video. This parameter will adapt to horizontal and vertical videos automatically. <code>0.0</code> indicates no scaling (use the size of the image as-is), and <code>1.0</code> fills the entire video.

maximum1

minimum0

<a href="#(resource)%20stream.watermarks%20%3E%20(model)%20watermark%20%3E%20(schema)%20%3E%20(property)%20scale">Link to this property</a>

size: Optional\[float]

The size of the image in bytes.

<a href="#(resource)%20stream.watermarks%20%3E%20(model)%20watermark%20%3E%20(schema)%20%3E%20(property)%20size">Link to this property</a>

uid: Optional\[str]

The unique identifier for a watermark profile.

maxLength32

<a href="#(resource)%20stream.watermarks%20%3E%20(model)%20watermark%20%3E%20(schema)%20%3E%20(property)%20uid">Link to this property</a>

width: Optional\[int]

The width of the image in pixels.

<a href="#(resource)%20stream.watermarks%20%3E%20(model)%20watermark%20%3E%20(schema)%20%3E%20(property)%20width">Link to this property</a>

</details>

[Link to this property](<#(resource)%20stream.watermarks%20%3E%20(model)%20watermark%20%3E%20(schema)>)

str

[Link to this property](<#(resource)%20stream.watermarks%20%3E%20(model)%20watermark_delete_response%20%3E%20(schema)>)

#### StreamWebhooks

##### [View webhook](https://developers.cloudflare.com/api/python/resources/stream/subresources/webhooks/methods/get)

stream.webhooks.get(WebhookGetParams\*\*kwargs) -> [WebhookGetResponse](<https://developers.cloudflare.com/api/python/resources/stream#(resource)%20stream.webhooks%20%3E%20(model)%20webhook_get_response%20%3E%20(schema)>)

GET/accounts/{account\_id}/stream/webhook

##### [Create VOD webhooks](https://developers.cloudflare.com/api/python/resources/stream/subresources/webhooks/methods/update)

stream.webhooks.update(WebhookUpdateParams\*\*kwargs) -> [WebhookUpdateResponse](<https://developers.cloudflare.com/api/python/resources/stream#(resource)%20stream.webhooks%20%3E%20(model)%20webhook_update_response%20%3E%20(schema)>)

PUT/accounts/{account\_id}/stream/webhook

##### [Delete webhooks](https://developers.cloudflare.com/api/python/resources/stream/subresources/webhooks/methods/delete)

stream.webhooks.delete(WebhookDeleteParams\*\*kwargs) -> [WebhookDeleteResponse](<https://developers.cloudflare.com/api/python/resources/stream#(resource)%20stream.webhooks%20%3E%20(model)%20webhook_delete_response%20%3E%20(schema)>)

DELETE/accounts/{account\_id}/stream/webhook

##### ModelsExpand Collapse

<details>

<summary>

class WebhookGetResponse: …

</summary>

modified: Optional\[datetime]

The date and time the webhook was last modified.

formatdate-time

<a href="#(resource)%20stream.webhooks%20%3E%20(model)%20webhook_get_response%20%3E%20(schema)%20%3E%20(property)%20modified">Link to this property</a>

notification\_url: Optional\[str]

The URL where webhooks will be sent.

formaturi

<a href="#(resource)%20stream.webhooks%20%3E%20(model)%20webhook_get_response%20%3E%20(schema)%20%3E%20(property)%20notificationUrl">Link to this property</a>

secret: Optional\[str]

The secret used to verify webhook signatures.

<a href="#(resource)%20stream.webhooks%20%3E%20(model)%20webhook_get_response%20%3E%20(schema)%20%3E%20(property)%20secret">Link to this property</a>

</details>

[Link to this property](<#(resource)%20stream.webhooks%20%3E%20(model)%20webhook_get_response%20%3E%20(schema)>)

<details>

<summary>

class WebhookUpdateResponse: …

</summary>

modified: Optional\[datetime]

The date and time the webhook was last modified.

formatdate-time

<a href="#(resource)%20stream.webhooks%20%3E%20(model)%20webhook_update_response%20%3E%20(schema)%20%3E%20(property)%20modified">Link to this property</a>

notification\_url: Optional\[str]

The URL where webhooks will be sent.

formaturi

<a href="#(resource)%20stream.webhooks%20%3E%20(model)%20webhook_update_response%20%3E%20(schema)%20%3E%20(property)%20notificationUrl">Link to this property</a>

secret: Optional\[str]

The secret used to verify webhook signatures.

<a href="#(resource)%20stream.webhooks%20%3E%20(model)%20webhook_update_response%20%3E%20(schema)%20%3E%20(property)%20secret">Link to this property</a>

</details>

[Link to this property](<#(resource)%20stream.webhooks%20%3E%20(model)%20webhook_update_response%20%3E%20(schema)>)

str

[Link to this property](<#(resource)%20stream.webhooks%20%3E%20(model)%20webhook_delete_response%20%3E%20(schema)>)

#### StreamCaptions

##### [List captions or subtitles](https://developers.cloudflare.com/api/python/resources/stream/subresources/captions/methods/get)

stream.captions.get(stridentifier, CaptionGetParams\*\*kwargs) -> SyncSinglePage\[[Caption](<https://developers.cloudflare.com/api/python/resources/stream#(resource)%20stream.captions%20%3E%20(model)%20caption%20%3E%20(schema)>)]

GET/accounts/{account\_id}/stream/{identifier}/captions

##### ModelsExpand Collapse

<details>

<summary>

class Caption: …

</summary>

generated: Optional\[bool]

Whether the caption was generated via AI.

<a href="#(resource)%20stream.captions%20%3E%20(model)%20caption%20%3E%20(schema)%20%3E%20(property)%20generated">Link to this property</a>

label: Optional\[str]

The language label displayed in the native language to users.

<a href="#(resource)%20stream.captions%20%3E%20(model)%20caption%20%3E%20(schema)%20%3E%20(property)%20label">Link to this property</a>

language: Optional\[str]

The language tag in BCP 47 format.

<a href="#(resource)%20stream.captions%20%3E%20(model)%20caption%20%3E%20(schema)%20%3E%20(property)%20language">Link to this property</a>

<details>

<summary>

status: Optional\[Literal\["ready", "inprogress", "error"]]

The status of a generated caption.

</summary>

One of the following:

"ready"

<a href="#(resource)%20stream.captions%20%3E%20(model)%20caption%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%200">Link to this property</a>

"inprogress"

<a href="#(resource)%20stream.captions%20%3E%20(model)%20caption%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%201">Link to this property</a>

"error"

<a href="#(resource)%20stream.captions%20%3E%20(model)%20caption%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20stream.captions%20%3E%20(model)%20caption%20%3E%20(schema)%20%3E%20(property)%20status">Link to this property</a>

</details>

[Link to this property](<#(resource)%20stream.captions%20%3E%20(model)%20caption%20%3E%20(schema)>)

#### StreamCaptionsLanguage

##### [List captions or subtitles for a provided language](https://developers.cloudflare.com/api/python/resources/stream/subresources/captions/subresources/language/methods/get)

stream.captions.language.get(strlanguage, LanguageGetParams\*\*kwargs) -> [Caption](<https://developers.cloudflare.com/api/python/resources/stream#(resource)%20stream.captions%20%3E%20(model)%20caption%20%3E%20(schema)>)

GET/accounts/{account\_id}/stream/{identifier}/captions/{language}

##### [Generate captions or subtitles for a provided language via AI](https://developers.cloudflare.com/api/python/resources/stream/subresources/captions/subresources/language/methods/create)

stream.captions.language.create(strlanguage, LanguageCreateParams\*\*kwargs) -> [Caption](<https://developers.cloudflare.com/api/python/resources/stream#(resource)%20stream.captions%20%3E%20(model)%20caption%20%3E%20(schema)>)

POST/accounts/{account\_id}/stream/{identifier}/captions/{language}/generate

##### [Upload captions or subtitles](https://developers.cloudflare.com/api/python/resources/stream/subresources/captions/subresources/language/methods/update)

stream.captions.language.update(strlanguage, LanguageUpdateParams\*\*kwargs) -> [Caption](<https://developers.cloudflare.com/api/python/resources/stream#(resource)%20stream.captions%20%3E%20(model)%20caption%20%3E%20(schema)>)

PUT/accounts/{account\_id}/stream/{identifier}/captions/{language}

##### [Delete captions or subtitles](https://developers.cloudflare.com/api/python/resources/stream/subresources/captions/subresources/language/methods/delete)

stream.captions.language.delete(strlanguage, LanguageDeleteParams\*\*kwargs) -> [LanguageDeleteResponse](<https://developers.cloudflare.com/api/python/resources/stream#(resource)%20stream.captions.language%20%3E%20(model)%20language_delete_response%20%3E%20(schema)>)

DELETE/accounts/{account\_id}/stream/{identifier}/captions/{language}

##### ModelsExpand Collapse

str

[Link to this property](<#(resource)%20stream.captions.language%20%3E%20(model)%20language_delete_response%20%3E%20(schema)>)

#### StreamCaptionsLanguageVtt

##### [Return WebVTT captions for a provided language](https://developers.cloudflare.com/api/python/resources/stream/subresources/captions/subresources/language/subresources/vtt/methods/get)

stream.captions.language.vtt.get(strlanguage, VttGetParams\*\*kwargs) -> [VttGetResponse](<https://developers.cloudflare.com/api/python/resources/stream#(resource)%20stream.captions.language.vtt%20%3E%20(model)%20vtt_get_response%20%3E%20(schema)>)

GET/accounts/{account\_id}/stream/{identifier}/captions/{language}/vtt

##### ModelsExpand Collapse

str

[Link to this property](<#(resource)%20stream.captions.language.vtt%20%3E%20(model)%20vtt_get_response%20%3E%20(schema)>)

#### StreamDownloads

##### [List downloads](https://developers.cloudflare.com/api/python/resources/stream/subresources/downloads/methods/get)

stream.downloads.get(stridentifier, DownloadGetParams\*\*kwargs) -> [DownloadGetResponse](<https://developers.cloudflare.com/api/python/resources/stream#(resource)%20stream.downloads%20%3E%20(model)%20download_get_response%20%3E%20(schema)>)

GET/accounts/{account\_id}/stream/{identifier}/downloads

##### [Create downloads](https://developers.cloudflare.com/api/python/resources/stream/subresources/downloads/methods/create)

stream.downloads.create(stridentifier, DownloadCreateParams\*\*kwargs) -> [DownloadCreateResponse](<https://developers.cloudflare.com/api/python/resources/stream#(resource)%20stream.downloads%20%3E%20(model)%20download_create_response%20%3E%20(schema)>)

POST/accounts/{account\_id}/stream/{identifier}/downloads

##### [Delete downloads](https://developers.cloudflare.com/api/python/resources/stream/subresources/downloads/methods/delete)

stream.downloads.delete(stridentifier, DownloadDeleteParams\*\*kwargs) -> [DownloadDeleteResponse](<https://developers.cloudflare.com/api/python/resources/stream#(resource)%20stream.downloads%20%3E%20(model)%20download_delete_response%20%3E%20(schema)>)

DELETE/accounts/{account\_id}/stream/{identifier}/downloads

##### ModelsExpand Collapse

<details>

<summary>

class DownloadGetResponse: …

An object with download type keys. Each key is optional and only present if that download type has been created.

</summary>

<details>

<summary>

audio: Optional\[Audio]

The audio-only download. Only present if this download type has been created.

</summary>

percent\_complete: float

Indicates the progress as a percentage between 0 and 100.

maximum100

minimum0

<a href="#(resource)%20stream.downloads%20%3E%20(model)%20download_get_response%20%3E%20(schema)%20%3E%20(property)%20audio%20%3E%20(property)%20percentComplete">Link to this property</a>

<details>

<summary>

status: Literal\["ready", "inprogress", "error"]

The status of a generated download.

</summary>

One of the following:

"ready"

<a href="#(resource)%20stream.downloads%20%3E%20(model)%20download_get_response%20%3E%20(schema)%20%3E%20(property)%20audio%20%3E%20(property)%20status%20%3E%20(member)%200">Link to this property</a>

"inprogress"

<a href="#(resource)%20stream.downloads%20%3E%20(model)%20download_get_response%20%3E%20(schema)%20%3E%20(property)%20audio%20%3E%20(property)%20status%20%3E%20(member)%201">Link to this property</a>

"error"

<a href="#(resource)%20stream.downloads%20%3E%20(model)%20download_get_response%20%3E%20(schema)%20%3E%20(property)%20audio%20%3E%20(property)%20status%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20stream.downloads%20%3E%20(model)%20download_get_response%20%3E%20(schema)%20%3E%20(property)%20audio%20%3E%20(property)%20status">Link to this property</a>

url: Optional\[str]

The URL to access the generated download.

formaturi

<a href="#(resource)%20stream.downloads%20%3E%20(model)%20download_get_response%20%3E%20(schema)%20%3E%20(property)%20audio%20%3E%20(property)%20url">Link to this property</a>

</details>

<a href="#(resource)%20stream.downloads%20%3E%20(model)%20download_get_response%20%3E%20(schema)%20%3E%20(property)%20audio">Link to this property</a>

<details>

<summary>

default: Optional\[Default]

The default video download. Only present if this download type has been created.

</summary>

percent\_complete: float

Indicates the progress as a percentage between 0 and 100.

maximum100

minimum0

<a href="#(resource)%20stream.downloads%20%3E%20(model)%20download_get_response%20%3E%20(schema)%20%3E%20(property)%20default%20%3E%20(property)%20percentComplete">Link to this property</a>

<details>

<summary>

status: Literal\["ready", "inprogress", "error"]

The status of a generated download.

</summary>

One of the following:

"ready"

<a href="#(resource)%20stream.downloads%20%3E%20(model)%20download_get_response%20%3E%20(schema)%20%3E%20(property)%20default%20%3E%20(property)%20status%20%3E%20(member)%200">Link to this property</a>

"inprogress"

<a href="#(resource)%20stream.downloads%20%3E%20(model)%20download_get_response%20%3E%20(schema)%20%3E%20(property)%20default%20%3E%20(property)%20status%20%3E%20(member)%201">Link to this property</a>

"error"

<a href="#(resource)%20stream.downloads%20%3E%20(model)%20download_get_response%20%3E%20(schema)%20%3E%20(property)%20default%20%3E%20(property)%20status%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20stream.downloads%20%3E%20(model)%20download_get_response%20%3E%20(schema)%20%3E%20(property)%20default%20%3E%20(property)%20status">Link to this property</a>

url: Optional\[str]

The URL to access the generated download.

formaturi

<a href="#(resource)%20stream.downloads%20%3E%20(model)%20download_get_response%20%3E%20(schema)%20%3E%20(property)%20default%20%3E%20(property)%20url">Link to this property</a>

</details>

<a href="#(resource)%20stream.downloads%20%3E%20(model)%20download_get_response%20%3E%20(schema)%20%3E%20(property)%20default">Link to this property</a>

</details>

[Link to this property](<#(resource)%20stream.downloads%20%3E%20(model)%20download_get_response%20%3E%20(schema)>)

<details>

<summary>

class DownloadCreateResponse: …

An object with download type keys. Each key is optional and only present if that download type has been created.

</summary>

<details>

<summary>

audio: Optional\[Audio]

The audio-only download. Only present if this download type has been created.

</summary>

percent\_complete: float

Indicates the progress as a percentage between 0 and 100.

maximum100

minimum0

<a href="#(resource)%20stream.downloads%20%3E%20(model)%20download_create_response%20%3E%20(schema)%20%3E%20(property)%20audio%20%3E%20(property)%20percentComplete">Link to this property</a>

<details>

<summary>

status: Literal\["ready", "inprogress", "error"]

The status of a generated download.

</summary>

One of the following:

"ready"

<a href="#(resource)%20stream.downloads%20%3E%20(model)%20download_create_response%20%3E%20(schema)%20%3E%20(property)%20audio%20%3E%20(property)%20status%20%3E%20(member)%200">Link to this property</a>

"inprogress"

<a href="#(resource)%20stream.downloads%20%3E%20(model)%20download_create_response%20%3E%20(schema)%20%3E%20(property)%20audio%20%3E%20(property)%20status%20%3E%20(member)%201">Link to this property</a>

"error"

<a href="#(resource)%20stream.downloads%20%3E%20(model)%20download_create_response%20%3E%20(schema)%20%3E%20(property)%20audio%20%3E%20(property)%20status%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20stream.downloads%20%3E%20(model)%20download_create_response%20%3E%20(schema)%20%3E%20(property)%20audio%20%3E%20(property)%20status">Link to this property</a>

url: Optional\[str]

The URL to access the generated download.

formaturi

<a href="#(resource)%20stream.downloads%20%3E%20(model)%20download_create_response%20%3E%20(schema)%20%3E%20(property)%20audio%20%3E%20(property)%20url">Link to this property</a>

</details>

<a href="#(resource)%20stream.downloads%20%3E%20(model)%20download_create_response%20%3E%20(schema)%20%3E%20(property)%20audio">Link to this property</a>

<details>

<summary>

default: Optional\[Default]

The default video download. Only present if this download type has been created.

</summary>

percent\_complete: float

Indicates the progress as a percentage between 0 and 100.

maximum100

minimum0

<a href="#(resource)%20stream.downloads%20%3E%20(model)%20download_create_response%20%3E%20(schema)%20%3E%20(property)%20default%20%3E%20(property)%20percentComplete">Link to this property</a>

<details>

<summary>

status: Literal\["ready", "inprogress", "error"]

The status of a generated download.

</summary>

One of the following:

"ready"

<a href="#(resource)%20stream.downloads%20%3E%20(model)%20download_create_response%20%3E%20(schema)%20%3E%20(property)%20default%20%3E%20(property)%20status%20%3E%20(member)%200">Link to this property</a>

"inprogress"

<a href="#(resource)%20stream.downloads%20%3E%20(model)%20download_create_response%20%3E%20(schema)%20%3E%20(property)%20default%20%3E%20(property)%20status%20%3E%20(member)%201">Link to this property</a>

"error"

<a href="#(resource)%20stream.downloads%20%3E%20(model)%20download_create_response%20%3E%20(schema)%20%3E%20(property)%20default%20%3E%20(property)%20status%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20stream.downloads%20%3E%20(model)%20download_create_response%20%3E%20(schema)%20%3E%20(property)%20default%20%3E%20(property)%20status">Link to this property</a>

url: Optional\[str]

The URL to access the generated download.

formaturi

<a href="#(resource)%20stream.downloads%20%3E%20(model)%20download_create_response%20%3E%20(schema)%20%3E%20(property)%20default%20%3E%20(property)%20url">Link to this property</a>

</details>

<a href="#(resource)%20stream.downloads%20%3E%20(model)%20download_create_response%20%3E%20(schema)%20%3E%20(property)%20default">Link to this property</a>

</details>

[Link to this property](<#(resource)%20stream.downloads%20%3E%20(model)%20download_create_response%20%3E%20(schema)>)

str

[Link to this property](<#(resource)%20stream.downloads%20%3E%20(model)%20download_delete_response%20%3E%20(schema)>)

#### StreamEmbed

##### [Deprecated: Retrieve legacy embed code HTML](https://developers.cloudflare.com/api/python/resources/stream/subresources/embed/methods/get)

stream.embed.get(stridentifier, EmbedGetParams\*\*kwargs) -> [EmbedGetResponse](<https://developers.cloudflare.com/api/python/resources/stream#(resource)%20stream.embed%20%3E%20(model)%20embed_get_response%20%3E%20(schema)>)

GET/accounts/{account\_id}/stream/{identifier}/embed

##### ModelsExpand Collapse

str

[Link to this property](<#(resource)%20stream.embed%20%3E%20(model)%20embed_get_response%20%3E%20(schema)>)

#### StreamToken

##### [Create signed URL tokens for videos](https://developers.cloudflare.com/api/python/resources/stream/subresources/token/methods/create)

stream.token.create(stridentifier, TokenCreateParams\*\*kwargs) -> [TokenCreateResponse](<https://developers.cloudflare.com/api/python/resources/stream#(resource)%20stream.token%20%3E%20(model)%20token_create_response%20%3E%20(schema)>)

POST/accounts/{account\_id}/stream/{identifier}/token

##### ModelsExpand Collapse

<details>

<summary>

class TokenCreateResponse: …

</summary>

token: Optional\[str]

The signed token used with the signed URLs feature.

<a href="#(resource)%20stream.token%20%3E%20(model)%20token_create_response%20%3E%20(schema)%20%3E%20(property)%20token">Link to this property</a>

</details>

[Link to this property](<#(resource)%20stream.token%20%3E%20(model)%20token_create_response%20%3E%20(schema)>)