Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Configure account addresses, authentication providers, IP access controls, billing groups, and integration secrets. This skill provides Ruby SDK examples.
.claude/skills/team-telnyx-telnyx-account-access-ruby/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | 151% | 0% |
| case-02 | ✗→✓ | ▲ Improved | 150% | 0% |
| case-03 | ✗→✓ | ▲ Improved | 224% | 0% |
| case-04 | ✗→✓ | ▲ Improved | 164% | 0% |
| case-06 | ✗→✓ | ▲ Improved | 96% | 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 /access_ip_address
rubypage = client.access_ip_address.list puts(page)
Returns: created_at (date-time), description (string), id (string), ip_address (string), source (string), status (enum: pending, added), updated_at (date-time), user_id (string)
POST /access_ip_address — Required: ip_address
Optional: description (string)
rubyaccess_ip_address_response = client.access_ip_address.create(ip_address: "203.0.113.10") puts(access_ip_address_response)
Returns: created_at (date-time), description (string), id (string), ip_address (string), source (string), status (enum: pending, added), updated_at (date-time), user_id (string)
GET /access_ip_address/{access_ip_address_id}
rubyaccess_ip_address_response = client.access_ip_address.retrieve("access_ip_address_id") puts(access_ip_address_response)
Returns: created_at (date-time), description (string), id (string), ip_address (string), source (string), status (enum: pending, added), updated_at (date-time), user_id (string)
DELETE /access_ip_address/{access_ip_address_id}
rubyaccess_ip_address_response = client.access_ip_address.delete("access_ip_address_id") puts(access_ip_address_response)
Returns: created_at (date-time), description (string), id (string), ip_address (string), source (string), status (enum: pending, added), updated_at (date-time), user_id (string)
Returns a list of your addresses.
GET /addresses
rubypage = client.addresses.list puts(page)
Returns: address_book (boolean), administrative_area (string), borough (string), business_name (string), country_code (string), created_at (string), customer_reference (string), extended_address (string), first_name (string), id (string), last_name (string), locality (string), neighborhood (string), phone_number (string), postal_code (string), record_type (string), street_address (string), updated_at (string), validate_address (boolean)
Creates an address.
POST /addresses — Required: first_name, last_name, business_name, street_address, locality, country_code
Optional: address_book (boolean), administrative_area (string), borough (string), customer_reference (string), extended_address (string), neighborhood (string), phone_number (string), postal_code (string), validate_address (boolean)
rubyaddress = client.addresses.create( business_name: "Toy-O'Kon", country_code: "US", first_name: "Alfred", last_name: "Foster", locality: "Austin", street_address: "600 Congress Avenue" ) puts(address)
Returns: address_book (boolean), administrative_area (string), borough (string), business_name (string), country_code (string), created_at (string), customer_reference (string), extended_address (string), first_name (string), id (string), last_name (string), locality (string), neighborhood (string), phone_number (string), postal_code (string), record_type (string), street_address (string), updated_at (string), validate_address (boolean)
Validates an address for emergency services.
POST /addresses/actions/validate — Required: country_code, street_address, postal_code
Optional: administrative_area (string), extended_address (string), locality (string)
rubyresponse = client.addresses.actions.validate( country_code: "US", postal_code: "78701", street_address: "600 Congress Avenue" ) puts(response)
Returns: errors (arrayobject]), record_type (string), result (enum: valid, invalid), suggested (object)
Retrieves the details of an existing address.
GET /addresses/{id}
rubyaddress = client.addresses.retrieve("550e8400-e29b-41d4-a716-446655440000") puts(address)
Returns: address_book (boolean), administrative_area (string), borough (string), business_name (string), country_code (string), created_at (string), customer_reference (string), extended_address (string), first_name (string), id (string), last_name (string), locality (string), neighborhood (string), phone_number (string), postal_code (string), record_type (string), street_address (string), updated_at (string), validate_address (boolean)
Deletes an existing address.
DELETE /addresses/{id}
rubyaddress = client.addresses.delete("550e8400-e29b-41d4-a716-446655440000") puts(address)
Returns: address_book (boolean), administrative_area (string), borough (string), business_name (string), country_code (string), created_at (string), customer_reference (string), extended_address (string), first_name (string), id (string), last_name (string), locality (string), neighborhood (string), phone_number (string), postal_code (string), record_type (string), street_address (string), updated_at (string), validate_address (boolean)
POST /addresses/{id}/actions/accept_suggestions
Optional: id (string)
rubyresponse = client.addresses.actions.accept_suggestions("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e") puts(response)
Returns: accepted (boolean), id (uuid), record_type (enum: address_suggestion)
Returns a list of your SSO authentication providers.
GET /authentication_providers
rubypage = client.authentication_providers.list puts(page)
Returns: activated_at (date-time), active (boolean), created_at (date-time), id (uuid), name (string), organization_id (uuid), record_type (string), settings (object), short_name (string), updated_at (date-time)
Creates an authentication provider.
POST /authentication_providers — Required: name, short_name, settings
Optional: active (boolean), settings_url (uri)
rubyauthentication_provider = client.authentication_providers.create( name: "Okta", settings: { idp_cert_fingerprint: "13:38:C7:BB:C9:FF:4A:70:38:3A:E3:D9:5C:CD:DB:2E:50:1E:80:A7", idp_entity_id: "https://myorg.myidp.com/saml/metadata", idp_sso_target_url: "https://myorg.myidp.com/trust/saml2/http-post/sso" }, short_name: "myorg" ) puts(authentication_provider)
Returns: activated_at (date-time), active (boolean), created_at (date-time), id (uuid), name (string), organization_id (uuid), record_type (string), settings (object), short_name (string), updated_at (date-time)
Retrieves the details of an existing authentication provider.
GET /authentication_providers/{id}
rubyauthentication_provider = client.authentication_providers.retrieve("550e8400-e29b-41d4-a716-446655440000") puts(authentication_provider)
Returns: activated_at (date-time), active (boolean), created_at (date-time), id (uuid), name (string), organization_id (uuid), record_type (string), settings (object), short_name (string), updated_at (date-time)
Updates settings of an existing authentication provider.
PATCH /authentication_providers/{id}
Optional: active (boolean), name (string), settings (object), settings_url (uri), short_name (string)
rubyauthentication_provider = client.authentication_providers.update("550e8400-e29b-41d4-a716-446655440000") puts(authentication_provider)
Returns: activated_at (date-time), active (boolean), created_at (date-time), id (uuid), name (string), organization_id (uuid), record_type (string), settings (object), short_name (string), updated_at (date-time)
Deletes an existing authentication provider.
DELETE /authentication_providers/{id}
rubyauthentication_provider = client.authentication_providers.delete("550e8400-e29b-41d4-a716-446655440000") puts(authentication_provider)
Returns: activated_at (date-time), active (boolean), created_at (date-time), id (uuid), name (string), organization_id (uuid), record_type (string), settings (object), short_name (string), updated_at (date-time)
GET /billing_groups
rubypage = client.billing_groups.list puts(page)
Returns: created_at (date-time), deleted_at (date-time), id (uuid), name (string), organization_id (uuid), record_type (enum: billing_group), updated_at (date-time)
POST /billing_groups
Optional: name (string)
rubybilling_group = client.billing_groups.create puts(billing_group)
Returns: created_at (date-time), deleted_at (date-time), id (uuid), name (string), organization_id (uuid), record_type (enum: billing_group), updated_at (date-time)
GET /billing_groups/{id}
rubybilling_group = client.billing_groups.retrieve("f5586561-8ff0-4291-a0ac-84fe544797bd") puts(billing_group)
Returns: created_at (date-time), deleted_at (date-time), id (uuid), name (string), organization_id (uuid), record_type (enum: billing_group), updated_at (date-time)
PATCH /billing_groups/{id}
Optional: name (string)
rubybilling_group = client.billing_groups.update("f5586561-8ff0-4291-a0ac-84fe544797bd") puts(billing_group)
Returns: created_at (date-time), deleted_at (date-time), id (uuid), name (string), organization_id (uuid), record_type (enum: billing_group), updated_at (date-time)
DELETE /billing_groups/{id}
rubybilling_group = client.billing_groups.delete("f5586561-8ff0-4291-a0ac-84fe544797bd") puts(billing_group)
Returns: created_at (date-time), deleted_at (date-time), id (uuid), name (string), organization_id (uuid), record_type (enum: billing_group), updated_at (date-time)
Retrieve a list of all integration secrets configured by the user.
GET /integration_secrets
rubypage = client.integration_secrets.list puts(page)
Returns: created_at (date-time), id (string), identifier (string), record_type (string), updated_at (date-time)
Create a new secret with an associated identifier that can be used to securely integrate with other services.
POST /integration_secrets — Required: identifier, type
Optional: password (string), token (string), username (string)
rubyintegration_secret = client.integration_secrets.create(identifier: "my_secret", type: :bearer) puts(integration_secret)
Returns: created_at (date-time), id (string), identifier (string), record_type (string), updated_at (date-time)
Delete an integration secret given its ID.
DELETE /integration_secrets/{id}
rubyresult = client.integration_secrets.delete("550e8400-e29b-41d4-a716-446655440000") puts(result)
Create an Access Token (JWT) for the credential.
POST /telephony_credentials/{id}/token
rubyresponse = client.telephony_credentials.create_token("550e8400-e29b-41d4-a716-446655440000") puts(response)
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | fail→pass | 10,165 | 4,390 | -57% | 1 | 1 | 0% | 2,041 | 5,121 | +151% | 0 | 0 | — |
case-02 | fail→pass | 11,281 | 4,459 | -60% | 1 | 1 | 0% | 2,070 | 5,176 | +150% | 0 | 0 | — |
case-03 | fail→pass | 8,779 | 4,924 | -44% | 1 | 1 | 0% | 1,616 | 5,237 | +224% | 0 | 0 | — |
case-04 | fail→pass | 9,602 | 2,666 | -72% | 1 | 1 | 0% | 1,819 | 4,810 | +164% | 0 | 0 | — |
case-05 | pass→pass | 11,480 | 3,147 | -73% | 1 | 1 | 0% | 2,167 | 4,907 | +126% | 0 | 0 | — |
case-06 | fail→pass | 13,876 | 2,684 | -81% | 1 | 1 | 0% | 2,401 | 4,701 | +96% | 0 | 0 | — |
case-07 | fail→pass | 4,948 | 5,273 | +7% | 1 | 1 | 0% | 1,070 | 5,310 | +396% | 0 | 0 | — |
case-08 | pass→pass | 8,586 | 2,980 | -65% | 1 | 1 | 0% | 1,778 | 4,843 | +172% | 0 | 0 | — |
case-09 | fail→pass | 5,195 | 2,366 | -54% | 1 | 1 | 0% | 1,047 | 4,671 | +346% | 0 | 0 | — |
case-10 | fail→pass | 7,419 | 2,721 | -63% | 1 | 1 | 0% | 1,473 | 4,784 | +225% | 0 | 0 | — |
case-11 | fail→pass | 8,266 | 3,579 | -57% | 1 | 1 | 0% | 1,731 | 5,038 | +191% | 0 | 0 | — |
case-12 | fail→pass | 5,381 | 2,707 | -50% | 1 | 1 | 0% | 1,096 | 4,714 | +330% | 0 | 0 | — |
case-13 | fail→pass | 6,232 | 3,074 | -51% | 1 | 1 | 0% | 1,232 | 4,888 | +297% | 0 | 0 | — |
case-14 | fail→pass | 5,432 | 2,363 | -56% | 1 | 1 | 0% | 1,087 | 4,745 | +337% | 0 | 0 | — |
case-15 | fail→pass | 6,348 | 2,505 | -61% | 1 | 1 | 0% | 1,138 | 4,672 | +311% | 0 | 0 | — |
case-16 | pass→pass | 9,056 | 2,052 | -77% | 1 | 1 | 0% | 1,613 | 4,540 | +181% | 0 | 0 | — |
case-17 | fail→pass | 4,742 | 2,553 | -46% | 1 | 1 | 0% | 957 | 4,766 | +398% | 0 | 0 | — |
case-18 | fail→pass | 5,587 | 2,708 | -52% | 1 | 1 | 0% | 1,016 | 4,777 | +370% | 0 | 0 | — |
case-19 | fail→pass | 4,971 | 2,625 | -47% | 1 | 1 | 0% | 1,049 | 4,688 | +347% | 0 | 0 | — |
case-20 | pass→pass | 8,219 | 3,066 | -63% | 1 | 1 | 0% | 1,536 | 4,741 | +209% | 0 | 0 | — |
case-21 | fail→pass | 8,520 | 2,887 | -66% | 1 | 1 | 0% | 1,582 | 4,793 | +203% | 0 | 0 | — |
case-22 | fail→pass | 5,936 | 2,075 | -65% | 1 | 1 | 0% | 1,265 | 4,648 | +267% | 0 | 0 | — |
case-23 | fail→pass | 7,602 | 2,191 | -71% | 1 | 1 | 0% | 1,541 | 4,685 | +204% | 0 | 0 | — |
case-24 | fail→pass | 3,524 | 3,632 | +3% | 1 | 1 | 0% | 657 | 5,010 | +663% | 0 | 0 | — |
case-25 | pass→pass | 12,440 | 6,609 | -47% | 1 | 1 | 0% | 2,288 | 5,481 | +140% | 0 | 0 | — |
case-26 | pass→pass | 9,120 | 6,163 | -32% | 1 | 1 | 0% | 1,774 | 5,458 | +208% | 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. 26 cases were attempted. The headline lift of +77 percentage points is the difference between those two pass rates over the 26 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.