API Documentation

Complete guide to integrate Notiflo SMS Gateway into your application.

Before you begin

You'll need an API key from your Notiflo dashboard. Install the Android app and connect at least one device.

Base URL

https://app.notiflo.com

Features

  • Send single or bulk SMS messages
  • Schedule messages for future delivery
  • Send MMS with attachments
  • WebHook notifications for message status
  • Multi-device load balancing

Authentication

All API requests require an API key. Include your API key in every request.

PHP
define("API_KEY", "your_api_key_here");

Get your API key from your Notiflo dashboard.

Quick Start

Send your first SMS in 3 steps.

1. Include the PHP library

define("SERVER", "https://app.notiflo.com");
define("API_KEY", "08513100fc343693cd75b267e29fc866a5f5d365");

define("USE_SPECIFIED", 0);
define("USE_ALL_DEVICES", 1);
define("USE_ALL_SIMS", 2);

2. Send a message

try {
    $msg = sendSingleMessage(
        "+1234567890",
        "Hello from Notiflo!"
    );
    
    print_r($msg);
    echo "Message sent successfully!";
} catch (Exception $e) {
    echo $e->getMessage();
}

3. Response

{
    "ID": "1",
    "number": "+1234567890",
    "message": "Hello from Notiflo!",
    "deviceID": "1",
    "status": "Pending",
    "sentDate": "2025-01-02T10:30:00+00:00"
}

Send Single Message

Send an SMS to a single recipient.

Function Signature
sendSingleMessage($number, $message, $device, $schedule, $isMMS, $attachments, $prioritize)

Parameters

Parameter Type Description
number string Recipient phone number with country code
message string Message content
device int Device ID (0 = primary, "1|0" = device 1, SIM slot 0)
schedule int Unix timestamp for scheduled delivery
isMMS bool Send as MMS with attachments
attachments string Comma-separated image URLs
prioritize bool Priority sending (for OTPs, etc.)

Examples

Basic SMS

$msg = sendSingleMessage(
    "+1234567890",
    "This is a test message."
);

Using specific device

$msg = sendSingleMessage(
    "+1234567890",
    "Message via device 1",
    1
);

Priority message (OTP)

$msg = sendSingleMessage(
    "+1234567890",
    "Your OTP is 123456",
    1,
    null,
    false,
    null,
    true
);

Need Help?

Our support team is here to help you integrate Notiflo.