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 Go SDK examples.
.claude/skills/team-telnyx-telnyx-account-notifications-go/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-03 | ✗→✓ | ▲ Improved | 43% | 0% |
| case-01 | ✗→✓ | ▲ Improved | 59% | 0% |
| case-02 | ✗→✓ | ▲ Improved | 102% | 0% |
| case-05 | ✗→✓ | ▲ Improved | 127% | 0% |
| case-10 | ✗→✓ | ▲ Improved | 323% | 0% |
<!-- Auto-generated from Telnyx OpenAPI specs. Do not edit. -->
bashgo get github.com/team-telnyx/telnyx-go
goimport ( "context" "fmt" "os" "github.com/team-telnyx/telnyx-go" "github.com/team-telnyx/telnyx-go/option" ) client := telnyx.NewClient( option.WithAPIKey(os.Getenv("TELNYX_API_KEY")), )
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:
goimport "errors" result, err := client.Messages.Send(ctx, params) if err != nil { var apiErr *telnyx.Error if errors.As(err, &apiErr) { switch apiErr.StatusCode { case 422: fmt.Println("Validation error — check required fields and formats") case 429: // Rate limited — wait and retry with exponential backoff fmt.Println("Rate limited, retrying...") default: fmt.Printf("API error %d: %s\n", apiErr.StatusCode, apiErr.Error()) } } else { fmt.Println("Network error — check connectivity and retry") } }
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).
ListAutoPaging() for automatic iteration: iter := client.Resource.ListAutoPaging(ctx, params); for iter.Next() { item := iter.Current() }.List notification channels.
GET /notification_channels
gopage, err := client.NotificationChannels.List(context.Background(), telnyx.NotificationChannelListParams{}) if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", 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)
gonotificationChannel, err := client.NotificationChannels.New(context.Background(), telnyx.NotificationChannelNewParams{ ChannelTypeID: "550e8400-e29b-41d4-a716-446655440000", ChannelDestination: "https://example.com/webhooks", }) if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", 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}
gonotificationChannel, err := client.NotificationChannels.Get(context.Background(), "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e") if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", 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)
gonotificationChannel, err := client.NotificationChannels.Update( context.Background(), "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e", telnyx.NotificationChannelUpdateParams{ NotificationChannel: telnyx.NotificationChannelParam{}, }, ) if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", 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}
gonotificationChannel, err := client.NotificationChannels.Delete(context.Background(), "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e") if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", 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
gopage, err := client.NotificationEventConditions.List(context.Background(), telnyx.NotificationEventConditionListParams{}) if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", 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
gopage, err := client.NotificationEvents.List(context.Background(), telnyx.NotificationEventListParams{}) if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", 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
gopage, err := client.NotificationProfiles.List(context.Background(), telnyx.NotificationProfileListParams{}) if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", 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)
gonotificationProfile, err := client.NotificationProfiles.New(context.Background(), telnyx.NotificationProfileNewParams{ Name: "My Notification Profile", }) if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", notificationProfile.Data)
Returns: created_at (date-time), id (string), name (string), updated_at (date-time)
Get a notification profile.
GET /notification_profiles/{id}
gonotificationProfile, err := client.NotificationProfiles.Get(context.Background(), "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e") if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", 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)
gonotificationProfile, err := client.NotificationProfiles.Update( context.Background(), "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e", telnyx.NotificationProfileUpdateParams{ NotificationProfile: telnyx.NotificationProfileParam{}, }, ) if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", notificationProfile.Data)
Returns: created_at (date-time), id (string), name (string), updated_at (date-time)
Delete a notification profile.
DELETE /notification_profiles/{id}
gonotificationProfile, err := client.NotificationProfiles.Delete(context.Background(), "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e") if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", notificationProfile.Data)
Returns: created_at (date-time), id (string), name (string), updated_at (date-time)
List notification settings.
GET /notification_settings
gopage, err := client.NotificationSettings.List(context.Background(), telnyx.NotificationSettingListParams{}) if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", 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)
gonotificationSetting, err := client.NotificationSettings.New(context.Background(), telnyx.NotificationSettingNewParams{}) if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", 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}
gonotificationSetting, err := client.NotificationSettings.Get(context.Background(), "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e") if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", 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}
gonotificationSetting, err := client.NotificationSettings.Delete(context.Background(), "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e") if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", 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-03 | fail→pass | 16,580 | 6,041 | -64% | 1 | 1 | 0% | 3,435 | 4,902 | +43% | 0 | 0 | — |
case-04 | pass→pass | 12,579 | 12,963 | +3% | 1 | 1 | 0% | 3,297 | 6,320 | +92% | 0 | 0 | — |
case-01 | fail→pass | 16,904 | 9,266 | -45% | 1 | 1 | 0% | 3,654 | 5,819 | +59% | 0 | 0 | — |
case-02 | fail→pass | 11,199 | 6,081 | -46% | 1 | 1 | 0% | 2,476 | 5,012 | +102% | 0 | 0 | — |
case-05 | fail→pass | 9,098 | 5,221 | -43% | 1 | 1 | 0% | 2,212 | 5,022 | +127% | 0 | 0 | — |
case-06 | pass→pass | 6,994 | 4,607 | -34% | 1 | 1 | 0% | 1,509 | 4,727 | +213% | 0 | 0 | — |
case-07 | pass→pass | 9,146 | 2,627 | -71% | 1 | 1 | 0% | 1,760 | 4,237 | +141% | 0 | 0 | — |
case-08 | pass→pass | 5,580 | 2,387 | -57% | 1 | 1 | 0% | 1,214 | 4,251 | +250% | 0 | 0 | — |
case-09 | pass→pass | 7,828 | 3,014 | -61% | 1 | 1 | 0% | 1,628 | 4,339 | +167% | 0 | 0 | — |
case-10 | fail→pass | 5,122 | 1,929 | -62% | 1 | 1 | 0% | 946 | 4,003 | +323% | 0 | 0 | — |
case-11 | fail→pass | 6,676 | 2,331 | -65% | 1 | 1 | 0% | 1,361 | 4,156 | +205% | 0 | 0 | — |
case-12 | fail→pass | 7,853 | 2,654 | -66% | 1 | 1 | 0% | 1,664 | 4,249 | +155% | 0 | 0 | — |
case-13 | fail→pass | 6,270 | 2,710 | -57% | 1 | 1 | 0% | 1,373 | 4,244 | +209% | 0 | 0 | — |
case-14 | pass→pass | 9,078 | 3,173 | -65% | 1 | 1 | 0% | 1,711 | 4,343 | +154% | 0 | 0 | — |
case-15 | fail→pass | 7,347 | 7,704 | +5% | 1 | 1 | 0% | 1,382 | 5,410 | +291% | 0 | 0 | — |
case-16 | fail→pass | 10,394 | 4,029 | -61% | 1 | 1 | 0% | 2,020 | 4,569 | +126% | 0 | 0 | — |
case-17 | fail→pass | 10,700 | 3,734 | -65% | 1 | 1 | 0% | 2,250 | 4,505 | +100% | 0 | 0 | — |
case-18 | fail→pass | 7,981 | 2,938 | -63% | 1 | 1 | 0% | 1,577 | 4,215 | +167% | 0 | 0 | — |
case-19 | fail→pass | 7,605 | 2,774 | -64% | 1 | 1 | 0% | 1,440 | 4,214 | +193% | 0 | 0 | — |
case-20 | fail→pass | 7,924 | 2,624 | -67% | 1 | 1 | 0% | 1,566 | 4,186 | +167% | 0 | 0 | — |
case-21 | fail→pass | 8,647 | 4,610 | -47% | 1 | 1 | 0% | 1,659 | 4,415 | +166% | 0 | 0 | — |
case-22 | pass→pass | 13,450 | 2,798 | -79% | 1 | 1 | 0% | 2,277 | 4,126 | +81% | 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 +68 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.