Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Manage WebRTC credentials and mobile push notification settings. Use when building browser-based or mobile softphone applications. This skill provides Python SDK examples.
.claude/skills/team-telnyx-telnyx-webrtc-python/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | -7% | 0% |
| case-02 | ✗→✓ | ▲ Improved | 69% | 0% |
| case-03 | ✗→✓ | ▲ Improved | 23% | 0% |
| case-07 | ✗→✓ | ▲ Improved | 180% | 0% |
| case-08 | ✗→✓ | ▲ Improved | 160% | 0% |
<!-- Auto-generated from Telnyx OpenAPI specs. Do not edit. -->
bashpip install telnyx
pythonimport 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.
All API calls can fail with network errors, rate limits (429), validation errors (422), or authentication errors (401). Always handle errors in production code:
pythonimport 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: print(f"API error {e.status_code}: {e.message}") if e.status_code == 422: print("Validation error — check required fields and formats")
Common error codes: 401 invalid API key, 403 insufficient permissions, 404 resource not found, 422 validation error (check field formats), 429 rate limited (retry with exponential backoff).
for item in page_result: to iterate through all pages automatically.GET /mobile_push_credentials
pythonpage = client.mobile_push_credentials.list() page = page.data[0] print(page.id)
Returns: alias (string), certificate (string), created_at (date-time), id (string), private_key (string), project_account_json_file (object), record_type (string), type (string), updated_at (date-time)
POST /mobile_push_credentials — Required: type, certificate, private_key, alias
pythonpush_credential_response = client.mobile_push_credentials.create( create_mobile_push_credential_request={ "alias": "LucyIosCredential", "certificate": "-----BEGIN CERTIFICATE----- MIIGVDCCBTKCAQEAsNlRJVZn9ZvXcECQm65czs... -----END CERTIFICATE-----", "private_key": "-----BEGIN RSA PRIVATE KEY----- MIIEpQIBAAKCAQEAsNlRJVZn9ZvXcECQm65czs... -----END RSA PRIVATE KEY-----", "type": "ios", }, ) print(push_credential_response.data)
Returns: alias (string), certificate (string), created_at (date-time), id (string), private_key (string), project_account_json_file (object), record_type (string), type (string), updated_at (date-time)
Retrieves mobile push credential based on the given push_credential_id
GET /mobile_push_credentials/{push_credential_id}
pythonpush_credential_response = client.mobile_push_credentials.retrieve( "0ccc7b76-4df3-4bca-a05a-3da1ecc389f0", ) print(push_credential_response.data)
Returns: alias (string), certificate (string), created_at (date-time), id (string), private_key (string), project_account_json_file (object), record_type (string), type (string), updated_at (date-time)
Deletes a mobile push credential based on the given push_credential_id
DELETE /mobile_push_credentials/{push_credential_id}
pythonclient.mobile_push_credentials.delete( "0ccc7b76-4df3-4bca-a05a-3da1ecc389f0", )
List all On-demand Credentials.
GET /telephony_credentials
pythonpage = client.telephony_credentials.list() page = page.data[0] print(page.id)
Returns: created_at (string), expired (boolean), expires_at (string), id (string), name (string), record_type (string), resource_id (string), sip_password (string), sip_username (string), updated_at (string), user_id (string)
Create a credential.
POST /telephony_credentials — Required: connection_id
Optional: expires_at (string), name (string), tag (string)
pythontelephony_credential = client.telephony_credentials.create( connection_id="1234567890", ) print(telephony_credential.data)
Returns: created_at (string), expired (boolean), expires_at (string), id (string), name (string), record_type (string), resource_id (string), sip_password (string), sip_username (string), updated_at (string), user_id (string)
Get the details of an existing On-demand Credential.
GET /telephony_credentials/{id}
pythontelephony_credential = client.telephony_credentials.retrieve( "id", ) print(telephony_credential.data)
Returns: created_at (string), expired (boolean), expires_at (string), id (string), name (string), record_type (string), resource_id (string), sip_password (string), sip_username (string), updated_at (string), user_id (string)
Update an existing credential.
PATCH /telephony_credentials/{id}
Optional: connection_id (string), expires_at (string), name (string), tag (string)
pythontelephony_credential = client.telephony_credentials.update( id="550e8400-e29b-41d4-a716-446655440000", ) print(telephony_credential.data)
Returns: created_at (string), expired (boolean), expires_at (string), id (string), name (string), record_type (string), resource_id (string), sip_password (string), sip_username (string), updated_at (string), user_id (string)
Delete an existing credential.
DELETE /telephony_credentials/{id}
pythontelephony_credential = client.telephony_credentials.delete( "id", ) print(telephony_credential.data)
Returns: created_at (string), expired (boolean), expires_at (string), id (string), name (string), record_type (string), resource_id (string), sip_password (string), sip_username (string), updated_at (string), user_id (string)
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | fail→pass | 17,555 | 7,133 | -59% | 1 | 1 | 0% | 3,630 | 3,376 | -7% | 0 | 0 | — |
case-02 | fail→pass | 12,541 | 11,702 | -7% | 1 | 1 | 0% | 2,650 | 4,471 | +69% | 0 | 0 | — |
case-03 | fail→pass | 14,263 | 7,626 | -47% | 1 | 1 | 0% | 2,959 | 3,649 | +23% | 0 | 0 | — |
case-04 | pass→pass | 7,252 | 6,557 | -10% | 1 | 1 | 0% | 1,474 | 3,236 | +120% | 0 | 0 | — |
case-05 | pass→fail | 16,235 | 13,563 | -16% | 1 | 1 | 0% | 3,280 | 4,732 | +44% | 0 | 0 | — |
case-06 | pass→pass | 7,182 | 6,118 | -15% | 1 | 1 | 0% | 1,410 | 3,161 | +124% | 0 | 0 | — |
case-07 | fail→pass | 4,916 | 4,353 | -11% | 1 | 1 | 0% | 980 | 2,748 | +180% | 0 | 0 | — |
case-08 | fail→pass | 5,608 | 3,882 | -31% | 1 | 1 | 0% | 1,022 | 2,662 | +160% | 0 | 0 | — |
case-09 | fail→pass | 6,583 | 4,933 | -25% | 1 | 1 | 0% | 1,254 | 2,998 | +139% | 0 | 0 | — |
case-10 | fail→pass | 4,218 | 2,295 | -46% | 1 | 1 | 0% | 777 | 2,359 | +204% | 0 | 0 | — |
case-11 | fail→pass | 6,634 | 3,747 | -44% | 1 | 1 | 0% | 1,199 | 2,633 | +120% | 0 | 0 | — |
case-12 | fail→pass | 7,676 | 4,165 | -46% | 1 | 1 | 0% | 1,494 | 2,797 | +87% | 0 | 0 | — |
case-13 | pass→pass | 12,948 | 6,397 | -51% | 1 | 1 | 0% | 2,652 | 3,185 | +20% | 0 | 0 | — |
case-14 | fail→pass | 11,402 | 6,734 | -41% | 1 | 1 | 0% | 2,279 | 3,324 | +46% | 0 | 0 | — |
case-15 | fail→pass | 8,518 | 5,075 | -40% | 1 | 1 | 0% | 1,799 | 3,023 | +68% | 0 | 0 | — |
case-16 | pass→pass | 6,844 | 2,129 | -69% | 1 | 1 | 0% | 1,242 | 2,273 | +83% | 0 | 0 | — |
case-17 | pass→pass | 10,070 | 4,119 | -59% | 1 | 1 | 0% | 2,060 | 2,736 | +33% | 0 | 0 | — |
case-18 | fail→pass | 6,352 | 3,690 | -42% | 1 | 1 | 0% | 1,318 | 2,634 | +100% | 0 | 0 | — |
case-19 | fail→pass | 7,764 | 3,530 | -55% | 1 | 1 | 0% | 1,685 | 2,691 | +60% | 0 | 0 | — |
case-20 | fail→pass | 5,315 | 2,887 | -46% | 1 | 1 | 0% | 989 | 2,480 | +151% | 0 | 0 | — |
case-21 | fail→pass | 6,312 | 3,791 | -40% | 1 | 1 | 0% | 1,217 | 2,699 | +122% | 0 | 0 | — |
case-22 | fail→pass | 6,545 | 3,407 | -48% | 1 | 1 | 0% | 1,264 | 2,646 | +109% | 0 | 0 | — |
case-23 | fail→pass | 8,115 | 5,265 | -35% | 1 | 1 | 0% | 1,574 | 3,075 | +95% | 0 | 0 | — |
case-24 | pass→pass | 8,537 | 3,337 | -61% | 1 | 1 | 0% | 1,610 | 2,545 | +58% | 0 | 0 | — |
case-25 | fail→pass | 6,903 | 6,176 | -11% | 1 | 1 | 0% | 1,463 | 3,317 | +127% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 25 cases were attempted. The headline lift of +68 percentage points is the difference between those two pass rates over the 25 comparable cases. 1 case got worse with the skill loaded, and it is included in that figure.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.