import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const response = await client.rooms.sessions.retrieveParticipants('0ccc7b54-4df3-4bca-a65a-3da1ecc777f0');
console.log(response.data);{
"data": [
{
"id": "7b61621f-62e0-4aad-ab11-9fd19e272e73",
"session_id": "7b61621f-5fe4-4aad-ab11-9fd19e272e73",
"context": "Alice",
"joined_at": "2021-04-16T09:46:20.954863Z",
"updated_at": "2021-04-16T10:24:55.962200Z",
"left_at": "2021-04-16T10:24:55.962200Z",
"record_type": "room_participant"
}
],
"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.retrieveParticipants('0ccc7b54-4df3-4bca-a65a-3da1ecc777f0');
console.log(response.data);{
"data": [
{
"id": "7b61621f-62e0-4aad-ab11-9fd19e272e73",
"session_id": "7b61621f-5fe4-4aad-ab11-9fd19e272e73",
"context": "Alice",
"joined_at": "2021-04-16T09:46:20.954863Z",
"updated_at": "2021-04-16T10:24:55.962200Z",
"left_at": "2021-04-16T10:24:55.962200Z",
"record_type": "room_participant"
}
],
"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 session.
"0ccc7b54-4df3-4bca-a65a-3da1ecc777f0"
Consolidated filter parameter (deepObject style). Originally: filter[date_joined_at][eq], filter[date_joined_at][gte], filter[date_joined_at][lte], filter[date_updated_at][eq], filter[date_updated_at][gte], filter[date_updated_at][lte], filter[date_left_at][eq], filter[date_left_at][gte], filter[date_left_at][lte], filter[context]
Show child attributes
Show child attributes
ISO 8601 date for filtering room participants that joined on that date.
"2021-04-25"
ISO 8601 date for filtering room participants that joined on or after that date.
"2021-04-25"
ISO 8601 date for filtering room participants that joined on or before that date.
"2021-04-25"
Show child attributes
ISO 8601 date for filtering room participants updated on that date.
"2021-04-25"
ISO 8601 date for filtering room participants updated on or after that date.
"2021-04-25"
ISO 8601 date for filtering room participants updated on or before that date.
"2021-04-25"
Show child attributes
ISO 8601 date for filtering room participants that left on that date.
"2021-04-25"
ISO 8601 date for filtering room participants that left on or after that date.
"2021-04-25"
ISO 8601 date for filtering room participants that left on or before that date.
"2021-04-25"
Filter room participants based on the context.
"Alice"
List room participants response.
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"
Was this page helpful?