SMS gateway API for any application

Choose our easy-to-use SMS API to seamlessly integrate text messaging with your existing business systems and applications.
Textmagic
Ready-to-use API scripts
Use our SMS API scripts for Java, Ruby, PHP, Python and Perl.
Text directly from your app
Send one, two or thousands of SMS messages directly from your app.
It’s easy to get started
Create an account and integrate our API in less than one business day.

Powerful SMS API features

Take your website and apps to the next level with integrated SMS messaging.
Send texts
Send a single text message or thousands, any application can do it with API.
Receive replies
Retrieve inbound SMS as a separate API command or allow replies to be posted to your application.
Callback URLs
We can POST text message replies and delivery notifications directly to your application.
Check account
Access your account to verify your balance and make sure you have enough credit for the next campaign.
Unicode SMS
Send messages using Greek, Arabic or Asian character sets or include special characters.
Long text messages
Send up to 918 characters in a single message - very useful when you need to include more details.
Schedule SMS in advance
You can easily schedule SMS messages to be sent later or to reoccur after a certain time period.
Check delivery status
Check the delivery status for every message you send and ensure the delivery of your texts.

Learn how businesses like yours use Textmagic

Here is how the Textmagic business texting platform is helping businesses daily to grow their revenue and improve their productivity.

Frequently asked questions

Haven’t found what you were looking for? Contact us now

How to use the Textmagic SMS API?
You can use the Textmagic SMS API to query information about inbound and outbound messages, send and receive SMS messages, manage contact lists, schedule recurrent texts, process bulk SMS messages and create templates. Here’s how you can get started with the Textmagic SMS Gateway API: Step #1: Obtain your SMS API credentials. The login credentials (X-TM-Username) are different from the API credentials (X-TM-Key). Note: Textmagic has two SMS APIs (V1 and V2). If you already have a V1 key, it will not be compatible with the Textmagic REST API, so you will have to create a new key for the V2 endpoint. Step #2: Connect to the API endpoint (https://rest.textmagic.com/api/v2). Step #3: Try out the Textmagic Sandbox before you start writing your code.  
What is an SMS API?
An application-programming interface (API) is a set of programming rules, standards and instructions for accessing a web-based application. SMS APIs are generally released to the public to enable developers to power their services with the API. The end user only sees one interface, but behind the scenes, many APIs are working together and integrating with SMS solutions to provide a seamless experience.
In how many ways can the Textmagic SMS API be used?
The Textmagic SMS API provides a means of communication between your service and the SMS gateway, thus allowing you to send and receive text messages, check reports and delivery states directly from your application’s interface. Our SMS API can be used in two ways:
  • The REST API provides access to all our messaging gateway features.
  • The Email to SMS API can be used for two-way SMS communication. It does not require additional coding.
Does Textmagic provide public SMS API documentation?
Of course! Our team has prepared a comprehensive SMS API documentation that will help you build your own messaging app through our infrastructure. Our documentation includes information on sending, receiving and scheduling text messages, email to SMS capabilities, distribution lists, custom fields, accounts and sub-accounts, statistics, encoding and more. Read full SMS Gateway API documentation.
Where can I find the Textmagic SMS API Code Libraries?
Our developing team has also created a set of client libraries for the most common programming languages. They will allow you to integrate our SMS API into your source code in a matter of minutes. SMS API Code Libraries: here (includes Node.js, PHP, Java, Python, Go, Delphi, Ruby, .NET, Perl, C++, Shell and C#)
How can I obtain Textmagic SMS API credentials?
Before you get started with the Textmagic REST API, you have to generate your API credentials and connect to the API endpoint. This can be done by creating an API key. Log in to your Textmagic account and navigate to the API settings. Click on the ‘Add new API key’ button and write down the API label to generate your API credentials. The API key should now appear as a green notification banner above the table.