A quick and simple API to integrate !

Regardless of the language (PHP, ASP , C ++ , Java, Rubi , WINDEV , …)

Downloads

SMS API technical documentation

  • Version : 3.2
  • Last update : September 07, 2017

Examples

XML
JSON
PHP
HTML
JAVA
.NET
RUBY
BASH
XML
<?xml version="1.0" encoding="UTF-8"?>
<sms>
  <message>
  <text>Message via API</text>
    <pushtype>alert</pushtype>
    <delay>2014-06-15T15:00:00+00:00</delay>
    <senderid>SMSFactor</senderid>
  </message>
  <recipients>
    <gsm gsmsmsid="100">33601020304</gsm>
    <gsm gsmsmsid="101">33601020305</gsm>
  </recipients>
</sms>
Here is the XML format to send an SMS

JSON
Here is the JSON format to send an SMS

{
  "sms": {
    "message": {
      "text": "Message via API",
      "pushtype": "alert",
      "delay": "2014-06-15T15:00:00+00:00",
      "senderid": "SMSFactor"
    },
    "recipients": {
      "gsm": [
      {
        "gsmsmsid": "100",
        "value": "33601020304"
      },
      {
        "gsmsmsid": "101",
        "value": "33601020305"
      }
      ]
    }
  }
}
PHP
An example of use of our SMS API in PHP.

<?php
// https://secure.smsfactor.com/token.html;
$token = "";
$content = "Votre message";
$numbers = array('0601020304','0704030201');
$recipients = array();
foreach ($numbers as $n) {
  $recipients[] = array('value' => $n);
}

$postdata = array(
  'sms' => array(
   'message' => array(
    'text' => $content,
   ),
   'recipients' => array('gsm' => $recipients)
  )
);

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://api.smsfactor.com/send");
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($postdata));
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json', 'Accept: application/json', 'Authorization: Bearer ' . $token));
$response = curl_exec($ch);
curl_close($ch);
HTML
An example of use of our SMS API in HTML/Javascript.

<?xml version="1.0" encoding="UTF-8"?>
<sms>
  <message>
  <text>Message via API</text>
    <pushtype>alert</pushtype>
    <delay>2014-06-15T15:00:00+00:00</delay>
    <sender>SMSFactor</sender>
  </message>
  <recipients>
    <gsm gsmsmsid="100">33601020304</gsm>
    <gsm gsmsmsid="101">33601020305</gsm>
  </recipients>
</sms>
JAVA
An example of use of our SMS API in JAVA.

<?xml version="1.0" encoding="UTF-8"?>
<sms>
  <message>
  <text>Message via API</text>
    <pushtype>alert</pushtype>
    <delay>2014-06-15T15:00:00+00:00</delay>
    <sender>SMSFactor</sender>
  </message>
  <recipients>
    <gsm gsmsmsid="100">33601020304</gsm>
    <gsm gsmsmsid="101">33601020305</gsm>
  </recipients>
</sms>
.NET
An example of use of our SMS API in .NET

<?xml version="1.0" encoding="UTF-8"?>
<sms>
  <message>
  <text>Message via API</text>
    <pushtype>alert</pushtype>
    <delay>2014-06-15T15:00:00+00:00</delay>
    <sender>SMSFactor</sender>
  </message>
  <recipients>
    <gsm gsmsmsid="100">33601020304</gsm>
    <gsm gsmsmsid="101">33601020305</gsm>
  </recipients>
