Sending SMS messages to customers in Hong Kong has never been easier with our SMS API services. Our API is simple to set up and highly affordable, allowing you to connect with your target audience not only in Hong Kong but also worldwide. Our advanced SMS API goes beyond just sending SMS - it also provides comprehensive delivery reports, list creation, HLR validation, and the ability to send personalized campaigns and messages. This makes it an ideal solution for use in a variety of settings, including CRM, ERP, notification, and SMS marketing software. Sign up for a free trial account or get in touch with our sales team to get started with our SMS API for Hong Kong today!
Fill details below to calculate your SMS campaign cost
High volume?
Contact Sales →
By leveraging our Hong Kong SMS API, you only pay for the exact number of messages you send. To view our pricing for low volumes, refer to the listing on the left. In the case of higher volumes, feel free to reach out to us for exclusive discounts.
Integrate SMS API for Hong Kong with SMS.to Easily build robust and reliable apps, CRM, and software connectivity through the scalable SMS API by SMS.to. Our API is powerful and efficient SMS API which guarantees seamless connectivity to send SMS across every Hong Kong network possible.
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)) }
Stay compliant with Privacy & Regulatory Compliance by leveraging the power of our SMS API. Seamlessly integrate messaging capabilities into your systems for efficient communication with your customers.
Leverage the power of SMS API with ShortLink Tracking. Monitor the performance of your SMS campaigns effortlessly and optimize your marketing strategies for better results.
Deliver messages worldwide seamlessly with our powerful SMS APIs. Simplify integration and enhance communication for your global audience.
Enhance Security & Transparency with our robust SMS API. Build reliable communication channels and streamline your messaging process effortlessly.
Take your SMS messaging to the next level with our SMS API. Unlock the power of personalization and dynamic fields to deliver tailored messages that resonate with your audience. Elevate your customer experience and engagement effortlessly.
Experience our Fair Price Promise with our reliable SMS API. Simplify your communication while enjoying cost-effective solutions. Connect with us today.