api/python/telnyx-messaging-profiles-python/SKILL.md
Create and manage messaging profiles with number pools, sticky sender, and geomatch features. Configure short codes for high-volume messaging. This skill provides Python SDK examples.
npx skillsauth add team-telnyx/telnyx-toolkit telnyx-messaging-profiles-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 /messaging_profiles
page = client.messaging_profiles.list()
page = page.data[0]
print(page.id)
POST /messaging_profiles — Required: name, whitelisted_destinations
messaging_profile = client.messaging_profiles.create(
name="My name",
whitelisted_destinations=["US"],
)
print(messaging_profile.data)
GET /messaging_profiles/{id}
messaging_profile = client.messaging_profiles.retrieve(
"182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
)
print(messaging_profile.data)
PATCH /messaging_profiles/{id}
messaging_profile = client.messaging_profiles.update(
messaging_profile_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
)
print(messaging_profile.data)
DELETE /messaging_profiles/{id}
messaging_profile = client.messaging_profiles.delete(
"182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
)
print(messaging_profile.data)
GET /messaging_profiles/{id}/phone_numbers
page = client.messaging_profiles.list_phone_numbers(
messaging_profile_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
)
page = page.data[0]
print(page.id)
GET /messaging_profiles/{id}/short_codes
page = client.messaging_profiles.list_short_codes(
messaging_profile_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
)
page = page.data[0]
print(page.messaging_profile_id)
GET /messaging_profiles/{profile_id}/autoresp_configs
autoresp_configs = client.messaging_profiles.autoresp_configs.list(
profile_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
)
print(autoresp_configs.data)
POST /messaging_profiles/{profile_id}/autoresp_configs — Required: op, keywords, country_code
auto_resp_config_response = client.messaging_profiles.autoresp_configs.create(
profile_id="profile_id",
country_code="US",
keywords=["keyword1", "keyword2"],
op="start",
)
print(auto_resp_config_response.data)
GET /messaging_profiles/{profile_id}/autoresp_configs/{autoresp_cfg_id}
auto_resp_config_response = client.messaging_profiles.autoresp_configs.retrieve(
autoresp_cfg_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
profile_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
)
print(auto_resp_config_response.data)
PUT /messaging_profiles/{profile_id}/autoresp_configs/{autoresp_cfg_id} — Required: op, keywords, country_code
auto_resp_config_response = client.messaging_profiles.autoresp_configs.update(
autoresp_cfg_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
profile_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
country_code="US",
keywords=["keyword1", "keyword2"],
op="start",
)
print(auto_resp_config_response.data)
DELETE /messaging_profiles/{profile_id}/autoresp_configs/{autoresp_cfg_id}
autoresp_config = client.messaging_profiles.autoresp_configs.delete(
autoresp_cfg_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
profile_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
)
print(autoresp_config)
GET /short_codes
page = client.short_codes.list()
page = page.data[0]
print(page.messaging_profile_id)
GET /short_codes/{id}
short_code = client.short_codes.retrieve(
"182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
)
print(short_code.data)
Update the settings for a specific short code.
PATCH /short_codes/{id} — Required: messaging_profile_id
short_code = client.short_codes.update(
id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
messaging_profile_id="abc85f64-5717-4562-b3fc-2c9600000000",
)
print(short_code.data)
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.