Stream
stream
Methods
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.
Deletes a video and its copies from Cloudflare Stream.
Edit details for a single video.
Fetches details for a single video.
Lists up to 1000 videos from a single request. For a specific range, refer to the optional parameters.
Domain types
Audio Tracks
stream.audio_tracks
Methods
Adds an additional audio track to a video using the provided audio track URL.
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.
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
.
Lists additional audio tracks on a video. Note this API will not return information for audio attached to the video upload.
Domain types
Direct Upload
stream.direct_upload
Methods
Creates a direct upload that allows video uploads without an API key.
Downloads
stream.downloads
Methods
Creates a download for a video when a video is ready to view.
Delete the downloads for a video.
Lists the downloads created for a video.
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
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.
Lists the video ID and creation date and time when a signing key was created.
Domain types
Live Inputs
stream.live_inputs
Methods
Creates a live input, and returns credentials that you or your users can use to stream live video to Cloudflare Stream.
Prevents a live input from being streamed to and makes the live input inaccessible to any future API calls.
Retrieves details of an existing live input.
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.
Updates a specified live input.
Domain types
stream.live_inputs.outputs
Methods
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.
Deletes an output and removes it from the associated live input.
Retrieves all outputs associated with a specified live input.
Updates the state of an output.
The preferred authorization scheme for interacting with the Cloudflare API. Create a token.
Example: Authorization: Bearer Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY
Identifier
A unique identifier for a live input.
A unique identifier for the output.
Whether the API call was successful
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
Creates watermark profiles using a single HTTP POST multipart/form-data
request.
Deletes a watermark profile.
Retrieves details for a single watermark profile.
Lists all watermark profiles for an account.
Domain types
Webhooks
stream.webhooks
Methods
Deletes a webhook.
Retrieves a list of webhooks.
Creates a webhook notification.