Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Configure notification channels and settings for account alerts and events. This skill provides Ruby SDK examples.
.claude/skills/team-telnyx-telnyx-account-notifications-ruby/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-08 | ✗→✓ | ▲ Improved | 87% | 0% |
| case-01 | ✗→✓ | ▲ Improved | 148% | 0% |
| case-02 | ✗→✓ | ▲ Improved | 227% | 0% |
| case-03 | ✗→✓ | ▲ Improved | 88% | 0% |
| case-04 | ✗→✓ | ▲ Improved | 90% | 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 }.List notification channels.
GET /notification_channels
rubypage = client.notification_channels.list puts(page)
Returns: channel_destination (string), channel_type_id (enum: sms, voice, email, webhook), created_at (date-time), id (string), notification_profile_id (string), updated_at (date-time)
Create a notification channel.
POST /notification_channels
Optional: channel_destination (string), channel_type_id (enum: sms, voice, email, webhook), created_at (date-time), id (string), notification_profile_id (string), updated_at (date-time)
rubynotification_channel = client.notification_channels.create(channel_type_id: "webhook", channel_destination: "https://example.com/webhooks") puts(notification_channel)
Returns: channel_destination (string), channel_type_id (enum: sms, voice, email, webhook), created_at (date-time), id (string), notification_profile_id (string), updated_at (date-time)
Get a notification channel.
GET /notification_channels/{id}
rubynotification_channel = client.notification_channels.retrieve("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e") puts(notification_channel)
Returns: channel_destination (string), channel_type_id (enum: sms, voice, email, webhook), created_at (date-time), id (string), notification_profile_id (string), updated_at (date-time)
Update a notification channel.
PATCH /notification_channels/{id}
Optional: channel_destination (string), channel_type_id (enum: sms, voice, email, webhook), created_at (date-time), id (string), notification_profile_id (string), updated_at (date-time)
rubynotification_channel = client.notification_channels.update("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e") puts(notification_channel)
Returns: channel_destination (string), channel_type_id (enum: sms, voice, email, webhook), created_at (date-time), id (string), notification_profile_id (string), updated_at (date-time)
Delete a notification channel.
DELETE /notification_channels/{id}
rubynotification_channel = client.notification_channels.delete("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e") puts(notification_channel)
Returns: channel_destination (string), channel_type_id (enum: sms, voice, email, webhook), created_at (date-time), id (string), notification_profile_id (string), updated_at (date-time)
Returns a list of your notifications events conditions.
GET /notification_event_conditions
rubypage = client.notification_event_conditions.list puts(page)
Returns: allow_multiple_channels (boolean), associated_record_type (enum: account, phone_number), asynchronous (boolean), created_at (date-time), description (string), enabled (boolean), id (string), name (string), notification_event_id (string), parameters (arrayobject]), supported_channels (arraystring]), updated_at (date-time)
Returns a list of your notifications events.
GET /notification_events
rubypage = client.notification_events.list puts(page)
Returns: created_at (date-time), enabled (boolean), id (string), name (string), notification_category (string), updated_at (date-time)
Returns a list of your notifications profiles.
GET /notification_profiles
rubypage = client.notification_profiles.list puts(page)
Returns: created_at (date-time), id (string), name (string), updated_at (date-time)
Create a notification profile.
POST /notification_profiles
Optional: created_at (date-time), id (string), name (string), updated_at (date-time)
rubynotification_profile = client.notification_profiles.create(name: "My Notification Profile") puts(notification_profile)
Returns: created_at (date-time), id (string), name (string), updated_at (date-time)
Get a notification profile.
GET /notification_profiles/{id}
rubynotification_profile = client.notification_profiles.retrieve("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e") puts(notification_profile)
Returns: created_at (date-time), id (string), name (string), updated_at (date-time)
Update a notification profile.
PATCH /notification_profiles/{id}
Optional: created_at (date-time), id (string), name (string), updated_at (date-time)
rubynotification_profile = client.notification_profiles.update("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e") puts(notification_profile)
Returns: created_at (date-time), id (string), name (string), updated_at (date-time)
Delete a notification profile.
DELETE /notification_profiles/{id}
rubynotification_profile = client.notification_profiles.delete("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e") puts(notification_profile)
Returns: created_at (date-time), id (string), name (string), updated_at (date-time)
List notification settings.
GET /notification_settings
rubypage = client.notification_settings.list puts(page)
Returns: associated_record_type (string), associated_record_type_value (string), created_at (date-time), id (string), notification_channel_id (string), notification_event_condition_id (string), notification_profile_id (string), parameters (arrayobject]), status (enum: enabled, enable-received, enable-pending, enable-submitted, delete-received, delete-pending, delete-submitted, deleted), updated_at (date-time)
Add a notification setting.
POST /notification_settings
Optional: associated_record_type (string), associated_record_type_value (string), created_at (date-time), id (string), notification_channel_id (string), notification_event_condition_id (string), notification_profile_id (string), parameters (arrayobject]), status (enum: enabled, enable-received, enable-pending, enable-submitted, delete-received, delete-pending, delete-submitted, deleted), updated_at (date-time)
rubynotification_setting = client.notification_settings.create puts(notification_setting)
Returns: associated_record_type (string), associated_record_type_value (string), created_at (date-time), id (string), notification_channel_id (string), notification_event_condition_id (string), notification_profile_id (string), parameters (arrayobject]), status (enum: enabled, enable-received, enable-pending, enable-submitted, delete-received, delete-pending, delete-submitted, deleted), updated_at (date-time)
Get a notification setting.
GET /notification_settings/{id}
rubynotification_setting = client.notification_settings.retrieve("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e") puts(notification_setting)
Returns: associated_record_type (string), associated_record_type_value (string), created_at (date-time), id (string), notification_channel_id (string), notification_event_condition_id (string), notification_profile_id (string), parameters (arrayobject]), status (enum: enabled, enable-received, enable-pending, enable-submitted, delete-received, delete-pending, delete-submitted, deleted), updated_at (date-time)
Delete a notification setting.
DELETE /notification_settings/{id}
rubynotification_setting = client.notification_settings.delete("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e") puts(notification_setting)
Returns: associated_record_type (string), associated_record_type_value (string), created_at (date-time), id (string), notification_channel_id (string), notification_event_condition_id (string), notification_profile_id (string), parameters (arrayobject]), status (enum: enabled, enable-received, enable-pending, enable-submitted, delete-received, delete-pending, delete-submitted, deleted), updated_at (date-time)
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-08 | fail→pass | 9,970 | 2,510 | -75% | 1 | 1 | 0% | 1,792 | 3,357 | +87% | 0 | 0 | — |
case-01 | fail→pass | 7,426 | 5,667 | -24% | 1 | 1 | 0% | 1,494 | 3,711 | +148% | 0 | 0 | — |
case-02 | fail→pass | 5,572 | 2,501 | -55% | 1 | 1 | 0% | 1,044 | 3,416 | +227% | 0 | 0 | — |
case-03 | fail→pass | 9,681 | 3,474 | -64% | 1 | 1 | 0% | 1,920 | 3,606 | +88% | 0 | 0 | — |
case-04 | fail→pass | 9,991 | 3,477 | -65% | 1 | 1 | 0% | 1,881 | 3,566 | +90% | 0 | 0 | — |
case-05 | pass→pass | 6,485 | 18,384 | +183% | 1 | 1 | 0% | 1,326 | 3,975 | +200% | 0 | 0 | — |
case-06 | fail→pass | 11,529 | 3,377 | -71% | 1 | 1 | 0% | 2,261 | 3,617 | +60% | 0 | 0 | — |
case-07 | fail→pass | 4,873 | 2,005 | -59% | 1 | 1 | 0% | 1,087 | 3,309 | +204% | 0 | 0 | — |
case-09 | fail→pass | 8,887 | 2,533 | -71% | 1 | 1 | 0% | 1,635 | 3,266 | +100% | 0 | 0 | — |
case-10 | fail→pass | 4,904 | 4,203 | -14% | 1 | 1 | 0% | 933 | 3,641 | +290% | 0 | 0 | — |
case-11 | fail→pass | 4,792 | 2,315 | -52% | 1 | 1 | 0% | 938 | 3,355 | +258% | 0 | 0 | — |
case-12 | pass→pass | 8,592 | 2,086 | -76% | 1 | 1 | 0% | 1,561 | 3,334 | +114% | 0 | 0 | — |
case-13 | fail→pass | 6,581 | 1,969 | -70% | 1 | 1 | 0% | 1,250 | 3,326 | +166% | 0 | 0 | — |
case-14 | pass→pass | 6,770 | 2,807 | -59% | 1 | 1 | 0% | 1,349 | 3,438 | +155% | 0 | 0 | — |
case-15 | fail→pass | 3,262 | 1,564 | -52% | 1 | 1 | 0% | 541 | 3,140 | +480% | 0 | 0 | — |
case-16 | fail→pass | 7,613 | 1,944 | -74% | 1 | 1 | 0% | 1,590 | 3,272 | +106% | 0 | 0 | — |
case-17 | pass→pass | 4,504 | 2,096 | -53% | 1 | 1 | 0% | 893 | 3,348 | +275% | 0 | 0 | — |
case-18 | fail→pass | 10,924 | 4,622 | -58% | 1 | 1 | 0% | 2,277 | 3,890 | +71% | 0 | 0 | — |
case-19 | fail→pass | 11,211 | 4,741 | -58% | 1 | 1 | 0% | 2,162 | 3,935 | +82% | 0 | 0 | — |
case-20 | pass→pass | 10,536 | 8,842 | -16% | 1 | 1 | 0% | 2,137 | 4,651 | +118% | 0 | 0 | — |
case-21 | fail→pass | 3,132 | 3,048 | -3% | 1 | 1 | 0% | 720 | 3,552 | +393% | 0 | 0 | — |
case-22 | fail→pass | 6,987 | 3,302 | -53% | 1 | 1 | 0% | 1,470 | 3,597 | +145% | 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 +77 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.