api/python/telnyx-video-python/SKILL.md
Create and manage video rooms for real-time video communication and conferencing. This skill provides Python SDK examples.
npx skillsauth add team-telnyx/telnyx-toolkit telnyx-video-pythonInstall 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.
pip install telnyx
import os
from telnyx import Telnyx
client = Telnyx(
api_key=os.environ.get("TELNYX_API_KEY"), # This is the default and can be omitted
)
All examples below assume client is already initialized as shown above.
GET /room_compositions
page = client.room_compositions.list()
page = page.data[0]
print(page.id)
Asynchronously create a room composition.
POST /room_compositions
room_composition = client.room_compositions.create()
print(room_composition.data)
GET /room_compositions/{room_composition_id}
room_composition = client.room_compositions.retrieve(
"5219b3af-87c6-4c08-9b58-5a533d893e21",
)
print(room_composition.data)
Synchronously delete a room composition.
DELETE /room_compositions/{room_composition_id}
client.room_compositions.delete(
"5219b3af-87c6-4c08-9b58-5a533d893e21",
)
GET /room_participants
page = client.room_participants.list()
page = page.data[0]
print(page.id)
GET /room_participants/{room_participant_id}
room_participant = client.room_participants.retrieve(
"0ccc7b54-4df3-4bca-a65a-3da1ecc777f0",
)
print(room_participant.data)
GET /room_recordings
page = client.room_recordings.list()
page = page.data[0]
print(page.id)
DELETE /room_recordings
response = client.room_recordings.delete_bulk()
print(response.data)
GET /room_recordings/{room_recording_id}
room_recording = client.room_recordings.retrieve(
"0ccc7b54-4df3-4bca-a65a-3da1ecc777f0",
)
print(room_recording.data)
Synchronously delete a Room Recording.
DELETE /room_recordings/{room_recording_id}
client.room_recordings.delete(
"0ccc7b54-4df3-4bca-a65a-3da1ecc777f0",
)
GET /room_sessions
page = client.rooms.sessions.list_0()
page = page.data[0]
print(page.id)
GET /room_sessions/{room_session_id}
session = client.rooms.sessions.retrieve(
room_session_id="0ccc7b54-4df3-4bca-a65a-3da1ecc777f0",
)
print(session.data)
Note: this will also kick all participants currently present in the room
POST /room_sessions/{room_session_id}/actions/end
response = client.rooms.sessions.actions.end(
"0ccc7b54-4df3-4bca-a65a-3da1ecc777f0",
)
print(response.data)
POST /room_sessions/{room_session_id}/actions/kick
response = client.rooms.sessions.actions.kick(
room_session_id="0ccc7b54-4df3-4bca-a65a-3da1ecc777f0",
)
print(response.data)
POST /room_sessions/{room_session_id}/actions/mute
response = client.rooms.sessions.actions.mute(
room_session_id="0ccc7b54-4df3-4bca-a65a-3da1ecc777f0",
)
print(response.data)
POST /room_sessions/{room_session_id}/actions/unmute
response = client.rooms.sessions.actions.unmute(
room_session_id="0ccc7b54-4df3-4bca-a65a-3da1ecc777f0",
)
print(response.data)
GET /room_sessions/{room_session_id}/participants
page = client.rooms.sessions.retrieve_participants(
room_session_id="0ccc7b54-4df3-4bca-a65a-3da1ecc777f0",
)
page = page.data[0]
print(page.id)
GET /rooms
page = client.rooms.list()
page = page.data[0]
print(page.id)
Synchronously create a Room.
POST /rooms
room = client.rooms.create()
print(room.data)
GET /rooms/{room_id}
room = client.rooms.retrieve(
room_id="0ccc7b54-4df3-4bca-a65a-3da1ecc777f0",
)
print(room.data)
Synchronously update a Room.
PATCH /rooms/{room_id}
room = client.rooms.update(
room_id="0ccc7b54-4df3-4bca-a65a-3da1ecc777f0",
)
print(room.data)
Synchronously delete a Room.
DELETE /rooms/{room_id}
client.rooms.delete(
"0ccc7b54-4df3-4bca-a65a-3da1ecc777f0",
)
Synchronously create an Client Token to join a Room.
POST /rooms/{room_id}/actions/generate_join_client_token
response = client.rooms.actions.generate_join_client_token(
room_id="0ccc7b54-4df3-4bca-a65a-3da1ecc777f0",
)
print(response.data)
Synchronously refresh an Client Token to join a Room.
POST /rooms/{room_id}/actions/refresh_client_token — Required: refresh_token
response = client.rooms.actions.refresh_client_token(
room_id="0ccc7b54-4df3-4bca-a65a-3da1ecc777f0",
refresh_token="eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJ0ZWxueXhfdGVsZXBob255IiwiZXhwIjoxNTkwMDEwMTQzLCJpYXQiOjE1ODc1OTA5NDMsImlzcyI6InRlbG55eF90ZWxlcGhvbnkiLCJqdGkiOiJiOGM3NDgzNy1kODllLTRhNjUtOWNmMi0zNGM3YTZmYTYwYzgiLCJuYmYiOjE1ODc1OTA5NDIsInN1YiI6IjVjN2FjN2QwLWRiNjUtNGYxMS05OGUxLWVlYzBkMWQ1YzZhZSIsInRlbF90b2tlbiI6InJqX1pra1pVT1pNeFpPZk9tTHBFVUIzc2lVN3U2UmpaRmVNOXMtZ2JfeENSNTZXRktGQUppTXlGMlQ2Q0JSbWxoX1N5MGlfbGZ5VDlBSThzRWlmOE1USUlzenl6U2xfYURuRzQ4YU81MHlhSEd1UlNZYlViU1ltOVdJaVEwZz09IiwidHlwIjoiYWNjZXNzIn0.gNEwzTow5MLLPLQENytca7pUN79PmPj6FyqZWW06ZeEmesxYpwKh0xRtA0TzLh6CDYIRHrI8seofOO0YFGDhpQ",
)
print(response.data)
GET /rooms/{room_id}/sessions
page = client.rooms.sessions.list_1(
room_id="0ccc7b54-4df3-4bca-a65a-3da1ecc777f0",
)
page = page.data[0]
print(page.id)
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.