Skip to main content
telnyx-numbers-config-ruby Configure phone number settings including caller ID, call forwarding, messaging enablement, and connection assignments. This skill provides Ruby SDK examples.
Ir a la instalación Skills Marketplace Descubre y explora habilidades de IA creadas por la comunidad.
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Copiar promptMostrar detalles del prompt Un comando directo omite el prompt de revisión. Revisa el origen antes de ejecutarlo.
npx skills add https://github.com/team-telnyx/telnyx-toolkit --skill telnyx-numbers-config-rubyEl comando permanece en una sola línea. Desplázate horizontalmente para revisarlo antes de copiarlo.
¿Prefieres una copia local? Descarga los archivos que SkillsMP tiene disponibles ahora.
Descargar Zip Descargando... SOC
Basado en la clasificación ocupacional SOC
name telnyx-numbers-config-ruby description Configure phone number settings including caller ID, call forwarding, messaging enablement, and connection assignments. This skill provides Ruby SDK examples. metadata {"author":"telnyx","product":"numbers-config","language":"ruby","generated_by":"telnyx-ext-skills-generator"}
Telnyx Numbers Config - 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.
Lists the phone number blocks jobs
GET /phone_number_blocks/jobs
page = client.phone_number_blocks.jobs.list
puts(page)
Retrieves a phone number blocks job
GET /phone_number_blocks/jobs/{id}
job = client.phone_number_blocks.jobs.retrieve("id" )
puts(job)
Deletes all numbers associated with a phone number block
Creates a new background job to delete all the phone numbers associated with the given block.
POST /phone_number_blocks/jobs/delete_phone_number_block — Required:
phone_number_block_id
response = client.phone_number_blocks.jobs.delete_phone_number_block(
phone_number_block_id: "f3946371-7199-4261-9c3d-81a0d7935146"
)
puts(response)
List phone numbers page = client.phone_numbers.list
puts(page)
Retrieve a phone number phone_number = client.phone_numbers.retrieve("1293384261075731499" )
puts(phone_number)
Update a phone number PATCH /phone_numbers/{id}
phone_number = client.phone_numbers.update("1293384261075731499" )
puts(phone_number)
Delete a phone number DELETE /phone_numbers/{id}
phone_number = client.phone_numbers.delete("1293384261075731499" )
puts(phone_number)
Change the bundle status for a phone number (set to being in a bundle or remove from a bundle) PATCH /phone_numbers/{id}/actions/bundle_status_change — Required: bundle_id
response = client.phone_numbers.actions.change_bundle_status(
"1293384261075731499" ,
bundle_id: "5194d8fc-87e6-4188-baa9-1c434bbe861b"
)
puts(response)
Enable emergency for a phone number POST /phone_numbers/{id}/actions/enable_emergency — Required: emergency_enabled, emergency_address_id
response = client.phone_numbers.actions.enable_emergency(
"1293384261075731499" ,
emergency_address_id: "53829456729313" ,
emergency_enabled: true
)
puts(response)
Retrieve a phone number with voice settings GET /phone_numbers/{id}/voice
voice = client.phone_numbers.voice.retrieve("1293384261075731499" )
puts(voice)
Update a phone number with voice settings PATCH /phone_numbers/{id}/voice
voice = client.phone_numbers.voice.update("1293384261075731499" )
puts(voice)
Verify ownership of phone numbers Verifies ownership of the provided phone numbers and returns a mapping of numbers to their IDs, plus a list of numbers not found in the account.
POST /phone_numbers/actions/verify_ownership — Required: phone_numbers
response = client.phone_numbers.actions.verify_ownership(phone_numbers: ["+15551234567" ])
puts(response)
List CSV downloads GET /phone_numbers/csv_downloads
page = client.phone_numbers.csv_downloads.list
puts(page)
Create a CSV download POST /phone_numbers/csv_downloads
csv_download = client.phone_numbers.csv_downloads.create
puts(csv_download)
Retrieve a CSV download GET /phone_numbers/csv_downloads/{id}
csv_download = client.phone_numbers.csv_downloads.retrieve("id" )
puts(csv_download)
Lists the phone numbers jobs page = client.phone_numbers.jobs.list
puts(page)
Retrieve a phone numbers job GET /phone_numbers/jobs/{id}
job = client.phone_numbers.jobs.retrieve("id" )
puts(job)
Delete a batch of numbers Creates a new background job to delete a batch of numbers.
POST /phone_numbers/jobs/delete_phone_numbers — Required: phone_numbers
response = client.phone_numbers.jobs.delete_batch(phone_numbers: ["+19705555098" , "+19715555098" , "32873127836" ])
puts(response)
Update the emergency settings from a batch of numbers Creates a background job to update the emergency settings of a collection of phone numbers.
POST /phone_numbers/jobs/update_emergency_settings — Required: emergency_enabled, phone_numbers
response = client.phone_numbers.jobs.update_emergency_settings_batch(
emergency_enabled: true ,
phone_numbers: ["+19705555098" , "+19715555098" , "32873127836" ]
)
puts(response)
Update a batch of numbers Creates a new background job to update a batch of numbers.
POST /phone_numbers/jobs/update_phone_numbers — Required: phone_numbers
response = client.phone_numbers.jobs.update_batch(phone_numbers: ["1583466971586889004" , "+13127367254" ])
puts(response)
Retrieve regulatory requirements for a list of phone numbers GET /phone_numbers/regulatory_requirements
phone_numbers_regulatory_requirement = client.phone_numbers_regulatory_requirements.retrieve
puts(phone_numbers_regulatory_requirement)
Slim List phone numbers List phone numbers, This endpoint is a lighter version of the /phone_numbers endpoint having higher performance and rate limit.
page = client.phone_numbers.slim_list
puts(page)
List phone numbers with voice settings page = client.phone_numbers.voice.list
puts(page)
List Mobile Phone Numbers GET /v2/mobile_phone_numbers
page = client.mobile_phone_numbers.list
puts(page)
Retrieve a Mobile Phone Number GET /v2/mobile_phone_numbers/{id}
mobile_phone_number = client.mobile_phone_numbers.retrieve("id" )
puts(mobile_phone_number)
Update a Mobile Phone Number PATCH /v2/mobile_phone_numbers/{id}
mobile_phone_number = client.mobile_phone_numbers.update("id" )
puts(mobile_phone_number)
Más de este repositorio 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.