team-telnyx/telnyx-skills

telnyx-account-notifications-ruby

>- Configure notification channels and settings for account alerts and events. This skill provides Ruby SDK examples.

First seen Mar 7, 2026

Installation

$ npx skills add team-telnyx/telnyx-skills --skill telnyx-account-notifications-ruby

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from team-telnyx/telnyx-skills · top by installs.

npx skills add team-telnyx/telnyx-skills

Browse all from team-telnyx/telnyx-skills

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 188
License LICENSE
Default branch main
Open issues 2
Status Active

Skill metadata

Parsed from SKILL.md frontmatter.

More metadata
author
telnyx
product
account-notifications
language
ruby
generated_by
telnyx-openapi-pipeline

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 9,973 B
  • docs SUMMARY.md 155 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 9 installs

SKILL.md

<!-- Auto-generated from Telnyx OpenAPI specs. Do not edit. -->

Telnyx Account Notifications - Ruby

Installation

gem install telnyx

Setup

require "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.

Error Handling

All API calls can fail with network errors, rate limits (429), validation errors (422), or authentication errors (401). Always handle errors in production code:

begin
  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).

Important Notes

  • Pagination: Use .autopagingeach for automatic iteration: page.autopagingeach { |item| puts item.id }.

List notification channels

List notification channels.

GET /notification_channels

page = client.notification_channels.list

puts(page)

Returns: channeldestination (string), channeltypeid (enum: sms, voice, email, webhook), createdat (date-time), id (string), notificationprofileid (string), updated_at (date-time)

Create a notification channel

Create a notification channel.

POST /notification_channels

Optional: channeldestination (string), channeltypeid (enum: sms, voice, email, webhook), createdat (date-time), id (string), notificationprofileid (string), updated_at (date-time)

notification_channel = client.notification_channels.create(channel_type_id: "webhook", channel_destination: "https://example.com/webhooks")
puts(notification_channel)

Returns: channeldestination (string), channeltypeid (enum: sms, voice, email, webhook), createdat (date-time), id (string), notificationprofileid (string), updated_at (date-time)

Get a notification channel

Get a notification channel.

GET /notification_channels/{id}

notification_channel = client.notification_channels.retrieve("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e")

puts(notification_channel)

Returns: channeldestination (string), channeltypeid (enum: sms, voice, email, webhook), createdat (date-time), id (string), notificationprofileid (string), updated_at (date-time)

Update a notification channel

Update a notification channel.

PATCH /notification_channels/{id}

Optional: channeldestination (string), channeltypeid (enum: sms, voice, email, webhook), createdat (date-time), id (string), notificationprofileid (string), updated_at (date-time)

notification_channel = client.notification_channels.update("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e")

puts(notification_channel)

Returns: channeldestination (string), channeltypeid (enum: sms, voice, email, webhook), createdat (date-time), id (string), notificationprofileid (string), updated_at (date-time)

Delete a notification channel

Delete a notification channel.

DELETE /notification_channels/{id}

notification_channel = client.notification_channels.delete("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e")

puts(notification_channel)

Returns: channeldestination (string), channeltypeid (enum: sms, voice, email, webhook), createdat (date-time), id (string), notificationprofileid (string), updated_at (date-time)

List all Notifications Events Conditions

Returns a list of your notifications events conditions.

GET /notificationeventconditions

page = client.notification_event_conditions.list

puts(page)

Returns: allowmultiplechannels (boolean), associatedrecordtype (enum: account, phonenumber), asynchronous (boolean), createdat (date-time), description (string), enabled (boolean), id (string), name (string), notificationeventid (string), parameters (array[object]), supportedchannels (array[string]), updatedat (date-time)

List all Notifications Events

Returns a list of your notifications events.

GET /notification_events

page = client.notification_events.list

puts(page)

Returns: createdat (date-time), enabled (boolean), id (string), name (string), notificationcategory (string), updated_at (date-time)

List all Notifications Profiles

Returns a list of your notifications profiles.

GET /notification_profiles

page = client.notification_profiles.list

puts(page)

Returns: createdat (date-time), id (string), name (string), updatedat (date-time)

Create a notification profile

Create a notification profile.

POST /notification_profiles

Optional: createdat (date-time), id (string), name (string), updatedat (date-time)

notification_profile = client.notification_profiles.create(name: "My Notification Profile")
puts(notification_profile)

Returns: createdat (date-time), id (string), name (string), updatedat (date-time)

Get a notification profile

Get a notification profile.

GET /notification_profiles/{id}

notification_profile = client.notification_profiles.retrieve("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e")

puts(notification_profile)

Returns: createdat (date-time), id (string), name (string), updatedat (date-time)

Update a notification profile

Update a notification profile.

PATCH /notification_profiles/{id}

Optional: createdat (date-time), id (string), name (string), updatedat (date-time)

notification_profile = client.notification_profiles.update("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e")

puts(notification_profile)

Returns: createdat (date-time), id (string), name (string), updatedat (date-time)

Delete a notification profile

Delete a notification profile.

DELETE /notification_profiles/{id}

notification_profile = client.notification_profiles.delete("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e")

puts(notification_profile)

Returns: createdat (date-time), id (string), name (string), updatedat (date-time)

List notification settings

List notification settings.

GET /notification_settings

page = client.notification_settings.list

puts(page)

Returns: associatedrecordtype (string), associatedrecordtypevalue (string), createdat (date-time), id (string), notificationchannelid (string), notificationeventconditionid (string), notificationprofileid (string), parameters (array[object]), status (enum: enabled, enable-received, enable-pending, enable-submitted, delete-received, delete-pending, delete-submitted, deleted), updatedat (date-time)

Add a Notification Setting

Add a notification setting.

POST /notification_settings

Optional: associatedrecordtype (string), associatedrecordtypevalue (string), createdat (date-time), id (string), notificationchannelid (string), notificationeventconditionid (string), notificationprofileid (string), parameters (array[object]), status (enum: enabled, enable-received, enable-pending, enable-submitted, delete-received, delete-pending, delete-submitted, deleted), updatedat (date-time)

notification_setting = client.notification_settings.create

puts(notification_setting)

Returns: associatedrecordtype (string), associatedrecordtypevalue (string), createdat (date-time), id (string), notificationchannelid (string), notificationeventconditionid (string), notificationprofileid (string), parameters (array[object]), status (enum: enabled, enable-received, enable-pending, enable-submitted, delete-received, delete-pending, delete-submitted, deleted), updatedat (date-time)

Get a notification setting

Get a notification setting.

GET /notification_settings/{id}

notification_setting = client.notification_settings.retrieve("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e")

puts(notification_setting)

Returns: associatedrecordtype (string), associatedrecordtypevalue (string), createdat (date-time), id (string), notificationchannelid (string), notificationeventconditionid (string), notificationprofileid (string), parameters (array[object]), status (enum: enabled, enable-received, enable-pending, enable-submitted, delete-received, delete-pending, delete-submitted, deleted), updatedat (date-time)

Delete a notification setting

Delete a notification setting.

DELETE /notification_settings/{id}

notification_setting = client.notification_settings.delete("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e")

puts(notification_setting)

Returns: associatedrecordtype (string), associatedrecordtypevalue (string), createdat (date-time), id (string), notificationchannelid (string), notificationeventconditionid (string), notificationprofileid (string), parameters (array[object]), status (enum: enabled, enable-received, enable-pending, enable-submitted, delete-received, delete-pending, delete-submitted, deleted), updatedat (date-time)