Send and receive SMS or MMS globally with the Telnyx Messaging API, our award-winning platform recognized as a leader for its results and ease of use.


REST APIs, comprehensive docs, SDKs in 5 languages, and award-winning 24/7 support. Go from first message to production in minutes.

Usage-based pricing with no hidden fees, no third-party markups, and no upfront investment. Typical savings of 30% vs other CPaaS providers.

One of the world's only billion-scale Messaging APIs. Automated queuing, intelligent encoding, and reliable delivery reports built in.
Whether it’s detailed, transparent delivery reports or automated delivery optimizations, our billion-scale Messaging API is built to take you from small to massive with ease.
Message queuing
Our automated message queuing is set based on your account limits and the latest industry standards, ensuring maximum throughput without compromising delivery or compliance.
Reliable delivery reports
Measure deliverability with greater transparency than the competition using our detailed reports and debugging tool.
Automatic opt-outs
If a customer replies to a message from the Telnyx API with a “stop word” message (e.g. STOP), Telnyx will automatically unsubscribe them from future sends.
Message concatenation
If a SMS is too long for its destination, our API will automatically separate it into two messages. No more breaking out content into parts—we’ll handle that for you.
Use existing numbers to send SMS
Have an existing, well-known number that you want to send SMS from? With Telnyx Hosted SMS, you can send and receive SMS and MMS without even changing providers.
Intelligent message encoding
We support any character set and language type. Our system automatically chooses the most compact encoding possible, minimizing cost per send.
AI opt-out detection
An LLM checks inbound messages that don’t match standard keywords and catches opt-out requests like “don’t message me again”, handling them exactly like a STOP with the same block and auto-reply. Enable it on any messaging profile.
“We have the ability to offer our services at scale through Telnyx… Telnyx works closely with us, making sure we're always connected and ready to send.”
Point Blank Political
With Telnyx REST APIs and SDKs in 5 languages, you can send and receive SMS globally with detailed delivery reports and 24/7 free support.
Send SMS cURL
curl -X POST https://api.telnyx.com/v2/messages \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"from": "+15551234567",
"to": "+15559876543",
"text": "Hello, world!"
}'Send SMS Python
import os
from telnyx import Telnyx
client = Telnyx(
api_key=os.environ.get("TELNYX_API_KEY"),
)
response = client.messages.send(
from_="+15551234567",
to="+15559876543",
text="Hello, world!"
)
print(response.data)Send SMS Node.js
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'],
});
const response = await client.messages.send({
from: '+15551234567',
to: '+15559876543',
text: 'Hello, world!'
});
console.log(response.data);Send SMS Ruby
require "telnyx"
client = Telnyx::Client.new(api_key: ENV["TELNYX_API_KEY"])
response = client.messages.send_(
from: "+15551234567",
to: "+15559876543",
text: "Hello, world!"
)
puts(response)
Telnyx Agent Skills provides pre-built tools for AI coding agents like Claude Code, Cursor, and Windsurf to integrate with the Telnyx Messaging API in minutes. Available in Python, JavaScript, Go, Java, and Ruby. Let your AI coding assistant write Telnyx integrations. Build in minutes.
Customers typically save 30% by switching to Telnyx, with lower list pricing and automatic volume discounts.
Starting at:
$0.004
Per message
Reimagine customer engagement with RCS. Deliver rich, interactive, and branded messages with multimedia capabilities.

Send and receive WhatsApp messages and voice calls through Telnyx, using the same number and AI workflows you already use.

Add verification to any flow with SMS, voice, and WhatsApp OTP. Build a custom 2FA experience with one API.

