Skip to main content
telnyx-numbers-services-ruby Configure voicemail, voice channels, and emergency (E911) services for your phone numbers. This skill provides Ruby SDK examples.
Jump to install Skills Marketplace Discover and explore AI skills built by the community.
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Copy promptShow prompt details A direct command skips the review prompt. Inspect the source before running it.
npx skills add https://github.com/team-telnyx/telnyx-toolkit --skill telnyx-numbers-services-rubyThe command stays on one line. Scroll horizontally to inspect it before copying.
Prefer a local copy? Download the files currently available to SkillsMP.
Download Zip Downloading... SOC
Based on SOC occupation classification
More from this repository Complete Telnyx toolkit — ready-to-use tools (STT, TTS, RAG, Networking, 10DLC) plus SDK documentation for JavaScript, Python, Go, Java, and Ruby.
Automated Telnyx bot account signup via challenge-response
Track agent activities using the Telnyx AI Missions API. Use this skill when executing multi-step tasks that should be logged and tracked. Supports creating voice/SMS agents, scheduling calls, and retrieving conversation insights. Use when tasks involve calling people, sending SMS, or any substantial tracked work.
name telnyx-numbers-services-ruby description Configure voicemail, voice channels, and emergency (E911) services for your phone numbers. This skill provides Ruby SDK examples. metadata {"author":"telnyx","product":"numbers-services","language":"ruby","generated_by":"telnyx-ext-skills-generator"}
Telnyx Numbers Services - Ruby
Installation
gem install telnyx
Setup
require "telnyx"
client = Telnyx::Client .new(
api_key: ENV ["TELNYX_API_KEY" ],
)
All examples below assume client is already initialized as shown above.
List dynamic emergency addresses
Returns the dynamic emergency addresses according to filters
GET /dynamic_emergency_addresses
page = client.dynamic_emergency_addresses.list
puts(page)
Create a dynamic emergency address.
Creates a dynamic emergency address.
POST /dynamic_emergency_addresses — Required: house_number, street_name, locality, administrative_area, postal_code, country_code
dynamic_emergency_address = client.dynamic_emergency_addresses.create(
administrative_area: "TX" ,
country_code: :US ,
house_number: "600" ,
locality: "Austin" ,
postal_code: "78701" ,
street_name: "Congress"
)
puts(dynamic_emergency_address)
Get a dynamic emergency address Returns the dynamic emergency address based on the ID provided
GET /dynamic_emergency_addresses/{id}
dynamic_emergency_address = client.dynamic_emergency_addresses.retrieve("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e" )
puts(dynamic_emergency_address)
Delete a dynamic emergency address Deletes the dynamic emergency address based on the ID provided
DELETE /dynamic_emergency_addresses/{id}
dynamic_emergency_address = client.dynamic_emergency_addresses.delete("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e" )
puts(dynamic_emergency_address)
List dynamic emergency endpoints Returns the dynamic emergency endpoints according to filters
GET /dynamic_emergency_endpoints
page = client.dynamic_emergency_endpoints.list
puts(page)
Create a dynamic emergency endpoint. Creates a dynamic emergency endpoints.
POST /dynamic_emergency_endpoints — Required: dynamic_emergency_address_id, callback_number, caller_name
dynamic_emergency_endpoint = client.dynamic_emergency_endpoints.create(
callback_number: "+13125550000" ,
caller_name: "Jane Doe Desk Phone" ,
dynamic_emergency_address_id: "0ccc7b54-4df3-4bca-a65a-3da1ecc777f0"
)
puts(dynamic_emergency_endpoint)
Get a dynamic emergency endpoint Returns the dynamic emergency endpoint based on the ID provided
GET /dynamic_emergency_endpoints/{id}
dynamic_emergency_endpoint = client.dynamic_emergency_endpoints.retrieve("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e" )
puts(dynamic_emergency_endpoint)
Delete a dynamic emergency endpoint Deletes the dynamic emergency endpoint based on the ID provided
DELETE /dynamic_emergency_endpoints/{id}
dynamic_emergency_endpoint = client.dynamic_emergency_endpoints.delete("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e" )
puts(dynamic_emergency_endpoint)
List your voice channels for non-US zones Returns the non-US voice channels for your account.
page = client.channel_zones.list
puts(page)
Update voice channels for non-US Zones Update the number of Voice Channels for the Non-US Zones.
PUT /channel_zones/{channel_zone_id} — Required: channels
channel_zone = client.channel_zones.update("channel_zone_id" , channels: 0 )
puts(channel_zone)
List your voice channels for US Zone Returns the US Zone voice channels for your account.
inbound_channels = client.inbound_channels.list
puts(inbound_channels)
Update voice channels for US Zone Update the number of Voice Channels for the US Zone.
PATCH /inbound_channels — Required: channels
inbound_channel = client.inbound_channels.update(channels: 7 )
puts(inbound_channel)
List All Numbers using Channel Billing Retrieve a list of all phone numbers using Channel Billing, grouped by Zone.
response = client.list.retrieve_all
puts(response)
List Numbers using Channel Billing for a specific Zone Retrieve a list of phone numbers using Channel Billing for a specific Zone.
GET /list/{channel_zone_id}
response = client.list.retrieve_by_zone("channel_zone_id" )
puts(response)
Get voicemail Returns the voicemail settings for a phone number
GET /phone_numbers/{phone_number_id}/voicemail
voicemail = client.phone_numbers.voicemail.retrieve("123455678900" )
puts(voicemail)
Create voicemail Create voicemail settings for a phone number
POST /phone_numbers/{phone_number_id}/voicemail
voicemail = client.phone_numbers.voicemail.create("123455678900" )
puts(voicemail)
Update voicemail Update voicemail settings for a phone number
PATCH /phone_numbers/{phone_number_id}/voicemail
voicemail = client.phone_numbers.voicemail.update("123455678900" )
puts(voicemail)