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 Python SDK examples.
.claude/skills/team-telnyx-telnyx-account-notifications-python/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | 54% | 0% |
| case-02 | ✗→✓ | ▲ Improved | 51% | 0% |
| case-03 | ✗→✓ | ▲ Improved | 96% | 0% |
| case-04 | ✗→✓ | ▲ Improved | 123% | 0% |
| case-06 | ✗→✓ | ▲ Improved | 256% | 0% |
<!-- Auto-generated from Telnyx OpenAPI specs. Do not edit. -->
bashpip install telnyx
pythonimport os from telnyx import Telnyx client = Telnyx( api_key=os.environ.get("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:
pythonimport telnyx try: result = client.messages.send(to="+13125550001", from_="+13125550002", text="Hello") except telnyx.APIConnectionError: print("Network error — check connectivity and retry") except telnyx.RateLimitError: # 429: rate limited — wait and retry with exponential backoff import time time.sleep(1) # Check Retry-After header for actual delay except telnyx.APIStatusError as e: print(f"API error {e.status_code}: {e.message}") if e.status_code == 422: print("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 item in page_result: to iterate through all pages automatically.List notification channels.
GET /notification_channels
pythonpage = client.notification_channels.list() page = page.data[0] print(page.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)
pythonnotification_channel = client.notification_channels.create( channel_type_id="webhook", channel_destination="https://example.com/webhooks", ) print(notification_channel.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}
pythonnotification_channel = client.notification_channels.retrieve( "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e", ) print(notification_channel.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)
pythonnotification_channel = client.notification_channels.update( notification_channel_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e", ) print(notification_channel.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}
pythonnotification_channel = client.notification_channels.delete( "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e", ) print(notification_channel.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
pythonpage = client.notification_event_conditions.list() page = page.data[0] print(page.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
pythonpage = client.notification_events.list() page = page.data[0] print(page.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
pythonpage = client.notification_profiles.list() page = page.data[0] print(page.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)
pythonnotification_profile = client.notification_profiles.create( name="My Notification Profile", ) print(notification_profile.data)
Returns: created_at (date-time), id (string), name (string), updated_at (date-time)
Get a notification profile.
GET /notification_profiles/{id}
pythonnotification_profile = client.notification_profiles.retrieve( "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e", ) print(notification_profile.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)
pythonnotification_profile = client.notification_profiles.update( notification_profile_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e", ) print(notification_profile.data)
Returns: created_at (date-time), id (string), name (string), updated_at (date-time)
Delete a notification profile.
DELETE /notification_profiles/{id}
pythonnotification_profile = client.notification_profiles.delete( "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e", ) print(notification_profile.data)
Returns: created_at (date-time), id (string), name (string), updated_at (date-time)
List notification settings.
GET /notification_settings
pythonpage = client.notification_settings.list() page = page.data[0] print(page.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)
pythonnotification_setting = client.notification_settings.create() print(notification_setting.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}
pythonnotification_setting = client.notification_settings.retrieve( "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e", ) print(notification_setting.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}
pythonnotification_setting = client.notification_settings.delete( "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e", ) print(notification_setting.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 | 14,386 | 8,377 | -42% | 1 | 1 | 0% | 3,281 | 5,048 | +54% | 0 | 0 | — |
case-02 | fail→pass | 13,798 | 6,643 | -52% | 1 | 1 | 0% | 2,927 | 4,414 | +51% | 0 | 0 | — |
case-03 | fail→pass | 12,032 | 8,896 | -26% | 1 | 1 | 0% | 2,594 | 5,092 | +96% | 0 | 0 | — |
case-04 | fail→pass | 9,975 | 5,168 | -48% | 1 | 1 | 0% | 1,876 | 4,175 | +123% | 0 | 0 | — |
case-05 | pass→pass | 6,362 | 2,645 | -58% | 1 | 1 | 0% | 1,241 | 3,513 | +183% | 0 | 0 | — |
case-06 | fail→pass | 5,187 | 2,704 | -48% | 1 | 1 | 0% | 999 | 3,552 | +256% | 0 | 0 | — |
case-07 | fail→pass | 4,051 | 3,796 | -6% | 1 | 1 | 0% | 703 | 3,771 | +436% | 0 | 0 | — |
case-08 | fail→pass | 4,597 | 3,128 | -32% | 1 | 1 | 0% | 812 | 3,559 | +338% | 0 | 0 | — |
case-09 | fail→pass | 5,177 | 2,100 | -59% | 1 | 1 | 0% | 1,010 | 3,442 | +241% | 0 | 0 | — |
case-10 | fail→pass | 9,070 | 4,275 | -53% | 1 | 1 | 0% | 1,864 | 3,931 | +111% | 0 | 0 | — |
case-11 | fail→pass | 6,636 | 3,359 | -49% | 1 | 1 | 0% | 1,389 | 3,704 | +167% | 0 | 0 | — |
case-12 | fail→pass | 5,772 | 2,769 | -52% | 1 | 1 | 0% | 1,064 | 3,529 | +232% | 0 | 0 | — |
case-13 | fail→pass | 6,791 | 4,341 | -36% | 1 | 1 | 0% | 1,286 | 3,942 | +207% | 0 | 0 | — |
case-14 | fail→pass | 4,343 | 2,577 | -41% | 1 | 1 | 0% | 823 | 3,556 | +332% | 0 | 0 | — |
case-15 | fail→pass | 6,816 | 2,735 | -60% | 1 | 1 | 0% | 1,317 | 3,534 | +168% | 0 | 0 | — |
case-16 | pass→pass | 9,853 | 2,515 | -74% | 1 | 1 | 0% | 1,677 | 3,480 | +108% | 0 | 0 | — |
case-17 | fail→pass | 11,652 | 6,641 | -43% | 1 | 1 | 0% | 2,199 | 4,458 | +103% | 0 | 0 | — |
case-18 | fail→pass | 6,470 | 2,822 | -56% | 1 | 1 | 0% | 1,125 | 3,564 | +217% | 0 | 0 | — |
case-19 | fail→pass | 9,097 | 3,436 | -62% | 1 | 1 | 0% | 1,655 | 3,731 | +125% | 0 | 0 | — |
case-20 | pass→pass | 14,873 | 17,249 | +16% | 1 | 1 | 0% | 2,839 | 4,752 | +67% | 0 | 0 | — |
case-21 | pass→pass | 5,886 | 4,072 | -31% | 1 | 1 | 0% | 1,147 | 3,821 | +233% | 0 | 0 | — |
case-22 | pass→pass | 12,983 | 12,294 | -5% | 1 | 1 | 0% | 2,471 | 5,485 | +122% | 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.