Statum Company Logo

Statum SMS API: Powerful, Reliable SMS Gateway for Kenya Businesses

Looking for a reliable and user-friendly SMS Gateway API in Kenya? Wondering what is an SMS API or Bulk SMS API? Look no further than Statum's SMS API service. Our cutting-edge solution sets the benchmark for fast, dependable SMS messaging, not only in Kenya but worldwide.

An SMS API (Short Message Service Application Programming Interface) is a tool that allows developers to integrate SMS messaging capabilities into their applications, websites, or systems. It provides a way for systems to send and receive SMS messages programmatically, automating the process and enabling efficient communication with users. Through an SMS API, businesses can send alerts, notifications, marketing messages, and more without manually composing each message.

A Bulk SMS API is a specific type of SMS API designed to send large volumes of messages simultaneously, often used for mass communication like marketing campaigns, customer updates, and event notifications. Bulk SMS APIs are particularly useful for businesses that need to reach a wide audience quickly and cost-effectively.

In the case of Statum's Bulk SMS API, it refers to the API provided by telcos such as Safaricom (Kenya’s largest telecom provider), which allows businesses to send bulk SMS messages via the Safaricom network through Safaricom SMS API or Safaricom Bulk SMS API. This is often used by Kenyan businesses to communicate with their customers effectively at scale.

Key Features of Statum's SMS API

Enhance Your Business with Statum’s SMS API

Our A2P SMS service is optimized for the highest delivery rates, featuring industry-leading fraud protection and advanced personalization options.

Whether you are launching SMS campaigns, sending event notifications, or managing reminders and greetings, Statum's SMS API is the ultimate tool to elevate your business communications in Kenya and beyond.

Still wondering what is SMS Gateway API or SMS API? Let Statum's reliable solution provide the answers. Sign Up for a free account or contact our sales team to explore how Statum's SMS API Kenya can propel your business growth.

To use the service, you need a Sender ID. This can be either a short code (e.g., 12345) or an alphanumeric ID (e.g., Statum).

An alphanumeric ID is a custom sender ID registered with Mobile Service Providers, displayed on SMS messages sent from your account. For example, if your business is named Statum, you can register this alphanumeric ID to brand your messages accordingly.

A short code is a memorable 5 to 6-digit number used for sending SMS or MMS messages. For instance, a pizza restaurant might use the short code 12345 for customers to text "CHEESE" to receive discounts or interact with the business via two-way SMS.

Note that with alphanumeric IDs, users cannot reply to the sender ID. Additionally, alphanumeric IDs are case-sensitive.

After purchasing a sender ID, you can use it as the sender ID for messages originating from your account. To request a sender ID, please contact us at [email protected], and we will set up the service for you.

HTTP POST Resource URL

https://api.statum.co.ke/api/v2/sms

SMS API Request

Send SMS through your application by making an HTTP POST request to the endpoint above. In addition to the standard API request headers, include the following fields in the request body:

Parameter Type Description Example
phone_number String The recipient's phone number in international format. 254721553678
message String The content of the SMS message to be sent. This is a test message through our API.
sender_id String The registered sender ID for the message. Statum

Sample PHP SMS API request:

<?php
// Credentials from your developer account
$consumerKey = "568473daf6614cb196caeb5f8805985f";
$consumerSecret = "5a07f41de16e40e4b08b4001142a5a10";
$auth = base64_encode($consumerKey . ":" . $consumerSecret);

$curl = curl_init();
curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.statum.co.ke/api/v2/sms',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{
         "phone_number": "254721553678",
         "sender_id": "Statum",
         "message": "This is a test message through our API."
        }',
  CURLOPT_HTTPHEADER => array(
        "Authorization: Basic $auth",
        "Content-Type: application/json"
      ),
));

$response = curl_exec($curl);
curl_close($curl);
echo $response;

SMS API Response

The response will be a JSON object containing the following fields:

Parameter Type Description Example
status_code Number The status code of the transaction. 200
description String Description of the transaction status. Operation successful
request_id String Unique reference number assigned by the Statum API. 35235f08c981474abd388755ed43a427

Sample SMS API response payload:

{
    "status_code": 200,
    "description": "Operation successful.",
    "request_id": "35235f08c981474abd388755ed43a427"
}

API Notifications

The SMS API sends notifications for specific events, such as successful message delivery. To receive these notifications, set up a callback URL in your developer account.

Notification POST parameters will include:

Parameter Type Description Example
request_id String Unique reference number assigned by the Statum API. 35235f08c981474abd388755ed43a427
result_code String Result code of the transaction. 200
result_desc String Description of the delivery status. Success

Sample SMS API notification payload:

{
  "result_code": "200",
  "result_desc": "Success",
  "request_id": "35235f08c981474abd388755ed43a427"
}
Statum. All rights reserved. © 2017 - 2024