Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Configure voicemail, voice channels, and emergency (E911) services for your phone numbers. This skill provides REST API (curl) examples.
.claude/skills/team-telnyx-telnyx-numbers-services-curl/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | 437% | 0% |
| case-02 | ✗→✓ | ▲ Improved | 298% | 0% |
| case-04 | ✗→✓ | ▲ Improved | 485% | 0% |
| case-11 | ✗→✓ | ▲ Improved | 481% | 0% |
| case-12 | ✗→✓ | ▲ Improved | 244% | 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.Returns the non-US voice channels for your account. voice channels allow you to use Channel Billing for calls to your Telnyx phone numbers. Please check the Telnyx Support Articles section for full information and examples of how to utilize Channel Billing.
GET /channel_zones
bashcurl -H "Authorization: Bearer $TELNYX_API_KEY" "https://api.telnyx.com/v2/channel_zones"
Returns: channels (int64), countries (arraystring]), created_at (string), id (string), name (string), record_type (enum: channel_zone), updated_at (string)
Update the number of Voice Channels for the Non-US Zones. This allows your account to handle multiple simultaneous inbound calls to Non-US numbers. Use this endpoint to increase or decrease your capacity based on expected call volume.
PUT /channel_zones/{channel_zone_id} — Required: channels
bashcurl \ -X PUT \ -H "Authorization: Bearer $TELNYX_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "channels": 0 }' \ "https://api.telnyx.com/v2/channel_zones/{channel_zone_id}"
Returns: channels (int64), countries (arraystring]), created_at (string), id (string), name (string), record_type (enum: channel_zone), updated_at (string)
Returns the dynamic emergency addresses according to filters
GET /dynamic_emergency_addresses
bashcurl -H "Authorization: Bearer $TELNYX_API_KEY" "https://api.telnyx.com/v2/dynamic_emergency_addresses"
Returns: administrative_area (string), country_code (enum: US, CA, PR), created_at (string), extended_address (string), house_number (string), house_suffix (string), id (string), locality (string), postal_code (string), record_type (string), sip_geolocation_id (string), status (enum: pending, activated, rejected), street_name (string), street_post_directional (string), street_pre_directional (string), street_suffix (string), updated_at (string)
Creates a dynamic emergency address.
POST /dynamic_emergency_addresses — Required: house_number, street_name, locality, administrative_area, postal_code, country_code
Optional: created_at (string), extended_address (string), house_suffix (string), id (string), record_type (string), sip_geolocation_id (string), status (enum: pending, activated, rejected), street_post_directional (string), street_pre_directional (string), street_suffix (string), updated_at (string)
bashcurl \ -X POST \ -H "Authorization: Bearer $TELNYX_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "house_number": "600", "street_name": "Congress", "locality": "Austin", "administrative_area": "TX", "postal_code": "78701", "country_code": "US" }' \ "https://api.telnyx.com/v2/dynamic_emergency_addresses"
Returns: administrative_area (string), country_code (enum: US, CA, PR), created_at (string), extended_address (string), house_number (string), house_suffix (string), id (string), locality (string), postal_code (string), record_type (string), sip_geolocation_id (string), status (enum: pending, activated, rejected), street_name (string), street_post_directional (string), street_pre_directional (string), street_suffix (string), updated_at (string)
Returns the dynamic emergency address based on the ID provided
GET /dynamic_emergency_addresses/{id}
bashcurl -H "Authorization: Bearer $TELNYX_API_KEY" "https://api.telnyx.com/v2/dynamic_emergency_addresses/550e8400-e29b-41d4-a716-446655440000"
Returns: administrative_area (string), country_code (enum: US, CA, PR), created_at (string), extended_address (string), house_number (string), house_suffix (string), id (string), locality (string), postal_code (string), record_type (string), sip_geolocation_id (string), status (enum: pending, activated, rejected), street_name (string), street_post_directional (string), street_pre_directional (string), street_suffix (string), updated_at (string)
Deletes the dynamic emergency address based on the ID provided
DELETE /dynamic_emergency_addresses/{id}
bashcurl \ -X DELETE \ -H "Authorization: Bearer $TELNYX_API_KEY" \ "https://api.telnyx.com/v2/dynamic_emergency_addresses/550e8400-e29b-41d4-a716-446655440000"
Returns: administrative_area (string), country_code (enum: US, CA, PR), created_at (string), extended_address (string), house_number (string), house_suffix (string), id (string), locality (string), postal_code (string), record_type (string), sip_geolocation_id (string), status (enum: pending, activated, rejected), street_name (string), street_post_directional (string), street_pre_directional (string), street_suffix (string), updated_at (string)
Returns the dynamic emergency endpoints according to filters
GET /dynamic_emergency_endpoints
bashcurl -H "Authorization: Bearer $TELNYX_API_KEY" "https://api.telnyx.com/v2/dynamic_emergency_endpoints"
Returns: callback_number (string), caller_name (string), created_at (string), dynamic_emergency_address_id (string), id (string), record_type (string), sip_from_id (string), status (enum: pending, activated, rejected), updated_at (string)
Creates a dynamic emergency endpoints.
POST /dynamic_emergency_endpoints — Required: dynamic_emergency_address_id, callback_number, caller_name
Optional: created_at (string), id (string), record_type (string), sip_from_id (string), status (enum: pending, activated, rejected), updated_at (string)
bashcurl \ -X POST \ -H "Authorization: Bearer $TELNYX_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "dynamic_emergency_address_id": "0ccc7b54-4df3-4bca-a65a-3da1ecc777f0", "callback_number": "+13125550000", "caller_name": "Jane Doe Desk Phone" }' \ "https://api.telnyx.com/v2/dynamic_emergency_endpoints"
Returns: callback_number (string), caller_name (string), created_at (string), dynamic_emergency_address_id (string), id (string), record_type (string), sip_from_id (string), status (enum: pending, activated, rejected), updated_at (string)
Returns the dynamic emergency endpoint based on the ID provided
GET /dynamic_emergency_endpoints/{id}
bashcurl -H "Authorization: Bearer $TELNYX_API_KEY" "https://api.telnyx.com/v2/dynamic_emergency_endpoints/550e8400-e29b-41d4-a716-446655440000"
Returns: callback_number (string), caller_name (string), created_at (string), dynamic_emergency_address_id (string), id (string), record_type (string), sip_from_id (string), status (enum: pending, activated, rejected), updated_at (string)
Deletes the dynamic emergency endpoint based on the ID provided
DELETE /dynamic_emergency_endpoints/{id}
bashcurl \ -X DELETE \ -H "Authorization: Bearer $TELNYX_API_KEY" \ "https://api.telnyx.com/v2/dynamic_emergency_endpoints/550e8400-e29b-41d4-a716-446655440000"
Returns: callback_number (string), caller_name (string), created_at (string), dynamic_emergency_address_id (string), id (string), record_type (string), sip_from_id (string), status (enum: pending, activated, rejected), updated_at (string)
Returns the US Zone voice channels for your account. voice channels allows you to use Channel Billing for calls to your Telnyx phone numbers. Please check the Telnyx Support Articles section for full information and examples of how to utilize Channel Billing.
GET /inbound_channels
bashcurl -H "Authorization: Bearer $TELNYX_API_KEY" "https://api.telnyx.com/v2/inbound_channels"
Returns: channels (integer), record_type (string)
Update the number of Voice Channels for the US Zone. This allows your account to handle multiple simultaneous inbound calls to US numbers. Use this endpoint to increase or decrease your capacity based on expected call volume.
PATCH /inbound_channels — Required: channels
bashcurl \ -X PATCH \ -H "Authorization: Bearer $TELNYX_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "channels": 7 }' \ "https://api.telnyx.com/v2/inbound_channels"
Returns: channels (integer), record_type (string)
Retrieve a list of all phone numbers using Channel Billing, grouped by Zone.
GET /list
bashcurl -H "Authorization: Bearer $TELNYX_API_KEY" "https://api.telnyx.com/v2/list"
Returns: number_of_channels (integer), numbers (arrayobject]), zone_id (string), zone_name (string)
Retrieve a list of phone numbers using Channel Billing for a specific Zone.
GET /list/{channel_zone_id}
bashcurl -H "Authorization: Bearer $TELNYX_API_KEY" "https://api.telnyx.com/v2/list/{channel_zone_id}"
Returns: number_of_channels (integer), numbers (arrayobject]), zone_id (string), zone_name (string)
Returns the voicemail settings for a phone number
GET /phone_numbers/{phone_number_id}/voicemail
bashcurl -H "Authorization: Bearer $TELNYX_API_KEY" "https://api.telnyx.com/v2/phone_numbers/{phone_number_id}/voicemail"
Returns: enabled (boolean), pin (string)
Create voicemail settings for a phone number
POST /phone_numbers/{phone_number_id}/voicemail
Optional: enabled (boolean), pin (string)
bashcurl \ -X POST \ -H "Authorization: Bearer $TELNYX_API_KEY" \ -H "Content-Type: application/json" \ "https://api.telnyx.com/v2/phone_numbers/{phone_number_id}/voicemail"
Returns: enabled (boolean), pin (string)
Update voicemail settings for a phone number
PATCH /phone_numbers/{phone_number_id}/voicemail
Optional: enabled (boolean), pin (string)
bashcurl \ -X PATCH \ -H "Authorization: Bearer $TELNYX_API_KEY" \ -H "Content-Type: application/json" \ "https://api.telnyx.com/v2/phone_numbers/{phone_number_id}/voicemail"
Returns: enabled (boolean), pin (string)
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | fail→pass | 4,396 | 4,359 | -1% | 1 | 1 | 0% | 807 | 4,334 | +437% | 0 | 0 | — |
case-02 | fail→pass | 5,591 | 3,322 | -41% | 1 | 1 | 0% | 1,138 | 4,532 | +298% | 0 | 0 | — |
case-03 | pass→pass | 6,339 | 2,456 | -61% | 1 | 1 | 0% | 1,164 | 4,185 | +260% | 0 | 0 | — |
case-04 | fail→pass | 3,945 | 2,922 | -26% | 1 | 1 | 0% | 741 | 4,337 | +485% | 0 | 0 | — |
case-05 | pass→pass | 2,985 | 1,915 | -36% | 1 | 1 | 0% | 557 | 4,101 | +636% | 0 | 0 | — |
case-06 | pass→pass | 10,426 | 4,952 | -53% | 1 | 1 | 0% | 2,063 | 4,757 | +131% | 0 | 0 | — |
case-07 | pass→pass | 7,246 | 2,244 | -69% | 1 | 1 | 0% | 1,348 | 4,284 | +218% | 0 | 0 | — |
case-08 | pass→pass | 4,548 | 2,367 | -48% | 1 | 1 | 0% | 875 | 4,268 | +388% | 0 | 0 | — |
case-09 | pass→pass | 7,682 | 3,938 | -49% | 1 | 1 | 0% | 1,460 | 4,584 | +214% | 0 | 0 | — |
case-10 | pass→pass | 6,289 | 2,490 | -60% | 1 | 1 | 0% | 1,258 | 4,378 | +248% | 0 | 0 | — |
case-11 | fail→pass | 4,416 | 1,837 | -58% | 1 | 1 | 0% | 723 | 4,200 | +481% | 0 | 0 | — |
case-12 | fail→pass | 7,188 | 2,176 | -70% | 1 | 1 | 0% | 1,243 | 4,277 | +244% | 0 | 0 | — |
case-13 | fail→pass | 8,199 | 1,982 | -76% | 1 | 1 | 0% | 1,447 | 4,166 | +188% | 0 | 0 | — |
case-14 | fail→pass | 5,911 | 2,543 | -57% | 1 | 1 | 0% | 1,079 | 4,291 | +298% | 0 | 0 | — |
case-15 | fail→pass | 7,451 | 2,155 | -71% | 1 | 1 | 0% | 1,290 | 4,153 | +222% | 0 | 0 | — |
case-16 | fail→pass | 4,384 | 1,983 | -55% | 1 | 1 | 0% | 715 | 4,166 | +483% | 0 | 0 | — |
case-17 | pass→pass | 6,857 | 2,894 | -58% | 1 | 1 | 0% | 1,222 | 4,347 | +256% | 0 | 0 | — |
case-18 | pass→pass | 16,061 | 9,875 | -39% | 1 | 1 | 0% | 2,928 | 6,040 | +106% | 0 | 0 | — |
case-19 | pass→pass | 11,287 | 5,446 | -52% | 1 | 1 | 0% | 2,116 | 4,867 | +130% | 0 | 0 | — |
case-20 | fail→pass | 10,265 | 2,149 | -79% | 1 | 1 | 0% | 1,772 | 4,190 | +136% | 0 | 0 | — |
case-21 | pass→pass | 3,808 | 3,108 | -18% | 1 | 1 | 0% | 775 | 4,494 | +480% | 0 | 0 | — |
case-22 | pass→pass | 4,922 | 6,116 | +24% | 1 | 1 | 0% | 975 | 5,124 | +426% | 0 | 0 | — |
case-23 | pass→pass | 3,784 | 4,317 | +14% | 1 | 1 | 0% | 676 | 4,614 | +583% | 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. 23 cases were attempted. The headline lift of +43 percentage points is the difference between those two pass rates over the 23 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.