Search and provision local, national and toll-free DIDs in 130+ countries. Voice, SMS, MMS, and fax on the same number.
An SMS API (or SMS Gateway API) is a software interface that allows developers to build code that can send and receive SMS messages using an Application Programming Interface (API).
To get started, sign up for a Portal account, then follow the steps in our quickstart guide to buy an SMS-enabled number, create a messaging profile and start sending text messages.
An SMS API works by allowing developers to simply connect our external SMS interface into your existing infrastructure. This enables a smooth passing of commands and responses between your application to the interface and back, which allows you to send and receive SMS anywhere in the world.
Telnyx offers market-leading prices for feature-rich SMS, starting at just $0.004 to send an SMS on a local number. We currently do not offer free SMS, but you can easily add small amounts of money (e.g. $10) via credit card or even Bitcoin. You can find detailed pricing information here. Telnyx also offers even greater discounts as you scale, or when you’re ready to commit to monthly usage—talk to our sales team about your specific needs.
Yes, we provide SDKs in Python, Java, Node, Ruby, .NET and PHP, with more coming soon. These API wrappers help cut down integration time so you can get to market faster.
Telnyx has the ability to scale with you and supports large scale and broadcast messaging—just make sure your messages follow the Telnyx Acceptable Use Policy.
Yes, Telnyx supports rich media texting (MMS), so you can send images, gifs or videos as needed.
Absolutely! Short codes are perfect for sending and receiving high volume texts. You can find more information about Telnyx short code SMS here.
An alphanumeric sender ID lets you send messages using a custom ID constructed from a combination of alpha (a-z, A-Z) and numeric (0-9) characters as well as spaces. Companies can set their brand name as the ID (e.g. TELNYX), which makes it easy for the receiver to identify the sender. It's often used for sending one-way text messages, since the person receiving the message will be unable to reply with an Alphanumeric Sender ID.
You can integrate messaging into a range of different applications, including two-factor authentication, SMS marketing, political campaigns, customer support and more.
Carrier fees are passthrough fees charged by carriers in relation to numbers hosted on their network. These vary based on the sending number type, content sent and in certain cases compliance status. For example, AT&T charges a specific fee for unregistered 10DLC traffic sent to numbers hosted on its network. As of July 2023, Telnyx does not charge a markup on carrier fees.
Each number type has its own limitations and we recommend considering your use case in depth before choosing a number type. As a generalisation, for North American senders, 10DLC is the most commonly used, with Toll Free emerging as a high value alternative. Short Code is ideal for high volume, recognisable numbers, and Alphanumeric is used for 1-way international SMS notifications from a custom ID.
Inbound messages that don’t match a standard stop keyword are checked for opt-out intent. When a request like “please stop texting me” is detected with high confidence, Telnyx blocks the sender and sends your opt-out auto-reply, the same as a literal STOP. It’s off by default, enabled per messaging profile, and messages deliver normally if the AI is ever unavailable. Learn more in the AI opt-out detection release note.
Telnyx's Developer documentation provides all the information needed to get started with our platform, including authentication methods.
With the Messaging family of products, you can send and receive SMS/MMS messages from your apps, facilitate interaction with The Campaign Registry (TCR) for 10DLC compliance, and more!
Send a message with a Phone Number, Alphanumeric Sender ID, Short Code or Number Pool.
Note: This API endpoint can only retrieve messages that are no older than 10 days since their creation. If you require messages older than this, please generate an MDR report.
What is an SMS API? Dive into the world of real-time messaging, which connects apps to telecom networks, and discover its potential for your business.
Sending SMS With Telnyx Python SDK is as Easy as API. Get started sending impactful customer messaging today.
Learn how SMS customer engagement drives meaningful interactions with tailored strategies, real-time updates, and personalized communication.
There are regulations that dictate how organizations can interact with end users via text. Understand what the rules are & how to comply with them.
Learn the advantages of mass text messaging for business and how to send messages in bulk with the Telnyx SMS API.
Learn how SMS & RCS complement each other to create a unified messaging strategy that combines reliability with rich media engagement for business success.
Find data-driven research, comprehensive guides and all things SIP trunking, voice and SMS APIs, wireless and more.
Learn how SMS customer engagement can be used to deliver a positive customer experience and drive more sales.
Master texting in Canada with our guide: Understand phone number formats, country codes, and Canadian SMS regulations.
Telnyx and Twilio both offer programmable SMS messaging. But how do the two providers compare?
Looking for the best verification API for your business? Don’t just default to Twilio Verify API. Consider some of these great options instead.
The top Plivo alternative. Find out why businesses are choosing Telnyx as the better Plivo alternative for CPaaS.
Here you will find a collection of links that will explain how to build applications using our SMS offering.
Here we will explain how to get SMS ready with Messaging Profiles on Telnyx.
A quick video walking you through using the Telnyx Python SDK to send messages.
Begin your journey with Telnyx: Learn how to sign up and set up a Mission Control account effectively.
Begin with Telnyx messaging: Toll-free, error codes, SDKs, and webhook utilization.
This article provides a breakdown of the messaging error codes used by Telnyx and their meanings!
Enhance your CRM tool with our SMS API. Build customer relationships seamlessly while ensuring compliance with data and privacy restrictions.
Enhance your SMS marketing with Telnyx's powerful API and platform. Start optimizing your campaigns today.