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 REST API (curl) examples.
.claude/skills/team-telnyx-telnyx-account-notifications-curl/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | 51% | 0% |
| case-03 | ✗→✓ | ▲ Improved | 323% | 0% |
| case-08 | ✗→✓ | ▲ Improved | 279% | 0% |
| case-16 | ✗→✓ | ▲ Improved | 523% | 0% |
| case-17 | ✗→✓ | ▲ Improved | 148% | 0% |
<!-- Auto-generated from Telnyx OpenAPI specs. Do not edit. -->
text# curl is pre-installed on macOS, Linux, and Windows 10+
bashexport TELNYX_API_KEY="YOUR_API_KEY_HERE"
All examples below use $TELNYX_API_KEY for authentication.
All API calls can fail with network errors, rate limits (429), validation errors (422), or authentication errors (401). Always handle errors in production code:
bash# Check HTTP status code in response response=$(curl -s -w "\n%{http_code}" \ -X POST "https://api.telnyx.com/v2/messages" \ -H "Authorization: Bearer $TELNYX_API_KEY" \ -H "Content-Type: application/json" \ -d '{"to": "+13125550001", "from": "+13125550002", "text": "Hello"}') http_code=$(echo "$response" | tail -1) body=$(echo "$response" | sed '$d') case $http_code in 2*) echo "Success: $body" ;; 422) echo "Validation error — check required fields and formats" ;; 429) echo "Rate limited — retry after delay"; sleep 1 ;; 401) echo "Authentication failed — check TELNYX_API_KEY" ;; *) echo "Error $http_code: $body" ;; esac
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).
page[number] and page[size] query parameters to navigate pages. Check meta.total_pages in the response.List notification channels.
GET /notification_channels
bashcurl -H "Authorization: Bearer $TELNYX_API_KEY" "https://api.telnyx.com/v2/notification_channels"
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)
bashcurl \ -X POST \ -H "Authorization: Bearer $TELNYX_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "channel_type_id": "webhook", "channel_destination": "https://example.com/webhooks" }' \ "https://api.telnyx.com/v2/notification_channels"
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}
bashcurl -H "Authorization: Bearer $TELNYX_API_KEY" "https://api.telnyx.com/v2/notification_channels/550e8400-e29b-41d4-a716-446655440000"
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)
bashcurl \ -X PATCH \ -H "Authorization: Bearer $TELNYX_API_KEY" \ -H "Content-Type: application/json" \ "https://api.telnyx.com/v2/notification_channels/550e8400-e29b-41d4-a716-446655440000"
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}
bashcurl \ -X DELETE \ -H "Authorization: Bearer $TELNYX_API_KEY" \ "https://api.telnyx.com/v2/notification_channels/550e8400-e29b-41d4-a716-446655440000"
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
bashcurl -H "Authorization: Bearer $TELNYX_API_KEY" "https://api.telnyx.com/v2/notification_event_conditions"
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
bashcurl -H "Authorization: Bearer $TELNYX_API_KEY" "https://api.telnyx.com/v2/notification_events"
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
bashcurl -H "Authorization: Bearer $TELNYX_API_KEY" "https://api.telnyx.com/v2/notification_profiles"
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)
bashcurl \ -X POST \ -H "Authorization: Bearer $TELNYX_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "name": "My Notification Profile" }' \ "https://api.telnyx.com/v2/notification_profiles"
Returns: created_at (date-time), id (string), name (string), updated_at (date-time)
Get a notification profile.
GET /notification_profiles/{id}
bashcurl -H "Authorization: Bearer $TELNYX_API_KEY" "https://api.telnyx.com/v2/notification_profiles/550e8400-e29b-41d4-a716-446655440000"
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)
bashcurl \ -X PATCH \ -H "Authorization: Bearer $TELNYX_API_KEY" \ -H "Content-Type: application/json" \ "https://api.telnyx.com/v2/notification_profiles/550e8400-e29b-41d4-a716-446655440000"
Returns: created_at (date-time), id (string), name (string), updated_at (date-time)
Delete a notification profile.
DELETE /notification_profiles/{id}
bashcurl \ -X DELETE \ -H "Authorization: Bearer $TELNYX_API_KEY" \ "https://api.telnyx.com/v2/notification_profiles/550e8400-e29b-41d4-a716-446655440000"
Returns: created_at (date-time), id (string), name (string), updated_at (date-time)
List notification settings.
GET /notification_settings
bashcurl -H "Authorization: Bearer $TELNYX_API_KEY" "https://api.telnyx.com/v2/notification_settings"
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)
bashcurl \ -X POST \ -H "Authorization: Bearer $TELNYX_API_KEY" \ -H "Content-Type: application/json" \ "https://api.telnyx.com/v2/notification_settings"
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}
bashcurl -H "Authorization: Bearer $TELNYX_API_KEY" "https://api.telnyx.com/v2/notification_settings/550e8400-e29b-41d4-a716-446655440000"
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}
bashcurl \ -X DELETE \ -H "Authorization: Bearer $TELNYX_API_KEY" \ "https://api.telnyx.com/v2/notification_settings/550e8400-e29b-41d4-a716-446655440000"
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 | 15,798 | 6,435 | -59% | 1 | 1 | 0% | 3,151 | 4,768 | +51% | 0 | 0 | — |
case-02 | pass→pass | 3,380 | 1,906 | -44% | 1 | 1 | 0% | 590 | 3,820 | +547% | 0 | 0 | — |
case-03 | fail→pass | 4,875 | 2,730 | -44% | 1 | 1 | 0% | 953 | 4,035 | +323% | 0 | 0 | — |
case-04 | pass→pass | 3,585 | 2,067 | -42% | 1 | 1 | 0% | 670 | 3,911 | +484% | 0 | 0 | — |
case-05 | pass→pass | 7,343 | 2,523 | -66% | 1 | 1 | 0% | 1,499 | 4,009 | +167% | 0 | 0 | — |
case-06 | pass→pass | 3,631 | 1,870 | -48% | 1 | 1 | 0% | 712 | 3,837 | +439% | 0 | 0 | — |
case-07 | pass→pass | 5,632 | 2,012 | -64% | 1 | 1 | 0% | 949 | 3,852 | +306% | 0 | 0 | — |
case-08 | fail→pass | 5,650 | 2,472 | -56% | 1 | 1 | 0% | 1,026 | 3,885 | +279% | 0 | 0 | — |
case-09 | pass→pass | 6,988 | 2,708 | -61% | 1 | 1 | 0% | 1,365 | 3,937 | +188% | 0 | 0 | — |
case-10 | pass→pass | 3,278 | 1,680 | -49% | 1 | 1 | 0% | 577 | 3,776 | +554% | 0 | 0 | — |
case-11 | pass→pass | 5,479 | 2,678 | -51% | 1 | 1 | 0% | 1,083 | 4,016 | +271% | 0 | 0 | — |
case-12 | pass→pass | 3,666 | 2,711 | -26% | 1 | 1 | 0% | 719 | 4,006 | +457% | 0 | 0 | — |
case-13 | pass→pass | 3,690 | 2,021 | -45% | 1 | 1 | 0% | 730 | 3,882 | +432% | 0 | 0 | — |
case-14 | pass→pass | 3,975 | 1,788 | -55% | 1 | 1 | 0% | 716 | 3,777 | +428% | 0 | 0 | — |
case-15 | pass→pass | 6,063 | 3,359 | -45% | 1 | 1 | 0% | 1,184 | 4,054 | +242% | 0 | 0 | — |
case-16 | fail→pass | 3,312 | 2,017 | -39% | 1 | 1 | 0% | 620 | 3,861 | +523% | 0 | 0 | — |
case-17 | fail→pass | 8,394 | 2,330 | -72% | 1 | 1 | 0% | 1,574 | 3,903 | +148% | 0 | 0 | — |
case-18 | fail→pass | 6,890 | 1,690 | -75% | 1 | 1 | 0% | 1,219 | 3,768 | +209% | 0 | 0 | — |
case-19 | pass→fail | 6,345 | 3,261 | -49% | 1 | 1 | 0% | 1,132 | 4,006 | +254% | 0 | 0 | — |
case-20 | pass→pass | 3,834 | 2,600 | -32% | 1 | 1 | 0% | 751 | 3,972 | +429% | 0 | 0 | — |
case-21 | pass→pass | 5,769 | 5,835 | +1% | 1 | 1 | 0% | 1,100 | 4,519 | +311% | 0 | 0 | — |
case-22 | pass→pass | 4,217 | 3,143 | -25% | 1 | 1 | 0% | 813 | 4,008 | +393% | 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 +23 percentage points is the difference between those two pass rates over the 22 comparable cases. 1 case got worse with the skill loaded, and it is included in that figure.
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.