Integrate SMS functionality into your applications effortlessly with SMS.to's robust SMS API. Our SMS API provides you with the tools to send and receive SMS messages programmatically, making it easy to incorporate SMS communication into your existing systems. The SMS.to SMS API offers the following benefits: Flexible: Our SMS API is designed to be adaptable, allowing you to integrate SMS capabilities into your preferred programming language and framework. Reliable: Experience the reliability of our SMS delivery infrastructure, ensuring your messages reach their destination in a timely manner. Scalable: Whether you need to send a few messages or millions, our SMS API can handle your volume needs, providing a scalable solution to meet your requirements. Global: With our SMS API, you can reach users around the world in just minutes. Sign up for free, obtain your API key, and start leveraging the power of SMS communication 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 API Afghanistan
SMS API Albania
SMS API Algeria
SMS API American Samoa
SMS API Andorra
SMS API Angola
SMS API Anguilla
SMS API Antarctica
SMS API Antigua And Barbuda
SMS API Argentina
SMS API Armenia
SMS API Aruba
SMS API Australia
SMS API Austria
SMS API Azerbaijan
SMS API Bahamas
SMS API Bahrain
SMS API Bangladesh
SMS API Barbados
SMS API Belarus
SMS API Belgium
SMS API Belize
SMS API Benin
SMS API Bermuda
SMS API Bhutan
SMS API Bolivia
SMS API Bosnia And Herzegowina
SMS API Botswana
SMS API Bouvet Island (Norway)
SMS API Brazil
SMS API British Indian Ocean Territory
SMS API Brunei Darussalam
SMS API Bulgaria
SMS API Burkina Faso
SMS API Burundi
SMS API Cambodia
SMS API Cameroon
SMS API Canada
SMS API Cape Verde
SMS API Caribbean Netherlands
SMS API Cayman Islands
SMS API Central African Republic
SMS API Chad
SMS API Chile
SMS API China
SMS API Christmas Island
SMS API Cocos (Keeling) Islands (Austrailia)
SMS API Colombia
SMS API Comoros
SMS API Congo
SMS API Congo, The Drc
SMS API Cook Islands
SMS API Costa Rica
SMS API Cote D'Ivoire
SMS API Croatia (Local Name: Hrvatska)
SMS API Cuba
SMS API Curacao
SMS API Cyprus
SMS API Czech Republic
SMS API Denmark
SMS API Djibouti
SMS API Dominica
SMS API Dominican Republic
SMS API East Timor
SMS API Ecuador
SMS API Egypt
SMS API El Salvador
SMS API Equatorial Guinea
SMS API Eritrea
SMS API Estonia
SMS API Ethiopia
SMS API Falkland Islands (Malvinas)
SMS API Faroe Islands
SMS API Fiji
SMS API Finland
SMS API France
SMS API French Guiana
SMS API French Polynesia
SMS API French Southern Territories
SMS API Gabon
SMS API Gambia
SMS API Georgia
SMS API Germany
SMS API Ghana
SMS API Gibraltar
SMS API Greece
SMS API Greenland
SMS API Grenada
SMS API Guadeloupe
SMS API Guam
SMS API Guatemala
SMS API Guinea
SMS API Guinea-Bissau
SMS API Guyana
SMS API Haiti
SMS API Heard And Mc Donald Islands
SMS API Holy See (Vatican City State)
SMS API Honduras
SMS API Hong Kong
SMS API Hungary
SMS API Iceland
SMS API India
SMS API Indonesia
SMS API Iran (Islamic Republic Of)
SMS API Iraq
SMS API Ireland
SMS API Israel
SMS API Italy
SMS API Jamaica
SMS API Japan
SMS API Jordan
SMS API Kazakhstan
SMS API Kenya
SMS API Kiribati
SMS API Korea, D.P.R.O.
SMS API Korea, Republic Of
SMS API Kosovo
SMS API Kuwait
SMS API Kyrgyzstan
SMS API Laos
SMS API Latvia
SMS API Lebanon
SMS API Lesotho
SMS API Liberia
SMS API Libyan Arab Jamahiriya
SMS API Liechtenstein
SMS API Lithuania
SMS API Luxembourg
SMS API Macau
SMS API Macedonia
SMS API Madagascar
SMS API Malawi
SMS API Malaysia
SMS API Maldives
SMS API Mali
SMS API Malta
SMS API Marshall Islands
SMS API Martinique
SMS API Mauritania
SMS API Mauritius
SMS API Mayotte
SMS API Mexico
SMS API Micronesia, Federated States Of
SMS API Moldova, Republic Of
SMS API Monaco
SMS API Mongolia
SMS API Montenegro
SMS API Montserrat
SMS API Morocco
SMS API Mozambique
SMS API Myanmar (Burma)
SMS API Namibia
SMS API Nauru
SMS API Nepal
SMS API Netherlands
SMS API Netherlands Antillen
SMS API New Caledonia
SMS API New Zealand
SMS API Nicaragua
SMS API Niger
SMS API Nigeria
SMS API Niue
SMS API Norfolk Island
SMS API Northern Mariana Islands
SMS API Norway
SMS API Oman
SMS API Pakistan
SMS API Palau
SMS API Palestinian Territory
SMS API Panama
SMS API Papua New Guinea
SMS API Paraguay
SMS API Peru
SMS API Philippines
SMS API Pitcairn
SMS API Poland
SMS API Portugal
SMS API Puerto Rico
SMS API Qatar
SMS API Reunion
SMS API Romania
SMS API Russian Federation
SMS API Rwanda
SMS API SYRIA
SMS API Saint Kitts And Nevis
SMS API Saint Lucia
SMS API Saint Vincent And The Grenadines
SMS API Samoa
SMS API San Marino
SMS API Sao Tome And Principe
SMS API Saudi Arabia
SMS API Senegal
SMS API Serbia
SMS API Seychelles
SMS API Sierra Leone
SMS API Singapore
SMS API Sint Maarten
SMS API Slovakia (Slovak Republic)
SMS API Slovenia
SMS API Solomon Islands
SMS API Somalia
SMS API South Africa
SMS API South Georgia And South S.S.
SMS API South Sudan
SMS API Spain
SMS API Sri Lanka
SMS API St. Helena
SMS API St. Pierre And Miquelon
SMS API Sudan
SMS API Suriname
SMS API Svalbard And Jan Mayen Islands
SMS API Swaziland
SMS API Sweden
SMS API Switzerland
SMS API Taiwan
SMS API Tajikistan
SMS API Tanzania, United Republic Of
SMS API Thailand
SMS API Togo
SMS API Tokelau
SMS API Tonga
SMS API Trinidad And Tobago
SMS API Tunisia
SMS API Turkey
SMS API Turkmenistan
SMS API Turks And Caicos Islands
SMS API Tuvalu
SMS API U.S. Minor Islands
SMS API Uganda
SMS API Ukraine
SMS API United Arab Emirates
SMS API United Kingdom
SMS API United States
SMS API Uruguay
SMS API Uzbekistan
SMS API Vanuatu
SMS API Venezuela
SMS API Vietnam
SMS API Virgin Islands (British)
SMS API Virgin Islands (U.S.)
SMS API Wallis And Futuna Islands
SMS API Western Sahara
SMS API Yemen
SMS API Zambia
SMS API Zimbabwe