import Telnyx from 'telnyx';
const client = new Telnyx();
const response = await client.rooms.sessions.actions.end('0ccc7b54-4df3-4bca-a65a-3da1ecc777f0');
console.log(response.data);{
"data": {
"result": "ok"
}
}Note: this will also kick all participants currently present in the room
import Telnyx from 'telnyx';
const client = new Telnyx();
const response = await client.rooms.sessions.actions.end('0ccc7b54-4df3-4bca-a65a-3da1ecc777f0');
console.log(response.data);{
"data": {
"result": "ok"
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The unique identifier of a room session.
"0ccc7b54-4df3-4bca-a65a-3da1ecc777f0"
Was this page helpful?