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.

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.

SMS Gateway API is used for integrating text messaging into your own app
TextMagic closed the loop on our automated system monitoring, and I sleep better at night knowing I will be notified of problems quickly.
Tim Leibovich
Director of IT
TextMagic ensures we are notified of any network traffic or high loads on our servers from our monitoring software no matter where we are.
N Alberici
Developer

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.

  • Callback URLs
    We can POST text message replies and delivery notifications directly to your application.

  • Unicode SMS
    Send messages using Greek, Arabic or Asian character sets or include special characters.

  • Schedule SMS in Advance
    You can easily schedule SMS messages to be sent later or to reoccur after a certain time period.

  • Receive Replies
    Retrieve inbound SMS as a separate API command or allow replies to be posted to your application.

  • Check Account
    Access your account to verify your balance and make sure you have enough credit for the next campaign.

  • Long Text Messages
    Send up to 918 characters in a single message – very useful when you need to include more details.

  • Check Delivery Status
    Check the delivery status for every message you send and ensure the delivery of your texts.

Frequently Asked Questions

If you’re not a developer, the concept of SMS API integration with third-party services may be a bit difficult to comprehend, so you might want to take a look at these frequently asked questions:

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.


Thousands of Small Businesses Are Already Using TextMagic