Reset stream key
curl --request POST \
--url https://api.tenbyte.io/v1/livestream/streams/{streamId}/reset-key \
--header 'Authorization: Bearer <token>'{
"success": true,
"message": "<string>",
"data": {
"id": "<string>",
"organization_id": "<string>",
"name": "<string>",
"region": "<string>",
"stream_key": "<string>",
"ingest": {
"protocols": [],
"rtmp": "<string>",
"srt": "<string>",
"primary": {
"url": "<string>"
},
"backup": {
"url": "<string>"
}
},
"output_protocols": [],
"packaging": {
"hls": {
"playlist_size": 123,
"preserved_segments": 123,
"low_latency": true
},
"dash": {
"window_s": 123,
"min_buffer_s": 123
}
},
"ladder": {
"video": [
{
"name": "<string>",
"width": 123,
"height": 123,
"fps": 123,
"gop": 123,
"bitrate_kbps": 123,
"max_bitrate_kbps": 123,
"buf_size_kbps": 123,
"crf": 123,
"preset": "<string>",
"profile": "<string>",
"level": "<string>",
"bframes": 123,
"ref_frames": 123,
"rc_lookahead": 123,
"audio": {
"channels": 123,
"sample_rate_hz": 123,
"audio_bitrate_kbps": 123
}
}
],
"audio": [
{
"name": "<string>",
"channels": 123,
"sample_rate_hz": 123,
"bitrate_kbps": 123
}
]
},
"playback": {
"hls": "<string>",
"dash": "<string>"
},
"recording": {
"enabled": true,
"library_id": "<string>",
"folder_id": "<string>",
"prefix": "<string>",
"s3_config": {}
},
"webhook_url": "<string>",
"meta": {},
"last_live_at": "2023-11-07T05:31:56Z",
"last_ended_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
}Streams
Reset stream key
Old key invalid immediately. Disconnects active stream if live.
POST
/
streams
/
{streamId}
/
reset-key
Reset stream key
curl --request POST \
--url https://api.tenbyte.io/v1/livestream/streams/{streamId}/reset-key \
--header 'Authorization: Bearer <token>'{
"success": true,
"message": "<string>",
"data": {
"id": "<string>",
"organization_id": "<string>",
"name": "<string>",
"region": "<string>",
"stream_key": "<string>",
"ingest": {
"protocols": [],
"rtmp": "<string>",
"srt": "<string>",
"primary": {
"url": "<string>"
},
"backup": {
"url": "<string>"
}
},
"output_protocols": [],
"packaging": {
"hls": {
"playlist_size": 123,
"preserved_segments": 123,
"low_latency": true
},
"dash": {
"window_s": 123,
"min_buffer_s": 123
}
},
"ladder": {
"video": [
{
"name": "<string>",
"width": 123,
"height": 123,
"fps": 123,
"gop": 123,
"bitrate_kbps": 123,
"max_bitrate_kbps": 123,
"buf_size_kbps": 123,
"crf": 123,
"preset": "<string>",
"profile": "<string>",
"level": "<string>",
"bframes": 123,
"ref_frames": 123,
"rc_lookahead": 123,
"audio": {
"channels": 123,
"sample_rate_hz": 123,
"audio_bitrate_kbps": 123
}
}
],
"audio": [
{
"name": "<string>",
"channels": 123,
"sample_rate_hz": 123,
"bitrate_kbps": 123
}
]
},
"playback": {
"hls": "<string>",
"dash": "<string>"
},
"recording": {
"enabled": true,
"library_id": "<string>",
"folder_id": "<string>",
"prefix": "<string>",
"s3_config": {}
},
"webhook_url": "<string>",
"meta": {},
"last_live_at": "2023-11-07T05:31:56Z",
"last_ended_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
}⌘I