Skip to main content
POST
/
room_sessions
/
{room_session_id}
/
actions
/
end
JavaScript
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"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

room_session_id
string<uuid>
required

The unique identifier of a room session.

Example:

"0ccc7b54-4df3-4bca-a65a-3da1ecc777f0"

Response

200 - application/json

Success Action Response

data
object