◯ SMS Gateway Admin

faxserver-19efb
📩 Outgoing SMS
⚙ Gateway Config
✈ Send Test SMS
📄 API / Downloads

Last 20 Outgoing Messages

loading...
Time To Country From Message Status Cost Details
Loading...

SMS Gateway Configuration

smsGateway collection
Offline

Send Test SMS

Creates doc in outGoingSMS

API Endpoint & Helper Files

queueSMS Cloud Function
Cloud Function URL
POST  https://us-central1-faxserver-19efb.cloudfunctions.net/queueSMS
Header required: Content-Type: application/json
Download Helper Files
File Use in Download
sendSMS.php PHP apps — eGarage, POS, invoicing, etc. ⬇ Download sendSMS.php
sendSMS.js JavaScript / Node.js / browser apps ⬇ Download sendSMS.js
Sample JSON Payload
Minimum (required fields)
{
  "countryCode": "LK",
  "to":          "+94771234567",
  "message":     "Your OTP is 482910"
}
Full payload (all fields)
{
  "countryCode": "LK",
  "to":          "+94771234567",
  "from":        "X",
  "message":     "Your order is confirmed.",
  "appName":     "eGarage",
  "orderId":     "ORD-001"
}
PHP Usage
<?php
require 'sendSMS.php';

$result = sendSMS([
    'countryCode' => 'LK',
    'to'          => '+94771234567',
    'message'     => 'Your order has been confirmed.',
    'appName'     => 'eGarage',    // extra fields — saved to doc
    'orderId'     => 'ORD-001',
]);

if ($result['success']) {
    echo 'Queued! Doc ID: ' . $result['docId'];
} else {
    echo 'Error: ' . $result['error'];
}
JavaScript Usage
import { sendSMS } from './sendSMS.js';

const result = await sendSMS({
    countryCode: 'LK',
    to:          '+94771234567',
    message:     'Your order has been confirmed.',
    appName:     'eGarage',   // extra fields — saved to doc
    orderId:     'ORD-001',
});

if (result.success) {
    console.log('Queued! Doc ID:', result.docId);
} else {
    console.error('Error:', result.error);
}
API Response
Success
{ "success": true, "docId": "26uRTUT2Sl..." }
Error
{ "success": false, "error": "Missing required field(s): to" }