Stream
stream
Methods
Lists up to 1000 videos from a single request. For a specific range, refer to the optional parameters.
Fetches details for a single video.
Initiates a video upload using the TUS protocol. On success, the server responds with a status code 201 (created) and includes a location header to indicate where the content should be uploaded. Refer to https://tus.io for protocol details.
Edit details for a single video.
Deletes a video and its copies from Cloudflare Stream.
Domain types
Audio Tracks
stream.audio_tracks
Methods
Lists additional audio tracks on a video. Note this API will not return information for audio attached to the video upload.
Edits additional audio tracks on a video. Editing the default status of an audio track to true will mark all other audio tracks on the video default status to false.
Deletes additional audio tracks on a video. Deleting a default audio track is not allowed. You must assign another audio track as default prior to deletion.
Adds an additional audio track to a video using the provided audio track URL.
Domain types
Methods
Lists the captions or subtitles for provided language.
Generate captions or subtitles for provided language via AI.
Uploads the caption or subtitle file to the endpoint for a specific BCP47 language. One caption or subtitle file per language is allowed.
Removes the captions or subtitles from a video.
Direct Upload
stream.direct_upload
Methods
Creates a direct upload that allows video uploads without an API key.
Downloads
stream.downloads
Methods
Lists the downloads created for a video.
Creates a download for a video when a video is ready to view. Use /downloads/{download_type} instead for type-specific downloads. Available types are default and audio.
Delete the downloads for a video. Use /downloads/{download_type} instead for type-specific downloads. Available types are default and audio.
Embed
stream.embed
Methods
Fetches an HTML code snippet to embed a video in a web page delivered through Cloudflare. On success, returns an HTML fragment for use on web pages to display a video. On failure, returns a JSON response body.
Keys
stream.keys
Methods
Lists the video ID and creation date and time when a signing key was created.
Creates an RSA private key in PEM and JWK formats. Key files are only displayed once after creation. Keys are created, used, and deleted independently of videos, and every key can sign any video.
Deletes signing keys and revokes all signed URLs generated with the key.
Domain types
Live Inputs
stream.live_inputs
Methods
Lists the live inputs created for an account. To get the credentials needed to stream to a specific live input, request a single live input.
Retrieves details of an existing live input.
Creates a live input, and returns credentials that you or your users can use to stream live video to Cloudflare Stream.
The preferred authorization scheme for interacting with the Cloudflare API. Create a token.
Example: Authorization: Bearer Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY
Stream Write
Identifier.
Whether the API call was successful.
Details about a live input.
Updates a specified live input.
Prevents a live input from being streamed to and makes the live input inaccessible to any future API calls.
Domain types
Details about a live input.
stream.live_inputs.outputs
Methods
Retrieves all outputs associated with a specified live input.
Creates a new output that can be used to simulcast or restream live video to other RTMP or SRT destinations. Outputs are always linked to a specific live input — one live input can have many outputs.
Updates the state of an output.
Deletes an output and removes it from the associated live input.
Domain types
Token
stream.token
Methods
Creates a signed URL token for a video. If a body is not provided in the request, a token is created with default values.
Videos
stream.videos
Methods
Returns information about an account's storage use.
Watermarks
stream.watermarks
Methods
Lists all watermark profiles for an account.
Retrieves details for a single watermark profile.
Creates watermark profiles using a single HTTP POST multipart/form-data request.
Deletes a watermark profile.
Domain types
Webhooks
stream.webhooks
Methods
Retrieves a list of webhooks.
Creates a webhook notification.
Deletes a webhook.