Create a new stream

Creates a new RTMPS or SRT live stream in FastPix. When you create a stream, FastPix generates a unique streamKey and srtSecret that you can use with broadcasting software such as OBS to connect to FastPix RTMPS or SRT servers. Use SRT for live streaming in unstable network conditions, as it provides error correction and encryption for a more reliable and secure broadcast.

Leverage SRT for live streaming in environments with unstable networks, taking advantage of its error correction and encryption features for a resilient and secure broadcast.

How it works

  1. Send a POST request to this endpoint. You can configure the stream settings, including metadata (such as stream name and description), reconnectWindow (in case of disconnection), and privacy options (public or private).

  2. FastPix returns the stream details for both RTMPS and SRT configurations. These keys and IDs from the stream details are essential for connecting the broadcasting software to FastPix’s servers and transmitting the live stream to viewers.

  3. After the live stream is created, FastPix sends a POST request to your specified webhook endpoint with the event video.live_stream.created.

Example:

Imagine a gaming platform that allows users to live stream gameplay directly from their dashboard. The API creates a new stream, provides the necessary stream key, and sets it to "private" so that only specific viewers can access it.

Related guide: How to live stream

Language
Credentials
Basic
base64
:
Click Try It! to start a request and see the response here!