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 JavaScript SDK examples.
.claude/skills/team-telnyx-telnyx-account-notifications-javascript/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | 152% | 0% |
| case-03 | ✗→✓ | ▲ Improved | 88% | 0% |
| case-06 | ✗→✓ | ▲ Improved | 360% | 0% |
| case-09 | ✗→✓ | ▲ Improved | 271% | 0% |
| case-14 | ✗→✓ | ▲ Improved | 255% | 0% |
<!-- Auto-generated from Telnyx OpenAPI specs. Do not edit. -->
bashnpm install telnyx@6.74.2
javascriptimport Telnyx from 'telnyx'; const client = new Telnyx({ apiKey: process.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:
javascripttry { const result = await client.messages.send({ to: '+13125550001', from: '+13125550002', text: 'Hello' }); } catch (err) { if (err instanceof Telnyx.APIConnectionError) { console.error('Network error — check connectivity and retry'); } else if (err instanceof Telnyx.RateLimitError) { // 429: rate limited — wait and retry with exponential backoff const retryAfter = err.headers?.['retry-after'] || 1; await new Promise(r => setTimeout(r, retryAfter * 1000)); } else if (err instanceof Telnyx.APIError) { console.error(`API error ${err.status}: ${err.message}`); if (err.status === 422) { console.error('Validation error — check required fields and formats'); } } }
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).
for await (const item of result) { ... } to iterate through all pages automatically.List notification channels.
GET /notification_channels
javascript// Automatically fetches more pages as needed. for await (const notificationChannel of client.notificationChannels.list()) { console.log(notificationChannel.id); }
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)
javascriptconst notificationChannel = await client.notificationChannels.create({ channel_type_id: 'webhook', channel_destination: 'https://example.com/webhooks', }); console.log(notificationChannel.data);
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}
javascriptconst notificationChannel = await client.notificationChannels.retrieve( '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', ); console.log(notificationChannel.data);
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)
javascriptconst notificationChannel = await client.notificationChannels.update( '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', ); console.log(notificationChannel.data);
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}
javascriptconst notificationChannel = await client.notificationChannels.delete( '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', ); console.log(notificationChannel.data);
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
javascript// Automatically fetches more pages as needed. for await (const notificationEventConditionListResponse of client.notificationEventConditions.list()) { console.log(notificationEventConditionListResponse.id); }
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
javascript// Automatically fetches more pages as needed. for await (const notificationEventListResponse of client.notificationEvents.list()) { console.log(notificationEventListResponse.id); }
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
javascript// Automatically fetches more pages as needed. for await (const notificationProfile of client.notificationProfiles.list()) { console.log(notificationProfile.id); }
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)
javascriptconst notificationProfile = await client.notificationProfiles.create({ name: 'My Notification Profile', }); console.log(notificationProfile.data);
Returns: created_at (date-time), id (string), name (string), updated_at (date-time)
Get a notification profile.
GET /notification_profiles/{id}
javascriptconst notificationProfile = await client.notificationProfiles.retrieve( '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', ); console.log(notificationProfile.data);
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)
javascriptconst notificationProfile = await client.notificationProfiles.update( '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', ); console.log(notificationProfile.data);
Returns: created_at (date-time), id (string), name (string), updated_at (date-time)
Delete a notification profile.
DELETE /notification_profiles/{id}
javascriptconst notificationProfile = await client.notificationProfiles.delete( '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', ); console.log(notificationProfile.data);
Returns: created_at (date-time), id (string), name (string), updated_at (date-time)
List notification settings.
GET /notification_settings
javascript// Automatically fetches more pages as needed. for await (const notificationSetting of client.notificationSettings.list()) { console.log(notificationSetting.id); }
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)
javascriptconst notificationSetting = await client.notificationSettings.create(); console.log(notificationSetting.data);
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}
javascriptconst notificationSetting = await client.notificationSettings.retrieve( '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', ); console.log(notificationSetting.data);
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}
javascriptconst notificationSetting = await client.notificationSettings.delete( '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', ); console.log(notificationSetting.data);
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-01 | fail→pass | 9,154 | 7,031 | -23% | 1 | 1 | 0% | 1,919 | 4,833 | +152% | 0 | 0 | — |
case-02 | pass→pass | 6,835 | 4,525 | -34% | 1 | 1 | 0% | 1,258 | 4,059 | +223% | 0 | 0 | — |
case-03 | fail→pass | 15,225 | 12,721 | -16% | 1 | 1 | 0% | 3,171 | 5,956 | +88% | 0 | 0 | — |
case-04 | pass→pass | 8,312 | 4,284 | -48% | 1 | 1 | 0% | 1,601 | 3,974 | +148% | 0 | 0 | — |
case-05 | pass→pass | 11,181 | 3,277 | -71% | 1 | 1 | 0% | 1,958 | 3,780 | +93% | 0 | 0 | — |
case-06 | fail→pass | 4,714 | 4,540 | -4% | 1 | 1 | 0% | 868 | 3,990 | +360% | 0 | 0 | — |
case-07 | pass→pass | 6,712 | 2,633 | -61% | 1 | 1 | 0% | 1,173 | 3,661 | +212% | 0 | 0 | — |
case-08 | pass→pass | 5,215 | 2,606 | -50% | 1 | 1 | 0% | 1,038 | 3,696 | +256% | 0 | 0 | — |
case-09 | fail→pass | 5,845 | 5,473 | -6% | 1 | 1 | 0% | 1,168 | 4,330 | +271% | 0 | 0 | — |
case-10 | pass→pass | 6,136 | 3,322 | -46% | 1 | 1 | 0% | 1,256 | 3,857 | +207% | 0 | 0 | — |
case-11 | pass→pass | 10,189 | 2,875 | -72% | 1 | 1 | 0% | 1,732 | 3,691 | +113% | 0 | 0 | — |
case-12 | pass→pass | 7,124 | 4,798 | -33% | 1 | 1 | 0% | 1,280 | 4,111 | +221% | 0 | 0 | — |
case-13 | pass→pass | 6,881 | 3,087 | -55% | 1 | 1 | 0% | 1,485 | 3,814 | +157% | 0 | 0 | — |
case-14 | fail→pass | 5,782 | 3,573 | -38% | 1 | 1 | 0% | 1,125 | 3,997 | +255% | 0 | 0 | — |
case-15 | pass→pass | 4,374 | 2,867 | -34% | 1 | 1 | 0% | 858 | 3,737 | +336% | 0 | 0 | — |
case-16 | pass→pass | 6,645 | 3,963 | -40% | 1 | 1 | 0% | 1,262 | 3,983 | +216% | 0 | 0 | — |
case-17 | fail→pass | 6,030 | 2,276 | -62% | 1 | 1 | 0% | 1,122 | 3,635 | +224% | 0 | 0 | — |
case-18 | fail→pass | 12,034 | 8,005 | -33% | 1 | 1 | 0% | 2,291 | 4,792 | +109% | 0 | 0 | — |
case-19 | fail→pass | 11,758 | 4,400 | -63% | 1 | 1 | 0% | 2,233 | 4,046 | +81% | 0 | 0 | — |
case-20 | fail→pass | 7,087 | 2,383 | -66% | 1 | 1 | 0% | 1,342 | 3,663 | +173% | 0 | 0 | — |
case-21 | fail→fail | 4,692 | 2,520 | -46% | 1 | 1 | 0% | 897 | 3,689 | +311% | 0 | 0 | — |
case-22 | pass→pass | 4,564 | 3,951 | -13% | 1 | 1 | 0% | 961 | 4,062 | +323% | 0 | 0 | — |
case-23 | pass→pass | 11,219 | 7,280 | -35% | 1 | 1 | 0% | 2,263 | 4,505 | +99% | 0 | 0 | — |
case-24 | pass→pass | 10,099 | 7,803 | -23% | 1 | 1 | 0% | 1,832 | 4,620 | +152% | 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. 24 cases were attempted. The headline lift of +38 percentage points is the difference between those two pass rates over the 24 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.