Experience a smooth and efficient communication experience with the SMS.to Gateway service. Our SMS API is structured to fit perfectly into your systems, ensuring an effortless integration process. Developer-friendly: Our SMS Gateway is designed with developers in mind. Choose your programming language and start building with our adaptable SMS APIs. Instant Notifications: The SMS.to Gateway is perfectly equipped to manage instant notifications, be it for OTP, 2FA, or general alerts. Redundant & Scalable: We offer a robust, reliable service. Our Gateway is built to handle traffic redundancy, ensuring that no message is lost in the process, regardless of the volume. Easy to start: Join the SMS.to community for free. Get your API key and you'll be ready to take full advantage of our SMS Gateway in less than 5 minutes.
Implement SMS notifications, OTP, reminders etc. into your workflow and build apps that send SMS with our redundant SSL SMS API. *
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)) }
SMS Gateway Afghanistan
SMS Gateway Albania
SMS Gateway Algeria
SMS Gateway American Samoa
SMS Gateway Andorra
SMS Gateway Angola
SMS Gateway Anguilla
SMS Gateway Antarctica
SMS Gateway Antigua And Barbuda
SMS Gateway Argentina
SMS Gateway Armenia
SMS Gateway Aruba
SMS Gateway Australia
SMS Gateway Austria
SMS Gateway Azerbaijan
SMS Gateway Bahamas
SMS Gateway Bahrain
SMS Gateway Bangladesh
SMS Gateway Barbados
SMS Gateway Belarus
SMS Gateway Belgium
SMS Gateway Belize
SMS Gateway Benin
SMS Gateway Bermuda
SMS Gateway Bhutan
SMS Gateway Bolivia
SMS Gateway Bosnia And Herzegowina
SMS Gateway Botswana
SMS Gateway Bouvet Island (Norway)
SMS Gateway Brazil
SMS Gateway British Indian Ocean Territory
SMS Gateway Brunei Darussalam
SMS Gateway Bulgaria
SMS Gateway Burkina Faso
SMS Gateway Burundi
SMS Gateway Cambodia
SMS Gateway Cameroon
SMS Gateway Canada
SMS Gateway Cape Verde
SMS Gateway Caribbean Netherlands
SMS Gateway Cayman Islands
SMS Gateway Central African Republic
SMS Gateway Chad
SMS Gateway Chile
SMS Gateway China
SMS Gateway Christmas Island
SMS Gateway Cocos (Keeling) Islands (Austrailia)
SMS Gateway Colombia
SMS Gateway Comoros
SMS Gateway Congo
SMS Gateway Congo, The Drc
SMS Gateway Cook Islands
SMS Gateway Costa Rica
SMS Gateway Cote D'Ivoire
SMS Gateway Croatia (Local Name: Hrvatska)
SMS Gateway Cuba
SMS Gateway Curacao
SMS Gateway Cyprus
SMS Gateway Czech Republic
SMS Gateway Denmark
SMS Gateway Djibouti
SMS Gateway Dominica
SMS Gateway Dominican Republic
SMS Gateway East Timor
SMS Gateway Ecuador
SMS Gateway Egypt
SMS Gateway El Salvador
SMS Gateway Equatorial Guinea
SMS Gateway Eritrea
SMS Gateway Estonia
SMS Gateway Ethiopia
SMS Gateway Falkland Islands (Malvinas)
SMS Gateway Faroe Islands
SMS Gateway Fiji
SMS Gateway Finland
SMS Gateway France
SMS Gateway French Guiana
SMS Gateway French Polynesia
SMS Gateway French Southern Territories
SMS Gateway Gabon
SMS Gateway Gambia
SMS Gateway Georgia
SMS Gateway Germany
SMS Gateway Ghana
SMS Gateway Gibraltar
SMS Gateway Greece
SMS Gateway Greenland
SMS Gateway Grenada
SMS Gateway Guadeloupe
SMS Gateway Guam
SMS Gateway Guatemala
SMS Gateway Guinea
SMS Gateway Guinea-Bissau
SMS Gateway Guyana
SMS Gateway Haiti
SMS Gateway Heard And Mc Donald Islands
SMS Gateway Holy See (Vatican City State)
SMS Gateway Honduras
SMS Gateway Hong Kong
SMS Gateway Hungary
SMS Gateway Iceland
SMS Gateway India
SMS Gateway Indonesia
SMS Gateway Iran (Islamic Republic Of)
SMS Gateway Iraq
SMS Gateway Ireland
SMS Gateway Israel
SMS Gateway Italy
SMS Gateway Jamaica
SMS Gateway Japan
SMS Gateway Jersey
SMS Gateway Jordan
SMS Gateway Kazakhstan
SMS Gateway Kenya
SMS Gateway Kiribati
SMS Gateway Korea, D.P.R.O.
SMS Gateway Korea, Republic Of
SMS Gateway Kosovo
SMS Gateway Kuwait
SMS Gateway Kyrgyzstan
SMS Gateway Laos
SMS Gateway Latvia
SMS Gateway Lebanon
SMS Gateway Lesotho
SMS Gateway Liberia
SMS Gateway Libyan Arab Jamahiriya
SMS Gateway Liechtenstein
SMS Gateway Lithuania
SMS Gateway Luxembourg
SMS Gateway Macau
SMS Gateway Madagascar
SMS Gateway Malawi
SMS Gateway Malaysia
SMS Gateway Maldives
SMS Gateway Mali
SMS Gateway Malta
SMS Gateway Marshall Islands
SMS Gateway Martinique
SMS Gateway Mauritania
SMS Gateway Mauritius
SMS Gateway Mayotte
SMS Gateway Mexico
SMS Gateway Micronesia, Federated States Of
SMS Gateway Moldova, Republic Of
SMS Gateway Monaco
SMS Gateway Mongolia
SMS Gateway Montenegro
SMS Gateway Montserrat
SMS Gateway Morocco
SMS Gateway Mozambique
SMS Gateway Myanmar (Burma)
SMS Gateway Namibia
SMS Gateway Nauru
SMS Gateway Nepal
SMS Gateway Netherlands
SMS Gateway Netherlands Antillen
SMS Gateway New Caledonia
SMS Gateway New Zealand
SMS Gateway Nicaragua
SMS Gateway Niger
SMS Gateway Nigeria
SMS Gateway Niue
SMS Gateway Norfolk Island
SMS Gateway North Macedonia
SMS Gateway Northern Mariana Islands
SMS Gateway Norway
SMS Gateway Oman
SMS Gateway Pakistan
SMS Gateway Palau
SMS Gateway Palestinian Territory
SMS Gateway Panama
SMS Gateway Papua New Guinea
SMS Gateway Paraguay
SMS Gateway Peru
SMS Gateway Philippines
SMS Gateway Pitcairn
SMS Gateway Poland
SMS Gateway Portugal
SMS Gateway Puerto Rico
SMS Gateway Qatar
SMS Gateway Reunion
SMS Gateway Romania
SMS Gateway Russian Federation
SMS Gateway Rwanda
SMS Gateway SYRIA
SMS Gateway Saint Kitts And Nevis
SMS Gateway Saint Lucia
SMS Gateway Saint Vincent And The Grenadines
SMS Gateway Samoa
SMS Gateway San Marino
SMS Gateway Sao Tome And Principe
SMS Gateway Saudi Arabia
SMS Gateway Senegal
SMS Gateway Serbia
SMS Gateway Seychelles
SMS Gateway Sierra Leone
SMS Gateway Singapore
SMS Gateway Sint Maarten
SMS Gateway Slovakia (Slovak Republic)
SMS Gateway Slovenia
SMS Gateway Solomon Islands
SMS Gateway Somalia
SMS Gateway South Africa
SMS Gateway South Georgia And South S.S.
SMS Gateway South Sudan
SMS Gateway Spain
SMS Gateway Sri Lanka
SMS Gateway St. Helena
SMS Gateway St. Pierre And Miquelon
SMS Gateway Sudan
SMS Gateway Suriname
SMS Gateway Svalbard And Jan Mayen Islands
SMS Gateway Swaziland
SMS Gateway Sweden
SMS Gateway Switzerland
SMS Gateway Taiwan
SMS Gateway Tajikistan
SMS Gateway Tanzania, United Republic Of
SMS Gateway Thailand
SMS Gateway Togo
SMS Gateway Tokelau
SMS Gateway Tonga
SMS Gateway Trinidad And Tobago
SMS Gateway Tunisia
SMS Gateway Turkey
SMS Gateway Turkmenistan
SMS Gateway Turks And Caicos Islands
SMS Gateway Tuvalu
SMS Gateway U.S. Minor Islands
SMS Gateway Uganda
SMS Gateway Ukraine
SMS Gateway United Arab Emirates
SMS Gateway United Kingdom
SMS Gateway United States
SMS Gateway Uruguay
SMS Gateway Uzbekistan
SMS Gateway Vanuatu
SMS Gateway Venezuela
SMS Gateway Vietnam
SMS Gateway Virgin Islands (British)
SMS Gateway Virgin Islands (U.S.)
SMS Gateway Wallis And Futuna Islands
SMS Gateway Western Sahara
SMS Gateway Yemen
SMS Gateway Zambia
SMS Gateway Zimbabwe