Build voice applications using TeXML markup language (TwiML-compatible). Manage applications, calls, conferences, recordings, queues, and streams. This skill provides Python SDK examples.
SkillScore100Maintained
Automatic
◆Coding pack
Last verified 8/27/2026
What it changes
Passed 28 of 28 test cases with the skill, and 3 of 28 without it.
Without skill11%
With skill100%
Checks it passed that the model alone missed
Catches telnyx.APIStatusError exception
Instantiates the SDK via client = Telnyx()
Uses client.texml.accounts.queues.list method
and 26 more in the full report
25 fixed3 passed either way0 still failing0 broke
Pass-rate lift
+89 pp
Tokens
+475%
Agent turns
0%
Response time
-30%
Model gemini-3.6-flashMeasured 8/27/2026v228 of 28 cases passed with skill
Tokens, turns and time describe resource use, not a dollar price.
See it in action
One of 25 test cases the skill fixed. Same model, same prompt, with and without the skill.
1 of 25
Prompt
Write a Python script using the Telnyx SDK to send an outbound SMS message to '+13125550001' from '+13125550002' with the text 'Hello world'.
What was checked, without and with the skill
Checked
Without skill
With skill
Uses client.messages.send with text parameter
Missed
Passed
Does not invoke client.texml endpoints
Passed
Passed
case-27 · gemini-3.6-flash · 8/27/2026 · answers are capped and redacted
What's inside
The instructions your model reads when the skill loads.
SKILL.md674 linessingle file
Telnyx Texml - Python
Installation
pip install telnyx
Setup
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.
Error Handling
All API calls can fail with network errors, rate limits (429), validation errors (422),
or authentication errors (401). Always handle errors in production code:
import telnyx
try:
result = client.messages.send(to="+13125550001", from_="+13125550002", text="Hello")
except telnyx.APIConnectionError:
print("Network error — check connectivity and retry")
except telnyx.RateLimitError:
# 429: rate limited — wait and retry with exponential backoff
import time
time.sleep(1) # Check Retry-After header for actual delay
except telnyx.APIStatusError as e: