import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
// Automatically fetches more pages as needed.
for await (const conferenceListParticipantsResponse of client.conferences.listParticipants('conference_id')) {
console.log(conferenceListParticipantsResponse.id);
}{
"data": [
{
"record_type": "participant",
"created_at": "2019-01-23T18:10:02.574Z",
"updated_at": "2019-01-23T18:10:02.574Z",
"end_conference_on_exit": true,
"soft_end_conference_on_exit": true,
"status": "joining",
"muted": false,
"on_hold": true,
"call_control_id": "v3:MdI91X4lWFEs7IgbBEOT9M4AigoY08M0WWZFISt1Yw2axZ_IiE4pqg",
"whisper_call_control_ids": [
"v2:Sg1xxxQ_U3ixxxyXT_VDNI3xxxazZdg6Vxxxs4-GNYxxxVaJPOhFMRQ",
"v2:qqpb0mmvd-ovhhBr0BUQQn0fld5jIboaaX3-De0DkqXHzbf8d75xkw"
],
"id": "dfadada7-af74-47bc-83a4-554275f55f5c",
"call_leg_id": "3a15df2d-c801-4729-adf5-b56dd42e2abb",
"conference": {
"id": "41b9acd4-f4da-4ff5-a85c-e07e90b53f46",
"name": "1"
}
}
],
"meta": {
"total_pages": 3,
"page_number": 2,
"total_results": 55,
"page_size": 25
}
}Lists conference participants
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
// Automatically fetches more pages as needed.
for await (const conferenceListParticipantsResponse of client.conferences.listParticipants('conference_id')) {
console.log(conferenceListParticipantsResponse.id);
}{
"data": [
{
"record_type": "participant",
"created_at": "2019-01-23T18:10:02.574Z",
"updated_at": "2019-01-23T18:10:02.574Z",
"end_conference_on_exit": true,
"soft_end_conference_on_exit": true,
"status": "joining",
"muted": false,
"on_hold": true,
"call_control_id": "v3:MdI91X4lWFEs7IgbBEOT9M4AigoY08M0WWZFISt1Yw2axZ_IiE4pqg",
"whisper_call_control_ids": [
"v2:Sg1xxxQ_U3ixxxyXT_VDNI3xxxazZdg6Vxxxs4-GNYxxxVaJPOhFMRQ",
"v2:qqpb0mmvd-ovhhBr0BUQQn0fld5jIboaaX3-De0DkqXHzbf8d75xkw"
],
"id": "dfadada7-af74-47bc-83a4-554275f55f5c",
"call_leg_id": "3a15df2d-c801-4729-adf5-b56dd42e2abb",
"conference": {
"id": "41b9acd4-f4da-4ff5-a85c-e07e90b53f46",
"name": "1"
}
}
],
"meta": {
"total_pages": 3,
"page_number": 2,
"total_results": 55,
"page_size": 25
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Uniquely identifies the conference by id
Region where the conference data is located
Australia, Europe, Middle East, US Consolidated page parameter (deepObject style). Originally: page[after], page[before], page[limit], page[size], page[number]
Show child attributes
Opaque identifier of next page
Opaque identifier of previous page
Limit of records per single page
1 <= x <= 250The size of the page
1 <= x <= 250The page number to load
x >= 1Consolidated filter parameter (deepObject style). Originally: filter[muted], filter[on_hold], filter[whispering]
Show child attributes
If present, participants will be filtered to those who are/are not muted
If present, participants will be filtered to those who are/are not put on hold
If present, participants will be filtered to those who are whispering or are not
Successful response with a list of conference participants.
Show child attributes
participant "participant"
Uniquely identifies the participant
"3fa85f64-5717-4562-b3fc-2c963f66afa6"
Uniquely identifies the call leg associated with the participant
"3fa85f64-5717-4562-b3fc-2c963f66afa6"
Call Control ID associated with the partiipant of the conference
"v2:v2:T02llQxIyaRkhfRKxgAP8nY511EhFLizdvdUKJiSw8d6A9BborherQczRrZvZakpWxBlpw48KyZQ"
Array of unique call_control_ids the participant can whisper to..
[
"v2:Sg1xxxQ_U3ixxxyXT_VDNI3xxxazZdg6Vxxxs4-GNYxxxVaJPOhFMRQ",
"v2:qqpb0mmvd-ovhhBr0BUQQn0fld5jIboaaX3-De0DkqXHzbf8d75xkw"
]ISO 8601 formatted date of when the participant was created
"2019-01-23T18:10:02.574Z"
ISO 8601 formatted date of when the participant was last updated
"2019-01-23T18:10:02.574Z"
Whether the conference will end and all remaining participants be hung up after the participant leaves the conference.
true
Whether the conference will end after the participant leaves the conference.
true
The status of the participant with respect to the lifecycle within the conference
joining, joined, left "joining"
Whether the participant is muted.
true
Whether the participant is put on_hold.
true
Was this page helpful?