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 Ruby SDK examples.
.claude/skills/team-telnyx-telnyx-webrtc-ruby/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-20 | ✗→✓ | ▲ Improved | 6% | 0% |
| case-01 | ✗→✓ | ▲ Improved | 6% | 0% |
| case-02 | ✗→✓ | ▲ Improved | 54% | 0% |
| case-03 | ✗→✓ | ▲ Improved | 36% | 0% |
| case-07 | ✗→✓ | ▲ Improved | 114% | 0% |
<!-- Auto-generated from Telnyx OpenAPI specs. Do not edit. -->
bashgem install telnyx
rubyrequire "telnyx" client = Telnyx::Client.new( api_key: ENV["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:
rubybegin result = client.messages.send_(to: "+13125550001", from: "+13125550002", text: "Hello") rescue Telnyx::Errors::APIConnectionError puts "Network error — check connectivity and retry" rescue Telnyx::Errors::RateLimitError # 429: rate limited — wait and retry with exponential backoff sleep(1) # Check Retry-After header for actual delay rescue Telnyx::Errors::APIStatusError => e puts "API error #{e.status}: #{e.message}" if e.status == 422 puts "Validation error — check required fields and formats" end end
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).
.auto_paging_each for automatic iteration: page.auto_paging_each { |item| puts item.id }.GET /mobile_push_credentials
rubypage = client.mobile_push_credentials.list puts(page)
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
rubypush_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 } ) puts(push_credential_response)
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}
rubypush_credential_response = client.mobile_push_credentials.retrieve("0ccc7b76-4df3-4bca-a05a-3da1ecc389f0") puts(push_credential_response)
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}
rubyresult = client.mobile_push_credentials.delete("0ccc7b76-4df3-4bca-a05a-3da1ecc389f0") puts(result)
List all On-demand Credentials.
GET /telephony_credentials
rubypage = client.telephony_credentials.list puts(page)
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)
rubytelephony_credential = client.telephony_credentials.create(connection_id: "1234567890") puts(telephony_credential)
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}
rubytelephony_credential = client.telephony_credentials.retrieve("550e8400-e29b-41d4-a716-446655440000") puts(telephony_credential)
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)
rubytelephony_credential = client.telephony_credentials.update("550e8400-e29b-41d4-a716-446655440000") puts(telephony_credential)
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}
rubytelephony_credential = client.telephony_credentials.delete("550e8400-e29b-41d4-a716-446655440000") puts(telephony_credential)
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-20 | fail→pass | 17,161 | 8,205 | -52% | 1 | 1 | 0% | 3,268 | 3,473 | +6% | 0 | 0 | — |
case-01 | fail→pass | 14,747 | 6,279 | -57% | 1 | 1 | 0% | 3,049 | 3,238 | +6% | 0 | 0 | — |
case-02 | fail→pass | 8,927 | 4,434 | -50% | 1 | 1 | 0% | 1,839 | 2,825 | +54% | 0 | 0 | — |
case-03 | fail→pass | 10,843 | 5,410 | -50% | 1 | 1 | 0% | 2,261 | 3,074 | +36% | 0 | 0 | — |
case-04 | pass→pass | 7,430 | 8,647 | +16% | 1 | 1 | 0% | 1,454 | 3,693 | +154% | 0 | 0 | — |
case-05 | pass→pass | 6,905 | 5,991 | -13% | 1 | 1 | 0% | 1,402 | 3,164 | +126% | 0 | 0 | — |
case-06 | pass→pass | 10,148 | 6,653 | -34% | 1 | 1 | 0% | 2,086 | 3,275 | +57% | 0 | 0 | — |
case-07 | fail→pass | 5,985 | 3,201 | -47% | 1 | 1 | 0% | 1,200 | 2,566 | +114% | 0 | 0 | — |
case-08 | fail→pass | 4,725 | 2,010 | -57% | 1 | 1 | 0% | 910 | 2,272 | +150% | 0 | 0 | — |
case-09 | pass→pass | 7,847 | 2,898 | -63% | 1 | 1 | 0% | 1,596 | 2,451 | +54% | 0 | 0 | — |
case-10 | fail→pass | 8,534 | 2,345 | -73% | 1 | 1 | 0% | 1,469 | 2,302 | +57% | 0 | 0 | — |
case-11 | fail→pass | 9,236 | 4,658 | -50% | 1 | 1 | 0% | 1,694 | 2,771 | +64% | 0 | 0 | — |
case-12 | fail→pass | 9,257 | 2,788 | -70% | 1 | 1 | 0% | 1,650 | 2,366 | +43% | 0 | 0 | — |
case-13 | fail→pass | 8,238 | 2,254 | -73% | 1 | 1 | 0% | 1,528 | 2,271 | +49% | 0 | 0 | — |
case-14 | fail→pass | 7,643 | 3,142 | -59% | 1 | 1 | 0% | 1,334 | 2,503 | +88% | 0 | 0 | — |
case-15 | pass→pass | 5,552 | 2,011 | -64% | 1 | 1 | 0% | 1,061 | 2,259 | +113% | 0 | 0 | — |
case-16 | fail→pass | 7,575 | 2,851 | -62% | 1 | 1 | 0% | 1,476 | 2,395 | +62% | 0 | 0 | — |
case-17 | fail→pass | 5,352 | 2,388 | -55% | 1 | 1 | 0% | 979 | 2,208 | +126% | 0 | 0 | — |
case-18 | pass→pass | 9,027 | 1,660 | -82% | 1 | 1 | 0% | 1,722 | 2,190 | +27% | 0 | 0 | — |
case-19 | pass→pass | 9,587 | 2,679 | -72% | 1 | 1 | 0% | 1,723 | 2,396 | +39% | 0 | 0 | — |
case-21 | fail→pass | 7,619 | 3,513 | -54% | 1 | 1 | 0% | 1,452 | 2,529 | +74% | 0 | 0 | — |
case-22 | pass→pass | 3,107 | 1,468 | -53% | 1 | 1 | 0% | 503 | 2,124 | +322% | 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. 22 cases were attempted. The headline lift of +64 percentage points is the difference between those two pass rates over the 22 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.