Skip to main content
telnyx-messaging-ruby Send and receive SMS/MMS messages, manage messaging-enabled phone numbers, and handle opt-outs. Use when building messaging applications, implementing 2FA, or sending notifications. 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-messaging-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... 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.
Ocupaciones relacionadas
SOC
Basado en la clasificación ocupacional SOC
name telnyx-messaging-ruby description Send and receive SMS/MMS messages, manage messaging-enabled phone numbers, and handle opt-outs. Use when building messaging applications, implementing 2FA, or sending notifications. This skill provides Ruby SDK examples. metadata {"author":"telnyx","product":"messaging","language":"ruby","generated_by":"telnyx-ext-skills-generator"}
Telnyx Messaging - 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.
Send a message
Send a message with a Phone Number, Alphanumeric Sender ID, Short Code or Number Pool.
POST /messages — Required: to
response = client.messages.send_(to: "+18445550001" )
puts(response)
Retrieve a message
Note: This API endpoint can only retrieve messages that are no older than 10 days since their creation.
GET /messages/{id}
message = client.messages.retrieve( )
puts(message)
"182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
Cancel a scheduled message Cancel a scheduled message that has not yet been sent.
response = client.messages.cancel_scheduled("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e" )
puts(response)
Send a Whatsapp message POST /messages/whatsapp — Required: from, to, whatsapp_message
response = client.messages.send_whatsapp(from: "+13125551234" , to: "+13125551234" , whatsapp_message: {})
puts(response)
Send a group MMS message POST /messages/group_mms — Required: from, to
response = client.messages.send_group_mms(from: "+13125551234" , to: ["+18655551234" , "+14155551234" ])
puts(response)
Send a long code message POST /messages/long_code — Required: from, to
response = client.messages.send_long_code(from: "+18445550001" , to: "+13125550002" )
puts(response)
Send a message using number pool POST /messages/number_pool — Required: to, messaging_profile_id
response = client.messages.send_number_pool(
messaging_profile_id: "abc85f64-5717-4562-b3fc-2c9600000000" ,
to: "+13125550002"
)
puts(response)
Schedule a message Schedule a message with a Phone Number, Alphanumeric Sender ID, Short Code or Number Pool.
POST /messages/schedule — Required: to
response = client.messages.schedule(to: "+18445550001" )
puts(response)
Send a short code message POST /messages/short_code — Required: from, to
response = client.messages.send_short_code(from: "+18445550001" , to: "+18445550001" )
puts(response)
List opt-outs Retrieve a list of opt-out blocks.
page = client.messaging_optouts.list
puts(page)
Retrieve a phone number with messaging settings GET /phone_numbers/{id}/messaging
messaging = client.phone_numbers.messaging.retrieve("id" )
puts(messaging)
Update the messaging profile and/or messaging product of a phone number PATCH /phone_numbers/{id}/messaging
messaging = client.phone_numbers.messaging.update("id" )
puts(messaging)
List phone numbers with messaging settings GET /phone_numbers/messaging
page = client.phone_numbers.messaging.list
puts(page)
Retrieve a mobile phone number with messaging settings GET /mobile_phone_numbers/{id}/messaging
messaging = client.mobile_phone_numbers.messaging.retrieve("id" )
puts(messaging)
List mobile phone numbers with messaging settings GET /mobile_phone_numbers/messaging
page = client.mobile_phone_numbers.messaging.list
puts(page)
Bulk update phone number profiles POST /messaging_numbers/bulk_updates — Required: messaging_profile_id, numbers
messaging_numbers_bulk_update = client.messaging_numbers_bulk_updates.create(
messaging_profile_id: "00000000-0000-0000-0000-000000000000" ,
numbers: ["+18880000000" , "+18880000001" , "+18880000002" ]
)
puts(messaging_numbers_bulk_update)
Retrieve bulk update status GET /messaging_numbers/bulk_updates/{order_id}
messaging_numbers_bulk_update = client.messaging_numbers_bulk_updates.retrieve("order_id" )
puts(messaging_numbers_bulk_update)
Webhooks The following webhook events are sent to your configured webhook URL.
All webhooks include telnyx-timestamp and telnyx-signature-ed25519 headers for verification (Standard Webhooks compatible).
Event Description deliveryUpdateDelivery Update inboundMessageInbound Message replacedLinkClickReplaced Link Click