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 REST API (curl) examples.
.claude/skills/team-telnyx-telnyx-webrtc-curl/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | 128% | 0% |
| case-03 | ✗→✓ | ▲ Improved | 74% | 0% |
| case-10 | ✗→✓ | ▲ Improved | 69% | 0% |
| case-18 | ✗→✓ | ▲ Improved | 39% | 0% |
| case-19 | ✗→✓ | ▲ Improved | 47% | 0% |
<!-- Auto-generated from Telnyx OpenAPI specs. Do not edit. -->
text# curl is pre-installed on macOS, Linux, and Windows 10+
bashexport TELNYX_API_KEY="YOUR_API_KEY_HERE"
All examples below use $TELNYX_API_KEY for authentication.
All API calls can fail with network errors, rate limits (429), validation errors (422), or authentication errors (401). Always handle errors in production code:
bash# Check HTTP status code in response response=$(curl -s -w "\n%{http_code}" \ -X POST "https://api.telnyx.com/v2/messages" \ -H "Authorization: Bearer $TELNYX_API_KEY" \ -H "Content-Type: application/json" \ -d '{"to": "+13125550001", "from": "+13125550002", "text": "Hello"}') http_code=$(echo "$response" | tail -1) body=$(echo "$response" | sed '$d') case $http_code in 2*) echo "Success: $body" ;; 422) echo "Validation error — check required fields and formats" ;; 429) echo "Rate limited — retry after delay"; sleep 1 ;; 401) echo "Authentication failed — check TELNYX_API_KEY" ;; *) echo "Error $http_code: $body" ;; esac
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).
page[number] and page[size] query parameters to navigate pages. Check meta.total_pages in the response.GET /mobile_push_credentials
bashcurl -H "Authorization: Bearer $TELNYX_API_KEY" "https://api.telnyx.com/v2/mobile_push_credentials"
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
bashcurl \ -X POST \ -H "Authorization: Bearer $TELNYX_API_KEY" \ -H "Content-Type: application/json" \ "https://api.telnyx.com/v2/mobile_push_credentials"
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}
bashcurl -H "Authorization: Bearer $TELNYX_API_KEY" "https://api.telnyx.com/v2/mobile_push_credentials/0ccc7b76-4df3-4bca-a05a-3da1ecc389f0"
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}
bashcurl \ -X DELETE \ -H "Authorization: Bearer $TELNYX_API_KEY" \ "https://api.telnyx.com/v2/mobile_push_credentials/0ccc7b76-4df3-4bca-a05a-3da1ecc389f0"
List all On-demand Credentials.
GET /telephony_credentials
bashcurl -H "Authorization: Bearer $TELNYX_API_KEY" "https://api.telnyx.com/v2/telephony_credentials"
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)
bashcurl \ -X POST \ -H "Authorization: Bearer $TELNYX_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "connection_id": "1234567890" }' \ "https://api.telnyx.com/v2/telephony_credentials"
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}
bashcurl -H "Authorization: Bearer $TELNYX_API_KEY" "https://api.telnyx.com/v2/telephony_credentials/550e8400-e29b-41d4-a716-446655440000"
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)
bashcurl \ -X PATCH \ -H "Authorization: Bearer $TELNYX_API_KEY" \ -H "Content-Type: application/json" \ "https://api.telnyx.com/v2/telephony_credentials/550e8400-e29b-41d4-a716-446655440000"
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}
bashcurl \ -X DELETE \ -H "Authorization: Bearer $TELNYX_API_KEY" \ "https://api.telnyx.com/v2/telephony_credentials/550e8400-e29b-41d4-a716-446655440000"
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 | 6,229 | 1,997 | -68% | 1 | 1 | 0% | 1,101 | 2,513 | +128% | 0 | 0 | — |
case-02 | pass→pass | 4,261 | 3,063 | -28% | 1 | 1 | 0% | 869 | 2,709 | +212% | 0 | 0 | — |
case-03 | fail→pass | 7,567 | 2,795 | -63% | 1 | 1 | 0% | 1,506 | 2,613 | +74% | 0 | 0 | — |
case-04 | pass→pass | 5,456 | 2,458 | -55% | 1 | 1 | 0% | 1,095 | 2,617 | +139% | 0 | 0 | — |
case-05 | pass→pass | 4,063 | 2,119 | -48% | 1 | 1 | 0% | 873 | 2,537 | +191% | 0 | 0 | — |
case-06 | pass→pass | 6,189 | 2,823 | -54% | 1 | 1 | 0% | 1,009 | 2,461 | +144% | 0 | 0 | — |
case-07 | pass→pass | 6,583 | 2,066 | -69% | 1 | 1 | 0% | 1,231 | 2,474 | +101% | 0 | 0 | — |
case-08 | pass→pass | 3,982 | 3,277 | -18% | 1 | 1 | 0% | 633 | 2,383 | +276% | 0 | 0 | — |
case-09 | pass→pass | 6,055 | 1,665 | -73% | 1 | 1 | 0% | 1,157 | 2,323 | +101% | 0 | 0 | — |
case-10 | fail→pass | 9,303 | 4,157 | -55% | 1 | 1 | 0% | 1,749 | 2,952 | +69% | 0 | 0 | — |
case-11 | pass→pass | 3,213 | 4,751 | +48% | 1 | 1 | 0% | 547 | 2,369 | +333% | 0 | 0 | — |
case-12 | pass→pass | 4,451 | 1,965 | -56% | 1 | 1 | 0% | 764 | 2,438 | +219% | 0 | 0 | — |
case-13 | pass→pass | 2,804 | 1,613 | -42% | 1 | 1 | 0% | 428 | 2,380 | +456% | 0 | 0 | — |
case-14 | pass→pass | 3,060 | 1,671 | -45% | 1 | 1 | 0% | 489 | 2,361 | +383% | 0 | 0 | — |
case-15 | pass→pass | 10,644 | 1,978 | -81% | 1 | 1 | 0% | 1,919 | 2,412 | +26% | 0 | 0 | — |
case-16 | pass→pass | 6,263 | 1,515 | -76% | 1 | 1 | 0% | 1,139 | 2,364 | +108% | 0 | 0 | — |
case-17 | pass→pass | 4,341 | 1,851 | -57% | 1 | 1 | 0% | 685 | 2,377 | +247% | 0 | 0 | — |
case-18 | fail→pass | 8,971 | 2,992 | -67% | 1 | 1 | 0% | 1,771 | 2,461 | +39% | 0 | 0 | — |
case-19 | fail→pass | 9,504 | 2,766 | -71% | 1 | 1 | 0% | 1,642 | 2,414 | +47% | 0 | 0 | — |
case-20 | pass→pass | 3,393 | 2,090 | -38% | 1 | 1 | 0% | 497 | 2,436 | +390% | 0 | 0 | — |
case-21 | fail→fail | 4,992 | 4,931 | -1% | 1 | 1 | 0% | 939 | 3,097 | +230% | 0 | 0 | — |
case-22 | fail→fail | 5,225 | 5,517 | +6% | 1 | 1 | 0% | 1,049 | 3,226 | +208% | 0 | 0 | — |
case-23 | fail→fail | 11,920 | 8,494 | -29% | 1 | 1 | 0% | 2,222 | 3,669 | +65% | 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. 23 cases were attempted. The headline lift of +22 percentage points is the difference between those two pass rates over the 23 comparable cases.
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.