After you create a live stream, you can manage it throughout its lifecycle. This guide shows you how to retrieve stream information, monitor performance, update settings, and control stream availability.
You can retrieve a list of all live streams in your account. This is useful when you need to:
The API returns streams in pages, letting you control how many results you see at once.
Use the Get all live streams endpoint:
This request returns up to 10 streams, sorted by creation date (newest first).
Response:
The response includes:
You can adjust these parameters:
asc for oldest first or desc for newest first (default: desc)Track how viewers engage with your streams by retrieving viewership analytics. This helps you understand:
Use the Get stream views endpoint with your stream ID:
Replace streamId with your stream’s unique identifier.
Response:
The data object includes the total number of views for the specified stream.
data.views — The total number of times the stream has been viewed.
When you need complete information about a specific stream—including streamKey, srtSecret, playback URLs, and configuration—retrieve the full stream details.
Get stream details when you need to:
Use the Get stream by ID endpoint:
Replace streamId with your stream’s unique identifier.
Response:
The response includes:
idle (ready to stream), preparing (ingesting signal but not fully live) active (currently streaming), or disabled (not accepting broadcasts)Keep your stream key and secrets secure—anyone with these credentials can broadcast to your stream.
Modify your stream’s configuration to change how it behaves. You can update settings before or during a broadcast.
You can change:
Update metadata to:
The reconnect window controls how FastPix handles disconnections. Adjust it based on your needs:
Use the Update stream endpoint:
Replace streamId with your stream’s unique identifier.
Response:
The response confirms your updates and shows the current stream configuration.
You can control whether a stream accepts broadcasts by enabling or disabling it. This gives you control over when streaming is allowed.
Disabling a stream prevents new broadcasts without deleting the stream configuration. Disable streams to:
Use the Disable stream endpoint:
Replace streamId with your stream’s unique identifier.
Response:
Important: If the stream is currently active, disabling it immediately ends the broadcast and disconnects all viewers.
Enabling a stream makes it available for broadcasting. Enable streams when you want to:
Note: You can enable a stream only when it is still within its allowed duration time.
Use the Enable stream endpoint:
Replace streamId with your stream’s unique identifier.
Response:
After enabling, the stream status changes to idle, and it’s ready to accept connections from your broadcasting software.
When a broadcast finishes, you can manually complete the stream to trigger final processing and analytics.
Important: You can complete a stream only when it is actively broadcasting.
Complete a stream when:
Use the Complete stream endpoint:
Replace streamId with your stream’s unique identifier.
Response:
The response simply confirms that the update was successful.
When you complete a stream, FastPix:
When you no longer need a stream, you can permanently delete it to keep your account organized.
Warning: Deleting a stream is permanent and can’t be undone. Make sure you:
Use the Delete stream endpoint:
Replace streamId with your stream’s unique identifier.
Response:
After successful deletion, the stream ID is no longer valid, and you can’t retrieve any information about it.