import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const session = await client.rooms.sessions.retrieve('0ccc7b54-4df3-4bca-a65a-3da1ecc777f0');
console.log(session.data);{
"data": {
"id": "7b61621f-62e0-4aad-ab11-9fd19e272e73",
"room_id": "7b61621f-5fe4-4aad-ab11-9fd19e272e73",
"active": false,
"created_at": "2021-04-16T09:46:20.954863Z",
"updated_at": "2021-04-16T10:24:55.962200Z",
"ended_at": "2021-04-16T10:24:55.962200Z",
"participants": [],
"record_type": "room_session"
}
}import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const session = await client.rooms.sessions.retrieve('0ccc7b54-4df3-4bca-a65a-3da1ecc777f0');
console.log(session.data);{
"data": {
"id": "7b61621f-62e0-4aad-ab11-9fd19e272e73",
"room_id": "7b61621f-5fe4-4aad-ab11-9fd19e272e73",
"active": false,
"created_at": "2021-04-16T09:46:20.954863Z",
"updated_at": "2021-04-16T10:24:55.962200Z",
"ended_at": "2021-04-16T10:24:55.962200Z",
"participants": [],
"record_type": "room_session"
}
}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"
To decide if room participants should be included in the response.
true
Get room session response.
Show child attributes
A unique identifier for the room session.
"0ccc7b54-4df3-4bca-a65a-3da1ecc777f0"
Identify the room hosting that room session.
"0ccc7b54-4df3-4bca-a65a-3da1ecc777b0"
Shows if the room session is active or not.
false
ISO 8601 timestamp when the room session was created.
"2021-03-26T17:51:59.588408Z"
ISO 8601 timestamp when the room session was updated.
"2021-03-26T17:51:59.588408Z"
ISO 8601 timestamp when the room session has ended.
"2021-03-26T17:51:59.588408Z"
Show child attributes
A unique identifier for the room participant.
"0ccc7b54-4df3-4bca-a65a-3da1ecc777f0"
Identify the room session that participant is part of.
"0ccc7b54-4df3-4bca-a65a-3da1ecc777b0"
Context provided to the given participant through the client SDK
"Alice"
ISO 8601 timestamp when the participant joined the session.
"2021-03-26T17:51:59.588408Z"
ISO 8601 timestamp when the participant was updated.
"2021-03-26T17:51:59.588408Z"
ISO 8601 timestamp when the participant left the session.
"2021-03-26T17:51:59.588408Z"
"room_participant"
"room_session"
{
"id": "7b61621f-62e0-4aad-ab11-9fd19e272e73",
"room_id": "7b61621f-5fe4-4aad-ab11-9fd19e272e73",
"active": false,
"created_at": "2021-04-16T09:46:20.954863Z",
"updated_at": "2021-04-16T10:24:55.962200Z",
"ended_at": "2021-04-16T10:24:55.962200Z",
"participants": [],
"record_type": "room_session"
}Was this page helpful?