api/javascript/telnyx-voice-conferencing-javascript/SKILL.md
Create and manage conference calls, queues, and multi-party sessions. Use when building call centers or conferencing applications. This skill provides JavaScript SDK examples.
npx skillsauth add team-telnyx/telnyx-toolkit telnyx-voice-conferencing-javascriptInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
npm install telnyx
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
All examples below assume client is already initialized as shown above.
Put the call in a queue.
POST /calls/{call_control_id}/actions/enqueue — Required: queue_name
const response = await client.calls.actions.enqueue('call_control_id', { queue_name: 'support' });
console.log(response.data);
Removes the call from a queue.
POST /calls/{call_control_id}/actions/leave_queue
const response = await client.calls.actions.leaveQueue('call_control_id');
console.log(response.data);
Lists conferences.
GET /conferences
// Automatically fetches more pages as needed.
for await (const conference of client.conferences.list()) {
console.log(conference.id);
}
Create a conference from an existing call leg using a call_control_id and a conference name.
POST /conferences — Required: call_control_id, name
const conference = await client.conferences.create({
call_control_id: 'v3:MdI91X4lWFEs7IgbBEOT9M4AigoY08M0WWZFISt1Yw2axZ_IiE4pqg',
name: 'Business',
});
console.log(conference.data);
Retrieve an existing conference
GET /conferences/{id}
const conference = await client.conferences.retrieve('id');
console.log(conference.data);
Hold a list of participants in a conference call
POST /conferences/{id}/actions/hold
const response = await client.conferences.actions.hold('id');
console.log(response.data);
Join an existing call leg to a conference.
POST /conferences/{id}/actions/join — Required: call_control_id
const response = await client.conferences.actions.join('id', {
call_control_id: 'v3:MdI91X4lWFEs7IgbBEOT9M4AigoY08M0WWZFISt1Yw2axZ_IiE4pqg',
});
console.log(response.data);
Removes a call leg from a conference and moves it back to parked state.
POST /conferences/{id}/actions/leave — Required: call_control_id
const response = await client.conferences.actions.leave('id', {
call_control_id: 'c46e06d7-b78f-4b13-96b6-c576af9640ff',
});
console.log(response.data);
Mute a list of participants in a conference call
POST /conferences/{id}/actions/mute
const response = await client.conferences.actions.mute('id');
console.log(response.data);
Play audio to all or some participants on a conference call.
POST /conferences/{id}/actions/play
const response = await client.conferences.actions.play('id');
console.log(response.data);
Pause conference recording.
POST /conferences/{id}/actions/record_pause
const response = await client.conferences.actions.recordPause('id');
console.log(response.data);
Resume conference recording.
POST /conferences/{id}/actions/record_resume
const response = await client.conferences.actions.recordResume('id');
console.log(response.data);
Start recording the conference.
POST /conferences/{id}/actions/record_start — Required: format
const response = await client.conferences.actions.recordStart('id', { format: 'wav' });
console.log(response.data);
Stop recording the conference.
POST /conferences/{id}/actions/record_stop
const response = await client.conferences.actions.recordStop('id');
console.log(response.data);
Convert text to speech and play it to all or some participants.
POST /conferences/{id}/actions/speak — Required: payload, voice
const response = await client.conferences.actions.speak('id', {
payload: 'Say this to participants',
voice: 'female',
});
console.log(response.data);
Stop audio being played to all or some participants on a conference call.
POST /conferences/{id}/actions/stop
const response = await client.conferences.actions.stop('id');
console.log(response.data);
Unhold a list of participants in a conference call
POST /conferences/{id}/actions/unhold — Required: call_control_ids
const response = await client.conferences.actions.unhold('id', {
call_control_ids: ['v3:MdI91X4lWFEs7IgbBEOT9M4AigoY08M0WWZFISt1Yw2axZ_IiE4pqg'],
});
console.log(response.data);
Unmute a list of participants in a conference call
POST /conferences/{id}/actions/unmute
const response = await client.conferences.actions.unmute('id');
console.log(response.data);
Update conference participant supervisor_role
POST /conferences/{id}/actions/update — Required: call_control_id, supervisor_role
const action = await client.conferences.actions.update('id', {
call_control_id: 'v3:MdI91X4lWFEs7IgbBEOT9M4AigoY08M0WWZFISt1Yw2axZ_IiE4pqg',
supervisor_role: 'whisper',
});
console.log(action.data);
Lists conference participants
GET /conferences/{conference_id}/participants
// Automatically fetches more pages as needed.
for await (const conferenceListParticipantsResponse of client.conferences.listParticipants(
'conference_id',
)) {
console.log(conferenceListParticipantsResponse.id);
}
The following webhook events are sent to your configured webhook URL.
All webhooks include telnyx-timestamp and telnyx-signature-ed25519 headers for verification (Standard Webhooks compatible).
| Event | Description |
|-------|-------------|
| callEnqueued | Call Enqueued |
| callLeftQueue | Call Left Queue |
| conferenceCreated | Conference Created |
| conferenceEnded | Conference Ended |
| conferenceFloorChanged | Conference Floor Changed |
| conferenceParticipantJoined | Conference Participant Joined |
| conferenceParticipantLeft | Conference Participant Left |
| conferenceParticipantPlaybackEnded | Conference Participant Playback Ended |
| conferenceParticipantPlaybackStarted | Conference Participant Playback Started |
| conferenceParticipantSpeakEnded | Conference Participant Speak Ended |
| conferenceParticipantSpeakStarted | Conference Participant Speak Started |
| conferencePlaybackEnded | Conference Playback Ended |
| conferencePlaybackStarted | Conference Playback Started |
| conferenceRecordingSaved | Conference Recording Saved |
| conferenceSpeakEnded | Conference Speak Ended |
| conferenceSpeakStarted | Conference Speak Started |
tools
Build cross-platform VoIP calling apps with React Native using Telnyx Voice SDK. High-level reactive API with automatic lifecycle management, CallKit/ConnectionService integration, and push notifications. Use for mobile VoIP apps with minimal setup.
tools
Build browser-based VoIP calling apps using Telnyx WebRTC JavaScript SDK. Covers authentication, voice calls, events, debugging, call quality metrics, and AI Agent integration. Use for web-based real-time communication.
tools
Build VoIP calling apps on iOS using Telnyx WebRTC SDK. Covers authentication, making/receiving calls, CallKit integration, PushKit/APNS push notifications, call quality metrics, and AI Agent integration. Use when implementing real-time voice communication on iOS.
tools
Build cross-platform VoIP calling apps with Flutter using Telnyx WebRTC SDK. Covers authentication, making/receiving calls, push notifications (FCM + APNS), call quality metrics, and AI Agent integration. Works on Android, iOS, and Web.