Easily Send SMS Messages in Swaziland with SMS.to Gateway API The SMS.to Gateway API offers an efficient and low-cost way to send SMS messages to your customers in Swaziland and all over the world. With its easy setup process, you can quickly start sending mass text messages and personalized campaigns to your target audience. In addition to reliable message delivery, our SMS Gateway platform offers premium features such as lists creation, HLR validation, and accurate delivery reporting. Our API can be seamlessly integrated with your existing systems including CRM, ERP, and notification or marketing software. Our sales team is always available to help you get started. Sign up for a free account today to experience the power of our SMS Gateway API for Swaziland messaging needs.
Fill details below to calculate your SMS campaign cost
High volume?
Contact Sales →
With SMS.to's API gateway in Swaziland, you'll only pay for the messages you send. If you have low volume needs, you can find our SMS Gateway prices on the left. High-volume customers may be eligible for volume discounts - feel free to contact us to learn more!
Expand your reach with our SMS Gateway in Swaziland. Develop robust connectivity with our scalable SMS API specialized in sending SMS to every major network in Swaziland. Our SMS Gateway is designed to provide reliability and solid integration with various CRMs, software, and apps. With us, you get a top-of-the-line SMS API that guarantees efficient messaging solutions for your business needs.
curl --location 'https://api.sms.to/sms/send' \ --header 'Authorization: Bearer <api_key>' \ --header 'Content-Type: application/json' \ --data '{ "message": "This is test and \n this is a new line", "to": "+35799999999999", "bypass_optout": true, "sender_id": "SMSto", "callback_url": "https://example.com/callback/handler" }'
<?php $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => 'https://api.sms.to/sms/send', CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => '', CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 0, CURLOPT_FOLLOWLOCATION => true, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => 'POST', CURLOPT_POSTFIELDS =>'{ "message": "This is test and \\n this is a new line", "to": "+35799999999999", "bypass_optout": true, "sender_id": "SMSto", "callback_url": "https://example.com/callback/handler" }', CURLOPT_HTTPHEADER => array( 'Authorization: Bearer <api_key>', 'Content-Type: application/json' ), )); $response = curl_exec($curl); curl_close($curl); echo $response;
var https = require('follow-redirects').https; var fs = require('fs'); var options = { 'method': 'POST', 'hostname': 'api.sms.to', 'path': '/sms/send', 'headers': { 'Authorization': 'Bearer <api_key>', 'Content-Type': 'application/json' }, 'maxRedirects': 20 }; var req = https.request(options, function (res) { var chunks = []; res.on("data", function (chunk) { chunks.push(chunk); }); res.on("end", function (chunk) { var body = Buffer.concat(chunks); console.log(body.toString()); }); res.on("error", function (error) { console.error(error); }); }); var postData = JSON.stringify({ "message": "This is test and \n this is a new line", "to": "+35799999999999", "bypass_optout": true, "sender_id": "SMSto", "callback_url": "https://example.com/callback/handler" }); req.write(postData); req.end();
require "uri" require "json" require "net/http" url = URI("https://api.sms.to/sms/send") https = Net::HTTP.new(url.host, url.port) https.use_ssl = true request = Net::HTTP::Post.new(url) request["Authorization"] = "Bearer <api_key>" request["Content-Type"] = "application/json" request.body = JSON.dump({ "message": "This is test and \n this is a new line", "to": "+35799999999999", "bypass_optout": true, "sender_id": "SMSto", "callback_url": "https://example.com/callback/handler" }) response = https.request(request) puts response.read_body
import http.client import json conn = http.client.HTTPSConnection("api.sms.to") payload = json.dumps({ "message": "This is test and \n this is a new line", "to": "+35799999999999", "bypass_optout": True, "sender_id": "SMSto", "callback_url": "https://example.com/callback/handler" }) headers = { 'Authorization': 'Bearer <api_key>', 'Content-Type': 'application/json' } conn.request("POST", "/sms/send", payload, headers) res = conn.getresponse() data = res.read() print(data.decode("utf-8"))
OkHttpClient client = new OkHttpClient().newBuilder() .build(); MediaType mediaType = MediaType.parse("application/json"); RequestBody body = RequestBody.create(mediaType, "{\r\n \"message\": \"This is test and \\n this is a new line\",\r\n \"to\": \"+35799999999999\",\r\n \"bypass_optout\": true,\r\n \"sender_id\": \"SMSto\",\r\n \"callback_url\": \"https://example.com/callback/handler\"\r\n}"); Request request = new Request.Builder() .url("https://api.sms.to/sms/send") .method("POST", body) .addHeader("Authorization", "Bearer <api_key>") .addHeader("Content-Type", "application/json") .build(); Response response = client.newCall(request).execute();
package main import ( "fmt" "strings" "net/http" "io/ioutil" ) func main() { url := "https://api.sms.to/sms/send" method := "POST" payload := strings.NewReader(`{`+" "+` "message": "This is test and \n this is a new line",`+" "+` "to": "+35799999999999",`+" "+` "bypass_optout": true,`+" "+` "sender_id": "SMSto",`+" "+` "callback_url": "https://example.com/callback/handler"`+" "+` }`) client := &http.Client { } req, err := http.NewRequest(method, url, payload) if err != nil { fmt.Println(err) return } req.Header.Add("Authorization", "Bearer <api_key>") req.Header.Add("Content-Type", "application/json") res, err := client.Do(req) if err != nil { fmt.Println(err) return } defer res.Body.Close() body, err := ioutil.ReadAll(res.Body) if err != nil { fmt.Println(err) return } fmt.Println(string(body)) }
Discover how our SMS gateway ensures privacy and regulatory compliance. Seamlessly connect with your audience while adhering to industry standards.
Track your SMS campaign performance with ShortLink Tracking. Our SMS gateway provides real-time insights to optimize your messaging strategy.
With our reliable SMS gateway, achieve Global Delivery of messages seamlessly. Expand your reach, connect with customers worldwide effortlessly.
Experience the highest level of Security & Transparency with our SMS gateway. Trust in our reliable infrastructure for seamless messaging solutions.
Unlock the power of personalisation with our SMS gateway. Seamlessly integrate dynamic fields for highly personalized messages that engage and convert.
Our Fair Price Promise ensures cost-effective SMS gateway solutions for seamless communication. Unlock value without compromising quality or budget constraints.