import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const response = await client.rooms.sessions.list1('0ccc7b54-4df3-4bca-a65a-3da1ecc777f0');
console.log(response.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"
}
],
"meta": {
"page_number": 2,
"page_size": 25,
"total_pages": 3,
"total_results": 55
}
}import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const response = await client.rooms.sessions.list1('0ccc7b54-4df3-4bca-a65a-3da1ecc777f0');
console.log(response.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"
}
],
"meta": {
"page_number": 2,
"page_size": 25,
"total_pages": 3,
"total_results": 55
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The unique identifier of a room.
"0ccc7b54-4df3-4bca-a65a-3da1ecc777f0"
To decide if room participants should be included in the response.
true
Consolidated filter parameter (deepObject style). Originally: filter[date_created_at][eq], filter[date_created_at][gte], filter[date_created_at][lte], filter[date_updated_at][eq], filter[date_updated_at][gte], filter[date_updated_at][lte], filter[date_ended_at][eq], filter[date_ended_at][gte], filter[date_ended_at][lte], filter[active]
Show child attributes
Show child attributes
ISO 8601 date for filtering room sessions created on that date.
"2021-04-25"
ISO 8601 date for filtering room sessions created on or after that date.
"2021-04-25"
ISO 8601 date for filtering room sessions created on or before that date.
"2021-04-25"
Show child attributes
ISO 8601 date for filtering room sessions updated on that date.
"2021-04-25"
ISO 8601 date for filtering room sessions updated on or after that date.
"2021-04-25"
ISO 8601 date for filtering room sessions updated on or before that date.
"2021-04-25"
Show child attributes
ISO 8601 date for filtering room sessions ended on that date.
"2021-04-25"
ISO 8601 date for filtering room sessions ended on or after that date.
"2021-04-25"
ISO 8601 date for filtering room sessions ended on or before that date.
"2021-04-25"
Filter active or inactive room sessions.
true
List room sessions 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"
Was this page helpful?