Using the Swift SMS API is easy!

Swift SMS Gateway® connects your SMS messages from our website or from your tools and apps to cell phones globally.

Swift Authentication Key

1) Get Account Key

API Code

2) Pick Your Code

Paper Airplane

3) Send Message

API Integration

Use the power of the Swift SMS Gateway® API to send SMS. It’s fast and easy to use. We provide a full library of programmer’s code and functions with popular languages that are RESTful and legacy examples, too. This is how easy it is!

// uses JQuery library
var postUrl = “”
}+ accountKey + “/” + destinationNumber
var body = JSON.stringify({
MessageBody: “Message Body”
url: postUrl,
method: “POST”,
contentType: “application/json;charset=UTF-8”,
data: body
}).done(function(response) {
}).error(function (xhr, textStatus, errorThrown) {
alert (xhr.responseText);

// using SOAP Module –

class SMSParam {
public $CellNumber;
public $AccountKey;
public $MessageBody;

$client = new SoapClient(‘’);
$parameters = new SMSParam;

$parameters -> CellNumber = destinationNumber;
$parameters -> AccountKey = accountKey;
$parameters -> MessageBody = “This is a demonstration of using PHP5.”;

$Result = $client->SendMessage($parameters);

‘Using Service Reference (SOAP)
Using client = New SwiftSMS.SendSMSSoapClient
Dim response = client.SendMessage(destinationNumber, messageBody, accountKey)
End Using

‘Using Webclient (REST)
Dim url = String.Format(“{0}/{1}”, accountKey, destinationNumber)
Dim body = String.Format(“{{ “”MessageBody””: “”{0}””, “”Reference”” : “”{1}”” }}”, messageBody, reference)

Using wClient = New Net.WebClient
wClient.Encoding = New UTF8Encoding()
wClient.Headers.Add(“content-type”, “application/json”)

Dim wResponse = wClient.UploadString(url, body)
End Using

Simple HTTP GET:
curl “[destinationNumber]&AccountKey=[accountKey]&MessageBody=[messageBody]”

curl -H “Content-Type: application/json” -X POST \
“[accountKey]/[destination]” \
––data “{ \”MessageBody\”: \”[messageBody]\” }”

// Service Reference / SOAP
using (var client = new SwiftSMS.SendSMSSoapClient())
string response = client.SendMessage(destinationNumber,
messageBody, accountKey);

// Web Client / REST
dynamic body = new ExpandoObject();
body.MessageBody = “Message Body”;

var url = string.Format(“{0}/{1}”,
accountKey, destinationNumber);

using (var wClient = new System.Net.WebClient())
wClient.Encoding = Encoding.UTF8;
wClient.Headers.Add(“content-type”, “application/json”);

string response = wClient.UploadString(url,