</sms>
RUBY
An example of use of our SMS API in RUBY ( https://rubygems.org/gems/sms_factor )

<?xml version="1.0" encoding="UTF-8"?>
<sms>
  <message>
  <text>Message via API</text>
    <pushtype>alert</pushtype>
    <delay>2014-06-15T15:00:00+00:00</delay>
    <sender>SMSFactor</sender>
  </message>
  <recipients>
    <gsm gsmsmsid="100">33601020304</gsm>
    <gsm gsmsmsid="101">33601020305</gsm>
  </recipients>
</sms>
BASH
Configure variables with your account information corresponding to your message sending.

# curl allows to run the form with your username / password information

# | grep retrieves information if it is an existing one then the connection is successful

if curl -s -H ‘Content-Type: application/json’ -H ‘Accept: application/json’ -H “sfusername:${PSEUDO}” -H “sfpassword:${PASS}” -X POST -d “{“sms”:{“message”:{“text”:”${MESSAGE}”},”recipients”:{“gsm”:[{“value”:”${NUM}”}]}}}” ${URL} | grep ‘”sent”:1,’

then

echo “n${BOLD}${GREEN}SMS sent !${RESET}”

else

echo “n${BOLD}${RED} Sending failed because the information are wrong.${RESET}”

fi

Our SMS plugins !

the plugin sms prestashop is perfect for send sms from a ecommerce website
With our sms prestashop plugin, you can integrate the SMS sendings into your ecommerce website in a few clicks!
Be done with stockout, manual relaunchings of basket… Make your customers relationship a real success!

We are offering you 250 test SMS.

Automate the sending of SMS to 400 applications thanks to the Zapier module
With the Zapier module, you can connect your sms sending to more than 400 applications!
Automate easily and quickly your sms sending in the tools of your choise to facilitate your daily life.

Be informed about the state of our systems in real time

All services available by API !

Webhooks

Use our Webhooks to receive and store the responses, STOPs, delivery receipts of your campaigns where you wish to.

Sending simulation

With our SMS gateway you can simulate unit or bulk SMS sending directly from your software, website or application.

Instant or delayed sending

With our API you can send messages instantaneously or program a subsequent date. Just set the date and time of the sending.

Sender customization

Give your clients the possibility to customize their SMS sender by putting their brand, their store or their company name , up to 11 alphanumeric characters

Lists Management

You can also manage the lists of contacts through our SMS API. Create or delete a list, add or delete a number.

TOKEN

Identify yourself to our API with your TOKEN. You will need it at each new request that you will carry out. It guarantees a highest security.

Contact us on +4121 519 07 30

They use our SMS API

The software editor for veterinary has integrated our SMS API to allow customers to send text messages as reminders for vaccines or appointments. They use our SMS API.
Software, Veterinarian
The company provides software for offices and medical facilities. Thus allowing to automate appointment confirmations by SMS.
Software, Medical files management
The company has integrated text messaging into its software. Therefore, it allows its customers to send both mass and unit SMS sending.
Software & CRM, SME
The editor uses the API to confirm or cancel medical appointments via SMS. Patients can then call to let us know about an impediment.
Software, Radiological and Imagery

A predictable price whatever the chosen pack

Pack 1
1.000SMS
  • 75 CHF excl tax
  • 0.075 CHF excl tax / SMS
  • All inclusive
  • No expiration date
Pack 2
2.500SMS
  • 182 CHF excl tax
  • 0.073 CHF excl tax / SMS
  • All inclusive
  • No expiration date
Pack 4
10.000SMS
  • 680 CHF excl tax
  • 0.068 CHF excl tax / SMS
  • All inclusive
  • No expiration date
Pack 5
50.000SMS
  • 3150 CHF excl tax
  • 0.063 CHF excl tax / SMS
  • All inclusive
  • No expiration date

No to “Low cost”

At SMSFactor we don’t offer a “Low cost” service to send your SMS. We guarantee an optimal rate of delivery, and real monitoring of your campaigns.

Custom Volume

Small or large volumes, if you want a specific number of SMS don’t hesitate to contact one of our consultants to quickly get a personalized estimation cost on
+4121 519 07 30

Integration

We can help you integrate our SMS API in your application or website. A dedicated counselor is available to assist you.

Payment methods

To ease your life, SMSFactor proposes you different payment methods. You can choose to pay your SMS credits by PayPal, by bank transfer or by direct debit.

Sign up for free and test - 10 free SMS

SMSFactor (Infomotiv Company) laureate of the 15th edition of the Deloitte Technology Fast 50

Wednesday, November 25, 2015 SMSFactor had the joy and honor to become one of 50 laureate of the Deloitte Technology Fast 50, which was created to showcase the remarkable contribution of technology companies into the growth of the economy. However,

Contact us