Skip to main content
Version: /v2

Stop Livestream

This API lets you stop a livestream by passing roomId as a body parameter.
Body Parameters
REQUIRED
The ID of the Room.
POST
|
https://api.videosdk.live/v2/livestreams/end
import fetch from 'node-fetch';
const options = {
method: "POST",
headers: {
"Authorization": "$YOUR_TOKEN",
"Content-Type": "application/json",
},
body: JSON.stringify({"roomId" : "abcd-efgh-lmno"}),
};
const url= `https://api.videosdk.live/v2/livestreams/end`;
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
RESPONSE
"Livestream ended successfully"