SMS APIs

Integrate SMS into your System

SMS APIs for SMS / TXT messages


In today's fast-paced digital world, efficient communication is crucial for business success. SMS APIs are the gateway to integrating reliable and scalable text messaging into your applications. Whether you're looking to automate notifications, enhance customer engagement, or streamline your communication processes, SMS APIs provide a robust solution to meet your needs.

With SMS APIs, you can effortlessly send and receive SMS messages, ensuring your messages reach your audience instantly and reliably. These APIs offer a range of protocols and features, allowing for easy integration into your existing systems and applications. Embrace the power of SMS APIs to transform your communication strategy and stay connected with your customers and team.

 

How do I use the Web API?


Using your application, you can send SMS messages with JSON/XML data format.
Sample JSON request as per below:

{
    "MessageData" :
    {
        "Message": "Hello, this is a test message from Department01. Thank you.",
        "Destinations" : 
        [
            { "Recipient": "+6421000002" }
        ]
    }
}

Supported libraries:

Follow the SMS REST API Guide for more information.

 

How do I use the HTTP/HTTPS API?


Using your web server or browser you can send SMS/TXT messages using HTTP POST or GET.
The required fields are: sender, token, number and message

An example of this is as follows:

https://api.tnz.co.nz/api/v2.03/HttpApi/SMS?Sender=xxx&Token=xxx&Number=xxx&Message=xxx

Download the SMS HTTP API Guide for more information.
The true URLs have been hidden for security purposes. Please contact us for the complete API documentation.

 

How do I use the SOAP API?


Using your SOAP application, you can send SMS messages.
The required fields are: sender, token, number and message

An example of this is as follows (PHP):

$request = array(
  'sender' => '[EmailAddress]',
  'token' => '[Your Token]',
  'number' => '[Destination Mobile Number]',
  'message' => '[SMS Message]',
  'smsemailreply' => '', //optional
  'messageid' => '', //optional
);

$client = new SoapClient('https://www.tnz.co.nz/xxx/xxx.wsdl'); //TBA
$result = $client->__soapCall('send_sms', array($request));
printf("Result = %s\n", $result->smsReturn);

Download the SMS SOAP API Guide for more information.
The true URLs have been hidden for security purposes. Please contact us for the complete API documentation.