telnyx-10dlc-java
>-
telnyx-voice-conferencing-ruby
Create and manage conference calls, queues, and multi-party sessions. Use when building call centers or conferencing applications. This skill provides Ruby SDK examples.
Full skill instructions
gem install telnyx
require "telnyx"
client = Telnyx::Client.new(
api_key: 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
response = client.calls.actions.enqueue("call_control_id", queue_name: "support")
puts(response)
Removes the call from a queue.
POST /calls/{call_control_id}/actions/leave_queue
response = client.calls.actions.leave_queue("call_control_id")
puts(response)
Lists conferences.
GET /conferences
page = client.conferences.list
puts(page)
Create a conference from an existing call leg using a call_control_id and a conference name.
POST /conferences — Required: call_control_id, name
conference = client.conferences.create(
call_control_id: "v3:MdI91X4lWFEs7IgbBEOT9M4AigoY08M0WWZFISt1Yw2axZ_IiE4pqg",
name: "Business"
)
puts(conference)
Retrieve an existing conference
GET /conferences/{id}
conference = client.conferences.retrieve("id")
puts(conference)
Hold a list of participants in a conference call
POST /conferences/{id}/actions/hold
response = client.conferences.actions.hold("id")
puts(response)
Join an existing call leg to a conference.
POST /conferences/{id}/actions/join — Required: call_control_id
response = client.conferences.actions.join(
"id",
call_control_id: "v3:MdI91X4lWFEs7IgbBEOT9M4AigoY08M0WWZFISt1Yw2axZ_IiE4pqg"
)
puts(response)
Removes a call leg from a conference and moves it back to parked state.
POST /conferences/{id}/actions/leave — Required: call_control_id
response = client.conferences.actions.leave("id", call_control_id: "c46e06d7-b78f-4b13-96b6-c576af9640ff")
puts(response)
Mute a list of participants in a conference call
POST /conferences/{id}/actions/mute
response = client.conferences.actions.mute("id")
puts(response)
Play audio to all or some participants on a conference call.
POST /conferences/{id}/actions/play
response = client.conferences.actions.play("id")
puts(response)
Pause conference recording.
POST /conferences/{id}/actions/record_pause
response = client.conferences.actions.record_pause("id")
puts(response)
Resume conference recording.
POST /conferences/{id}/actions/record_resume
response = client.conferences.actions.record_resume("id")
puts(response)
Start recording the conference.
POST /conferences/{id}/actions/record_start — Required: format
response = client.conferences.actions.record_start("id", format_: :wav)
puts(response)
Stop recording the conference.
POST /conferences/{id}/actions/record_stop
response = client.conferences.actions.record_stop("id")
puts(response)
Convert text to speech and play it to all or some participants.
POST /conferences/{id}/actions/speak — Required: payload, voice
response = client.conferences.actions.speak("id", payload: "Say this to participants", voice: "female")
puts(response)
Stop audio being played to all or some participants on a conference call.
POST /conferences/{id}/actions/stop
response = client.conferences.actions.stop("id")
puts(response)
Unhold a list of participants in a conference call
POST /conferences/{id}/actions/unhold — Required: call_control_ids
response = client.conferences.actions.unhold(
"id",
call_control_ids: ["v3:MdI91X4lWFEs7IgbBEOT9M4AigoY08M0WWZFISt1Yw2axZ_IiE4pqg"]
)
puts(response)
Unmute a list of participants in a conference call
POST /conferences/{id}/actions/unmute
response = client.conferences.actions.unmute("id")
puts(response)
Update conference participant supervisor_role
POST /conferences/{id}/actions/update — Required: call_control_id, supervisor_role
action = client.conferences.actions.update(
"id",
call_control_id: "v3:MdI91X4lWFEs7IgbBEOT9M4AigoY08M0WWZFISt1Yw2axZ_IiE4pqg",
supervisor_role: :whisper
)
puts(action)
Lists conference participants
GET /conferences/{conference_id}/participants
page = client.conferences.list_participants("conference_id")
puts(page)
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 |
>-
>-
>-
>-
>-
>-
>-
Register for 10DLC as a sole proprietor to enable SMS messaging in the USA. Use when setting up A2P SMS, registering brands/campaigns, or assigning phone numbers for compliant US messaging. Requires Telnyx CLI.
>-
>-
Text-to-vector embeddings and semantic search using Telnyx AI. Generate embedding vectors via an OpenAI-compatible API — no OpenAI or Google API keys required.
>-
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience