Stream
List videos
client.stream.list(StreamListParams { account_id, asc, creator, 7 more } params, RequestOptionsoptions?): SinglePage<Video { allowedOrigins, created, creator, 20 more } >
GET/accounts/{account_id}/stream
Retrieve video details
client.stream.get(stringidentifier, StreamGetParams { account_id } params, RequestOptionsoptions?): Video { allowedOrigins, created, creator, 20 more }
GET/accounts/{account_id}/stream/{identifier}
Initiate video uploads using TUS
client.stream.create(StreamCreateParams { account_id, body, tusResumable, 4 more } params, RequestOptionsoptions?): void
POST/accounts/{account_id}/stream
Edit video details
client.stream.edit(stringidentifier, StreamEditParams { account_id, allowedOrigins, creator, 6 more } params, RequestOptionsoptions?): Video { allowedOrigins, created, creator, 20 more }
POST/accounts/{account_id}/stream/{identifier}
Delete video
client.stream.delete(stringidentifier, StreamDeleteParams { account_id } params, RequestOptionsoptions?): void
DELETE/accounts/{account_id}/stream/{identifier}
StreamAudio Tracks
List additional audio tracks on a video
client.stream.audioTracks.get(stringidentifier, AudioTrackGetParams { account_id } params, RequestOptionsoptions?): SinglePage<Audio { default, label, status, uid } >
GET/accounts/{account_id}/stream/{identifier}/audio
Edit additional audio tracks on a video
client.stream.audioTracks.edit(stringidentifier, stringaudioIdentifier, AudioTrackEditParams { account_id, _default, label } params, RequestOptionsoptions?): Audio { default, label, status, uid }
PATCH/accounts/{account_id}/stream/{identifier}/audio/{audio_identifier}
Delete additional audio tracks on a video
client.stream.audioTracks.delete(stringidentifier, stringaudioIdentifier, AudioTrackDeleteParams { account_id } params, RequestOptionsoptions?): AudioTrackDeleteResponse
DELETE/accounts/{account_id}/stream/{identifier}/audio/{audio_identifier}
Add audio tracks to a video
client.stream.audioTracks.copy(stringidentifier, AudioTrackCopyParams { account_id, label, url } params, RequestOptionsoptions?): Audio { default, label, status, uid }
POST/accounts/{account_id}/stream/{identifier}/audio/copy
StreamVideos
Storage use
client.stream.videos.storageUsage(VideoStorageUsageParams { account_id, creator } params, RequestOptionsoptions?): VideoStorageUsageResponse { creator, totalStorageMinutes, totalStorageMinutesLimit, videoCount }
GET/accounts/{account_id}/stream/storage-usage
StreamClip
Clip videos given a start and end time
client.stream.clip.create(ClipCreateParams { account_id, clippedFromVideoUID, endTimeSeconds, 7 more } params, RequestOptionsoptions?): Clip { allowedOrigins, clippedFromVideoUID, created, 12 more }
POST/accounts/{account_id}/stream/clip
StreamCopy
Upload videos from a URL
client.stream.copy.create(CopyCreateParams { account_id, url, allowedOrigins, 7 more } params, RequestOptionsoptions?): Video { allowedOrigins, created, creator, 20 more }
POST/accounts/{account_id}/stream/copy
StreamDirect Upload
Upload videos via direct upload URLs
client.stream.directUpload.create(DirectUploadCreateParams { account_id, maxDurationSeconds, allowedOrigins, 8 more } params, RequestOptionsoptions?): DirectUploadCreateResponse { scheduledDeletion, uid, uploadURL, watermark }
POST/accounts/{account_id}/stream/direct_upload
StreamKeys
List signing keys
client.stream.keys.get(KeyGetParams { account_id } params, RequestOptionsoptions?): SinglePage<KeyGetResponse { id, created } >
GET/accounts/{account_id}/stream/keys
Create signing keys
client.stream.keys.create(KeyCreateParams { account_id, body } params, RequestOptionsoptions?): Keys { id, created, jwk, pem }
POST/accounts/{account_id}/stream/keys
Delete signing keys
client.stream.keys.delete(stringidentifier, KeyDeleteParams { account_id } params, RequestOptionsoptions?): KeyDeleteResponse
DELETE/accounts/{account_id}/stream/keys/{identifier}
StreamLive Inputs
List live inputs
client.stream.liveInputs.list(LiveInputListParams { account_id, include_counts } params, RequestOptionsoptions?): LiveInputListResponse { liveInputs, range, total }
GET/accounts/{account_id}/stream/live_inputs
Retrieve a live input
client.stream.liveInputs.get(stringliveInputIdentifier, LiveInputGetParams { account_id } params, RequestOptionsoptions?): LiveInput { created, deleteRecordingAfterDays, enabled, 11 more }
GET/accounts/{account_id}/stream/live_inputs/{live_input_identifier}
Create a live input
client.stream.liveInputs.create(LiveInputCreateParams { account_id, defaultCreator, deleteRecordingAfterDays, 3 more } params, RequestOptionsoptions?): LiveInput { created, deleteRecordingAfterDays, enabled, 11 more }
POST/accounts/{account_id}/stream/live_inputs
Update a live input
client.stream.liveInputs.update(stringliveInputIdentifier, LiveInputUpdateParams { account_id, defaultCreator, deleteRecordingAfterDays, 3 more } params, RequestOptionsoptions?): LiveInput { created, deleteRecordingAfterDays, enabled, 11 more }
PUT/accounts/{account_id}/stream/live_inputs/{live_input_identifier}
Delete a live input
client.stream.liveInputs.delete(stringliveInputIdentifier, LiveInputDeleteParams { account_id } params, RequestOptionsoptions?): void
DELETE/accounts/{account_id}/stream/live_inputs/{live_input_identifier}
StreamLive InputsOutputs
List all outputs associated with a specified live input
client.stream.liveInputs.outputs.list(stringliveInputIdentifier, OutputListParams { account_id } params, RequestOptionsoptions?): SinglePage<Output { enabled, streamKey, uid, url } >
GET/accounts/{account_id}/stream/live_inputs/{live_input_identifier}/outputs
Create a new output, connected to a live input
client.stream.liveInputs.outputs.create(stringliveInputIdentifier, OutputCreateParams { account_id, streamKey, url, enabled } params, RequestOptionsoptions?): Output { enabled, streamKey, uid, url }
POST/accounts/{account_id}/stream/live_inputs/{live_input_identifier}/outputs
Update an output
client.stream.liveInputs.outputs.update(stringliveInputIdentifier, stringoutputIdentifier, OutputUpdateParams { account_id, enabled } params, RequestOptionsoptions?): Output { enabled, streamKey, uid, url }
PUT/accounts/{account_id}/stream/live_inputs/{live_input_identifier}/outputs/{output_identifier}
Delete an output
client.stream.liveInputs.outputs.delete(stringliveInputIdentifier, stringoutputIdentifier, OutputDeleteParams { account_id } params, RequestOptionsoptions?): void
DELETE/accounts/{account_id}/stream/live_inputs/{live_input_identifier}/outputs/{output_identifier}
StreamWatermarks
List watermark profiles
client.stream.watermarks.list(WatermarkListParams { account_id } params, RequestOptionsoptions?): SinglePage<Watermark { created, downloadedFrom, height, 8 more } >
GET/accounts/{account_id}/stream/watermarks
Watermark profile details
client.stream.watermarks.get(stringidentifier, WatermarkGetParams { account_id } params, RequestOptionsoptions?): Watermark { created, downloadedFrom, height, 8 more }
GET/accounts/{account_id}/stream/watermarks/{identifier}
Create watermark profiles via basic upload
client.stream.watermarks.create(WatermarkCreateParams { account_id, file, name, 4 more } params, RequestOptionsoptions?): Watermark { created, downloadedFrom, height, 8 more }
POST/accounts/{account_id}/stream/watermarks
Delete watermark profiles
client.stream.watermarks.delete(stringidentifier, WatermarkDeleteParams { account_id } params, RequestOptionsoptions?): WatermarkDeleteResponse
DELETE/accounts/{account_id}/stream/watermarks/{identifier}
StreamWebhooks
View webhooks
client.stream.webhooks.get(WebhookGetParams { account_id } params, RequestOptionsoptions?): WebhookGetResponse
GET/accounts/{account_id}/stream/webhook
Create webhooks
client.stream.webhooks.update(WebhookUpdateParams { account_id, notificationUrl } params, RequestOptionsoptions?): WebhookUpdateResponse
PUT/accounts/{account_id}/stream/webhook
Delete webhooks
client.stream.webhooks.delete(WebhookDeleteParams { account_id } params, RequestOptionsoptions?): WebhookDeleteResponse
DELETE/accounts/{account_id}/stream/webhook
StreamCaptions
List captions or subtitles
client.stream.captions.get(stringidentifier, CaptionGetParams { account_id } params, RequestOptionsoptions?): SinglePage<Caption { generated, label, language, status } >
GET/accounts/{account_id}/stream/{identifier}/captions
StreamCaptionsLanguage
List captions or subtitles for a provided language
client.stream.captions.language.get(stringidentifier, stringlanguage, LanguageGetParams { account_id } params, RequestOptionsoptions?): Caption { generated, label, language, status }
GET/accounts/{account_id}/stream/{identifier}/captions/{language}
Generate captions or subtitles for a provided language via AI
client.stream.captions.language.create(stringidentifier, stringlanguage, LanguageCreateParams { account_id } params, RequestOptionsoptions?): Caption { generated, label, language, status }
POST/accounts/{account_id}/stream/{identifier}/captions/{language}/generate
Upload captions or subtitles
client.stream.captions.language.update(stringidentifier, stringlanguage, LanguageUpdateParams { account_id, file } params, RequestOptionsoptions?): Caption { generated, label, language, status }
PUT/accounts/{account_id}/stream/{identifier}/captions/{language}
Delete captions or subtitles
client.stream.captions.language.delete(stringidentifier, stringlanguage, LanguageDeleteParams { account_id } params, RequestOptionsoptions?): LanguageDeleteResponse
DELETE/accounts/{account_id}/stream/{identifier}/captions/{language}
StreamCaptionsLanguageVtt
Return WebVTT captions for a provided language
client.stream.captions.language.vtt.get(stringidentifier, stringlanguage, VttGetParams { account_id } params, RequestOptionsoptions?): VttGetResponse
GET/accounts/{account_id}/stream/{identifier}/captions/{language}/vtt
StreamDownloads
List downloads
client.stream.downloads.get(stringidentifier, DownloadGetParams { account_id } params, RequestOptionsoptions?): DownloadGetResponse { audio, default }
GET/accounts/{account_id}/stream/{identifier}/downloads
Create downloads
client.stream.downloads.create(stringidentifier, DownloadCreateParams { account_id, body } params, RequestOptionsoptions?): DownloadCreateResponse { percentComplete, status, url }
POST/accounts/{account_id}/stream/{identifier}/downloads
Delete downloads
client.stream.downloads.delete(stringidentifier, DownloadDeleteParams { account_id } params, RequestOptionsoptions?): DownloadDeleteResponse
DELETE/accounts/{account_id}/stream/{identifier}/downloads
StreamEmbed
Retrieve embed Code HTML
client.stream.embed.get(stringidentifier, EmbedGetParams { account_id } params, RequestOptionsoptions?): EmbedGetResponse
GET/accounts/{account_id}/stream/{identifier}/embed
StreamToken
Create signed URL tokens for videos
client.stream.token.create(stringidentifier, TokenCreateParams { account_id, id, accessRules, 4 more } params, RequestOptionsoptions?): TokenCreateResponse { token }
POST/accounts/{account_id}/stream/{identifier}/token