DEVELOPER API SPECIFICATION v2.2 Enterprise Gateway • Sri Lanka Region
SmartMessage by Intech

SmartMessage by Intech — Developer REST API & Plugins

The SmartMessage REST API provides high-throughput business messaging and wallet query endpoints for Sri Lankan enterprises across all major telecom networks (Dialog, Mobitel, Airtel, Hutch).

1. Authentication

All API requests must include your secret API key inside the custom HTTP request header:

X-API-KEY: your_secret_api_key_here

2. Endpoint: Send SMS (Dispatch)

POST https://sms.intechitsolutions.com/api/send.php

Request Parameters

Parameter Type Status Description
sender_id String REQUIRED Your approved alphanumeric mask (e.g. "INTECH", "YOURSTORE")
message String REQUIRED SMS message body (English ASCII or Sinhala/Tamil Unicode)
recipients Array / CSV REQUIRED Mobile numbers array (e.g. ["94771234567"] or "0771234567")

Sample Code (Send SMS)

curl -X POST https://sms.intechitsolutions.com/api/send.php \
  -H "X-API-KEY: your_secret_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "sender_id": "YOURBRAND",
    "message": "Your verification code is 4920. Valid for 5 mins.",
    "recipients": ["94771234567"]
  }'
<?php
$payload = [
    "sender_id"  => "YOURBRAND",
    "message"    => "Your verification code is 4920.",
    "recipients" => ["94771234567"]
];

$ch = curl_init("https://sms.intechitsolutions.com/api/send.php");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($payload));
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    "X-API-KEY: your_secret_api_key",
    "Content-Type: application/json"
]);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
import requests

url = "https://sms.intechitsolutions.com/api/send.php"
payload = {
    "sender_id": "YOURBRAND",
    "message": "Your order #1089 is ready for pickup!",
    "recipients": ["94771234567"]
}
headers = {
    "X-API-KEY": "your_secret_api_key",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)
print(response.json())
const axios = require('axios');

axios.post('https://sms.intechitsolutions.com/api/send.php', {
    sender_id: 'YOURBRAND',
    message: 'Your verification code is 4920.',
    recipients: ['94771234567']
}, {
    headers: {
        'X-API-KEY': 'your_secret_api_key',
        'Content-Type': 'application/json'
    }
}).then(res => console.log(res.data));

3. Endpoint: Check Account Balance (Read-Only)

GET https://sms.intechitsolutions.com/api/balance.php

Retrieve your live credit balance in LKR, current SMS price tier, estimated messages remaining, and list of authorized sender masks.

curl -X GET https://sms.intechitsolutions.com/api/balance.php \
  -H "X-API-KEY: your_secret_api_key"

Sample JSON Response

{
  "status": "success",
  "code": 200,
  "client": {
    "id": 14,
    "name": "Smart Cashier Store",
    "status": "active"
  },
  "billing": {
    "currency": "LKR",
    "balance": 2450.50,
    "sms_rate": 0.85,
    "estimated_sms_remaining": 2882
  },
  "sender_ids": [
    "SmartCash",
    "IntechAlert"
  ],
  "server_time": "2026-10-07 14:15:00"
}

4. Official WordPress / WooCommerce Integration

Running a WooCommerce store in Sri Lanka? Connect directly with our official plugin. Zero coding required.

SmartMessage SMS for WooCommerce (v1.0.0)

Automated Order Status SMS • Courier Waybill Tracking • COD Phone OTP Fraud Shield

⬇ Download Plugin (.ZIP)

Quick Setup Guide:

  1. In your WordPress dashboard, navigate to Plugins > Add New > Upload Plugin.
  2. Select smartmessage-sms-for-woocommerce.zip and click Activate.
  3. Go to WooCommerce > SmartMessage SMS in your sidebar.
  4. Enter your API Secret Key and approved Sender ID.
  5. Customize order notification templates and save changes!

5. Sri Lankan Phone Number Normalization

The gateway automatically cleans and standardizes phone numbers to standard 94XXXXXXXXX format:

© SmartMessage by Intech IT Solutions (Pvt) Ltd. All Rights Reserved.