---
title: Stream
---

[Skip to content](#_top)

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

Copy Markdown

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

---

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

# Stream

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

client.Stream.List(ctx, params) (\*SinglePage\[[Video](<https://developers.cloudflare.com/api/go/resources/stream#(resource)%20stream%20%3E%20(model)%20video%20%3E%20(schema)>)], error)

GET/accounts/{account\_id}/stream

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

client.Stream.Get(ctx, identifier, query) (\*[Video](<https://developers.cloudflare.com/api/go/resources/stream#(resource)%20stream%20%3E%20(model)%20video%20%3E%20(schema)>), error)

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

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

client.Stream.New(ctx, params) error

POST/accounts/{account\_id}/stream

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

client.Stream.Edit(ctx, identifier, params) (\*[Video](<https://developers.cloudflare.com/api/go/resources/stream#(resource)%20stream%20%3E%20(model)%20video%20%3E%20(schema)>), error)

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

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

client.Stream.Delete(ctx, identifier, body) error

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

##### ModelsExpand Collapse

type AllowedOrigins string

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

<details>

<summary>

type Video struct{…}

</summary>

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

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>

ClippedFrom stringOptional

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 TimeOptional

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 stringOptional

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 float64Optional

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 VideoInputOptional

</summary>

Height int64Optional

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 int64Optional

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>

LiveInput stringOptional

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>

MaxDurationSeconds int64Optional

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>

MaxSizeBytes int64Optional

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 unknownOptional

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 TimeOptional

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 VideoPlaybackOptional

</summary>

Dash stringOptional

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 stringOptional

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 stringOptional

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>

PublicDetails VideoPublicDetailsOptional

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

</summary>

ChannelLink stringOptional

<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 stringOptional

<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>

MediaID int64Optional

<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>

ShareLink stringOptional

<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 stringOptional

<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>

ReadyToStream boolOptional

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>

ReadyToStreamAt TimeOptional

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>

RequireSignedURLs boolOptional

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>

ScheduledDeletion TimeOptional

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 float64Optional

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 VideoStatusOptional

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>

ErrorReasonCode stringOptional

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>

ErrorReasonText stringOptional

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>

PctComplete stringOptional

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 VideoStatusStateOptional

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

</summary>

One of the following:

const VideoStatusStatePendingupload VideoStatusState = "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>

const VideoStatusStateDownloading VideoStatusState = "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>

const VideoStatusStateQueued VideoStatusState = "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>

const VideoStatusStateInprogress VideoStatusState = "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>

const VideoStatusStateReady VideoStatusState = "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>

const VideoStatusStateError VideoStatusState = "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>

const VideoStatusStateLiveInprogress VideoStatusState = "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 stringOptional

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>

ThumbnailTimestampPct float64Optional

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 stringOptional

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 TimeOptional

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>

UploadExpiry TimeOptional

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 <a href="https://developers.cloudflare.com/api/go/resources/stream#(resource)%20stream.watermarks%20%3E%20(model)%20watermark%20%3E%20(schema)">Watermark</a>Optional

<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/go/resources/stream/subresources/audio_tracks/methods/get)

client.Stream.AudioTracks.Get(ctx, identifier, query) (\*[AudioTrackGetResponse](<https://developers.cloudflare.com/api/go/resources/stream#(resource)%20stream.audio_tracks%20%3E%20(model)%20AudioTrackGetResponse%20%3E%20(schema)>), error)

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

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

client.Stream.AudioTracks.Edit(ctx, identifier, audioIdentifier, params) (\*[Audio](<https://developers.cloudflare.com/api/go/resources/stream#(resource)%20stream.audio_tracks%20%3E%20(model)%20audio%20%3E%20(schema)>), error)

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

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

client.Stream.AudioTracks.Delete(ctx, identifier, audioIdentifier, body) (\*string, error)

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

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

client.Stream.AudioTracks.Copy(ctx, identifier, params) (\*[Audio](<https://developers.cloudflare.com/api/go/resources/stream#(resource)%20stream.audio_tracks%20%3E%20(model)%20audio%20%3E%20(schema)>), error)

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

##### ModelsExpand Collapse

<details>

<summary>

type Audio struct{…}

</summary>

Default boolOptional

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 stringOptional

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 AudioStatusOptional

Specifies the processing status of the video.

</summary>

One of the following:

const AudioStatusQueued AudioStatus = "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>

const AudioStatusReady AudioStatus = "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>

const AudioStatusError AudioStatus = "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 stringOptional

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)>)

#### StreamVideos

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

client.Stream.Videos.StorageUsage(ctx, params) (\*[VideoStorageUsageResponse](<https://developers.cloudflare.com/api/go/resources/stream#(resource)%20stream.videos%20%3E%20(model)%20VideoStorageUsageResponse%20%3E%20(schema)>), error)

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

#### StreamClip

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

client.Stream.Clip.New(ctx, params) (\*[Video](<https://developers.cloudflare.com/api/go/resources/stream#(resource)%20stream%20%3E%20(model)%20video%20%3E%20(schema)>), error)

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

#### StreamCopy

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

client.Stream.Copy.New(ctx, params) (\*[Video](<https://developers.cloudflare.com/api/go/resources/stream#(resource)%20stream%20%3E%20(model)%20video%20%3E%20(schema)>), error)

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

#### StreamDirect Upload

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

client.Stream.DirectUpload.New(ctx, params) (\*[DirectUploadNewResponse](<https://developers.cloudflare.com/api/go/resources/stream#(resource)%20stream.direct_upload%20%3E%20(model)%20DirectUploadNewResponse%20%3E%20(schema)>), error)

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

#### StreamKeys

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

client.Stream.Keys.Get(ctx, query) (\*SinglePage\[[KeyGetResponse](<https://developers.cloudflare.com/api/go/resources/stream#(resource)%20stream.keys%20%3E%20(model)%20KeyGetResponse%20%3E%20(schema)>)], error)

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

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

client.Stream.Keys.New(ctx, body) (\*[Keys](<https://developers.cloudflare.com/api/go/resources/stream#(resource)%20stream.keys%20%3E%20(model)%20keys%20%3E%20(schema)>), error)

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

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

client.Stream.Keys.Delete(ctx, identifier, body) (\*string, error)

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

##### ModelsExpand Collapse

<details>

<summary>

type Keys struct{…}

</summary>

ID stringOptional

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 TimeOptional

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 stringOptional

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 stringOptional

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)>)

#### StreamLive Inputs

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

client.Stream.LiveInputs.List(ctx, params) (\*[LiveInputListResponse](<https://developers.cloudflare.com/api/go/resources/stream#(resource)%20stream.live_inputs%20%3E%20(model)%20LiveInputListResponse%20%3E%20(schema)>), error)

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

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

client.Stream.LiveInputs.Get(ctx, liveInputIdentifier, query) (\*[LiveInput](<https://developers.cloudflare.com/api/go/resources/stream#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input%20%3E%20(schema)>), error)

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

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

client.Stream.LiveInputs.New(ctx, params) (\*[LiveInput](<https://developers.cloudflare.com/api/go/resources/stream#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input%20%3E%20(schema)>), error)

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

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

client.Stream.LiveInputs.Update(ctx, liveInputIdentifier, params) (\*[LiveInput](<https://developers.cloudflare.com/api/go/resources/stream#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input%20%3E%20(schema)>), error)

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

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

client.Stream.LiveInputs.Delete(ctx, liveInputIdentifier, body) error

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

##### ModelsExpand Collapse

<details>

<summary>

type LiveInput struct{…}

Details about a live input.

</summary>

Created TimeOptional

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>

DeleteRecordingAfterDays float64Optional

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 boolOptional

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>

KeysRotatedAt TimeOptional

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 unknownOptional

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 TimeOptional

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 LiveInputPlaybackOptional

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

</summary>

Dash string

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 string

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>

PreferLowLatency boolOptional

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 LiveInputRecordingOptional

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>

AllowedOrigins \[]stringOptional

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>

HideLiveViewerCount boolOptional

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 LiveInputRecordingModeOptional

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:

const LiveInputRecordingModeOff LiveInputRecordingMode = "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>

const LiveInputRecordingModeAutomatic LiveInputRecordingMode = "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>

RequireSignedURLs boolOptional

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>

TimeoutSeconds int64Optional

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 LiveInputRtmpsOptional

Details for streaming to an live input using RTMPS.

</summary>

StreamKey stringOptional

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 stringOptional

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>

RtmpsPlayback LiveInputRtmpsPlaybackOptional

Details for playback from an live input using RTMPS.

</summary>

StreamKey stringOptional

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 stringOptional

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 LiveInputSrtOptional

Details for streaming to a live input using SRT.

</summary>

Passphrase stringOptional

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>

StreamID stringOptional

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 stringOptional

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>

SrtPlayback LiveInputSrtPlaybackOptional

Details for playback from an live input using SRT.

</summary>

Passphrase stringOptional

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>

StreamID stringOptional

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 stringOptional

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 LiveInputStatusOptional

The connection status of a live input.

</summary>

One of the following:

const LiveInputStatusConnected LiveInputStatus = "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>

const LiveInputStatusReconnected LiveInputStatus = "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>

const LiveInputStatusReconnecting LiveInputStatus = "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>

const LiveInputStatusClientDisconnect LiveInputStatus = "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>

const LiveInputStatusTTLExceeded LiveInputStatus = "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>

const LiveInputStatusFailedToConnect LiveInputStatus = "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>

const LiveInputStatusFailedToReconnect LiveInputStatus = "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>

const LiveInputStatusNewConfigurationAccepted LiveInputStatus = "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 stringOptional

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>

WebRtc LiveInputWebRtcOptional

Details for streaming to a live input using WebRTC.

</summary>

URL stringOptional

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>

WebRtcPlayback LiveInputWebRtcPlaybackOptional

Details for playback from a live input using WebRTC.

</summary>

URL stringOptional

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)>)

#### StreamLive InputsOutputs

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

client.Stream.LiveInputs.Outputs.List(ctx, liveInputIdentifier, query) (\*SinglePage\[[Output](<https://developers.cloudflare.com/api/go/resources/stream#(resource)%20stream.live_inputs.outputs%20%3E%20(model)%20output%20%3E%20(schema)>)], error)

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/go/resources/stream/subresources/live_inputs/subresources/outputs/methods/create)

client.Stream.LiveInputs.Outputs.New(ctx, liveInputIdentifier, params) (\*[Output](<https://developers.cloudflare.com/api/go/resources/stream#(resource)%20stream.live_inputs.outputs%20%3E%20(model)%20output%20%3E%20(schema)>), error)

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

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

client.Stream.LiveInputs.Outputs.Update(ctx, liveInputIdentifier, outputIdentifier, params) (\*[Output](<https://developers.cloudflare.com/api/go/resources/stream#(resource)%20stream.live_inputs.outputs%20%3E%20(model)%20output%20%3E%20(schema)>), error)

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

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

client.Stream.LiveInputs.Outputs.Delete(ctx, liveInputIdentifier, outputIdentifier, body) error

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

##### ModelsExpand Collapse

<details>

<summary>

type Output struct{…}

</summary>

Enabled boolOptional

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>

StreamKey stringOptional

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 stringOptional

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 stringOptional

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/go/resources/stream/subresources/watermarks/methods/list)

client.Stream.Watermarks.List(ctx, query) (\*SinglePage\[[Watermark](<https://developers.cloudflare.com/api/go/resources/stream#(resource)%20stream.watermarks%20%3E%20(model)%20watermark%20%3E%20(schema)>)], error)

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

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

client.Stream.Watermarks.Get(ctx, identifier, query) (\*[Watermark](<https://developers.cloudflare.com/api/go/resources/stream#(resource)%20stream.watermarks%20%3E%20(model)%20watermark%20%3E%20(schema)>), error)

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

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

client.Stream.Watermarks.New(ctx, params) (\*[Watermark](<https://developers.cloudflare.com/api/go/resources/stream#(resource)%20stream.watermarks%20%3E%20(model)%20watermark%20%3E%20(schema)>), error)

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

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

client.Stream.Watermarks.Delete(ctx, identifier, body) (\*string, error)

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

##### ModelsExpand Collapse

<details>

<summary>

type Watermark struct{…}

</summary>

Created TimeOptional

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>

DownloadedFrom stringOptional

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 int64Optional

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 stringOptional

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 float64Optional

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 float64Optional

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 stringOptional

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 float64Optional

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 float64Optional

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 stringOptional

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 int64Optional

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)>)

#### StreamWebhooks

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

client.Stream.Webhooks.Get(ctx, query) (\*[WebhookGetResponse](<https://developers.cloudflare.com/api/go/resources/stream#(resource)%20stream.webhooks%20%3E%20(model)%20WebhookGetResponse%20%3E%20(schema)>), error)

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

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

client.Stream.Webhooks.Update(ctx, params) (\*[WebhookUpdateResponse](<https://developers.cloudflare.com/api/go/resources/stream#(resource)%20stream.webhooks%20%3E%20(model)%20WebhookUpdateResponse%20%3E%20(schema)>), error)

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

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

client.Stream.Webhooks.Delete(ctx, body) (\*string, error)

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

#### StreamCaptions

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

client.Stream.Captions.Get(ctx, identifier, query) (\*SinglePage\[[Caption](<https://developers.cloudflare.com/api/go/resources/stream#(resource)%20stream.captions%20%3E%20(model)%20caption%20%3E%20(schema)>)], error)

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

##### ModelsExpand Collapse

<details>

<summary>

type Caption struct{…}

</summary>

Generated boolOptional

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 stringOptional

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 stringOptional

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 CaptionStatusOptional

The status of a generated caption.

</summary>

One of the following:

const CaptionStatusReady CaptionStatus = "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>

const CaptionStatusInprogress CaptionStatus = "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>

const CaptionStatusError CaptionStatus = "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/go/resources/stream/subresources/captions/subresources/language/methods/get)

client.Stream.Captions.Language.Get(ctx, identifier, language, query) (\*[Caption](<https://developers.cloudflare.com/api/go/resources/stream#(resource)%20stream.captions%20%3E%20(model)%20caption%20%3E%20(schema)>), error)

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

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

client.Stream.Captions.Language.New(ctx, identifier, language, body) (\*[Caption](<https://developers.cloudflare.com/api/go/resources/stream#(resource)%20stream.captions%20%3E%20(model)%20caption%20%3E%20(schema)>), error)

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

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

client.Stream.Captions.Language.Update(ctx, identifier, language, params) (\*[Caption](<https://developers.cloudflare.com/api/go/resources/stream#(resource)%20stream.captions%20%3E%20(model)%20caption%20%3E%20(schema)>), error)

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

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

client.Stream.Captions.Language.Delete(ctx, identifier, language, body) (\*string, error)

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

#### StreamCaptionsLanguageVtt

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

client.Stream.Captions.Language.Vtt.Get(ctx, identifier, language, query) (\*string, error)

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

#### StreamDownloads

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

client.Stream.Downloads.Get(ctx, identifier, query) (\*[DownloadGetResponse](<https://developers.cloudflare.com/api/go/resources/stream#(resource)%20stream.downloads%20%3E%20(model)%20DownloadGetResponse%20%3E%20(schema)>), error)

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

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

client.Stream.Downloads.New(ctx, identifier, body) (\*[DownloadNewResponse](<https://developers.cloudflare.com/api/go/resources/stream#(resource)%20stream.downloads%20%3E%20(model)%20DownloadNewResponse%20%3E%20(schema)>), error)

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

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

client.Stream.Downloads.Delete(ctx, identifier, body) (\*string, error)

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

#### StreamEmbed

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

client.Stream.Embed.Get(ctx, identifier, query) (\*string, error)

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

#### StreamToken

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

client.Stream.Token.New(ctx, identifier, params) (\*[TokenNewResponse](<https://developers.cloudflare.com/api/go/resources/stream#(resource)%20stream.token%20%3E%20(model)%20TokenNewResponse%20%3E%20(schema)>), error)

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