Tutorials

Build a Production-Ready SMS Reminder Service with Node.js, Express, and Infobip

A step-by-step guide to building an SMS reminder application using Node.js, Express, PostgreSQL, Prisma, node-cron, and the Infobip API, covering setup, core logic, security, and deployment considerations.

JH
Jacky Hossein
β€’ Principal Telecommunications Architect β€’ Published Nov 6, 2026 β€’ 13 min read

Developer Quick-Start: A step-by-step guide to building an SMS reminder application using Node.js, Express, PostgreSQL, Prisma, node-cron, and the Infobip API, covering setup, core logic, security, and deployment considerations. Want to skip 10DLC vetting queues, carrier surcharges, and multi-step SDK boilerplate? You can send the same SMS directly via SMSRoute's REST API with instant no-KYC provisioning.

Automated reminders are a powerful tool for user engagement, reducing no-shows, and improving communication. Whether it's for appointments, upcoming payments, subscription renewals, or event notifications, sending timely SMS reminders can significantly enhance user experience and operational efficiency.

This guide provides a step-by-step walkthrough for building a robust SMS reminder service using Node.js, Express, PostgreSQL (with Prisma for ORM), node-cron for scheduling, and the Infobip SMS API for message delivery. We'll cover everything from project setup and core logic to error handling, security, deployment, and monitoring, enabling you to build a reliable, production-grade application.

Project Goals:

  • Create a system to store reminders with recipient phone numbers, messages, and scheduled times.
  • Implement an API to manage these reminders (create, view, delete).
  • Develop a background scheduling mechanism to automatically send SMS reminders via Infobip at the appropriate time.
  • Ensure the system is secure, reliable, and observable.

Technologies Used:

  • Node.js: A JavaScript runtime for building the backend server.
  • Express: A minimal and flexible Node.js web application framework for building the API.
  • PostgreSQL: A powerful, open-source relational database to store reminder data.
  • Prisma: A modern database toolkit for Node.js and TypeScript, simplifying database access, migrations, and type safety.
  • Infobip API & Node.js SDK: For reliable and scalable SMS delivery.
  • node-cron: A simple cron-like task scheduler for Node.js.
  • dotenv: To manage environment variables securely.
  • express-validator: For robust API request validation.
  • winston: For flexible logging.
  • express-rate-limit: To protect the API against brute-force attacks.

Prerequisites:

  • Node.js (v18 or later recommended) and npm/yarn installed.
  • Access to a PostgreSQL database instance.
  • An Infobip account (a free trial account works for testing, but note limitations on recipient numbers).
  • Basic familiarity with Node.js, Express, REST APIs, and databases.
  • curl or a tool like Postman for testing the API.

System Architecture:

A diagram here would illustrate the flow: Client interacts with the Node.js API, which uses PostgreSQL for storage and the Scheduler. The Scheduler queries the database and triggers SMS sending via the Infobip API.


1. Setting up the Project

Let's start by initializing our Node.js project, installing dependencies, and setting up the basic structure.

1. Initialize Project:

mkdir node-infobip-reminders
cd node-infobip-reminders
npm init -y

git init
printf "node_modules\n.env\n" > .gitignore

2. Install Core Dependencies:

npm install express dotenv @infobip-api/sdk node-cron prisma @prisma/client pg winston express-validator express-rate-limit libphonenumber-js
  • express: Web framework.
  • dotenv: Loads environment variables from a .env file.
  • @infobip-api/sdk: The official Infobip Node.js SDK.
  • node-cron: Task scheduler.
  • prisma, @prisma/client: ORM and database client.
  • pg: PostgreSQL driver for Node.js (used by Prisma).
  • winston: Logger.
  • express-validator: Request validation middleware.
  • express-rate-limit: API rate limiting.
  • libphonenumber-js: Robust phone number parsing and validation.

3. Install Development Dependencies:

npm install -D nodemon typescript @types/node @types/express @types/pg @types/node-cron jest @types/jest supertest
  • nodemon: Automatically restarts the server during development.
  • typescript and @types/\*: For optional TypeScript support and type definitions. Even if writing JavaScript, types help with SDK usage and editor integration.
  • jest, @types/jest: Testing framework.
  • supertest: For integration testing API endpoints.

4. Initialize Prisma:

npx prisma init --datasource-provider postgresql

This command creates:

  • A prisma directory with a schema.prisma file (for defining your database schema).
  • A .env file (if it doesn't exist) with a placeholder DATABASE\_URL.

5. Configure .env:

Open the .env file and configure your database connection string and add placeholders for Infobip credentials.

.env

# .env

# --- Database ---
# Replace with your actual PostgreSQL connection string
# Format: postgresql://USER:PASSWORD@HOST:PORT/DATABASE?schema=public
DATABASE_URL="postgresql://user:password@localhost:5432/reminders_db?schema=public"

# --- Infobip ---
# Get these from your Infobip account dashboard
INFOBIP_BASE_URL="YOUR_INFOBIP_BASE_URL" # e.g., https://youraccount.api.infobip.com
INFOBIP_API_KEY="YOUR_INFOBIP_API_KEY"
INFOBIP_SENDER_ID="InfoSMS" # Optional: Customize sender ID (subject to carrier/country rules)

# --- Application ---
PORT=3000
LOG_LEVEL="info" # e.g., error, warn, info, http, verbose, debug, silly

# --- Security ---
# Optional: Add API keys or secrets for securing your own API endpoints
# API_SECRET="your-strong-secret-for-internal-auth"
  • DATABASE_URL: Replace user, password, localhost, 5432, and reminders\_db with your actual PostgreSQL credentials and database name. Ensure the database exists.
  • INFOBIP_BASE_URL: Find this in your Infobip account under API Keys. It's specific to your account. Ensure it includes the scheme (https://).
  • INFOBIP_API_KEY: Generate an API key in your Infobip account dashboard.
  • INFOBIP_SENDER_ID: The 'From' name displayed on the SMS. Availability depends on regulations. InfoSMS is a common default.

6. Define Database Schema (prisma/schema.prisma):

Replace the contents of prisma/schema.prisma with the following schema for our reminders:

Prisma

// prisma/schema.prisma

generator client {
  provider = "prisma-client-js"
}

datasource db {
  provider = "postgresql"
  url      = env("DATABASE_URL")
}

model Reminder {
  id                   String   @id @default(cuid())
  recipientPhoneNumber String // Store consistently, e.g., E.164 format recommended
  message              String
  reminderTime         DateTime // Store in UTC
  status               Status   @default(PENDING) // PENDING, SENT, FAILED
  createdAt            DateTime @default(now())
  updatedAt            DateTime @updatedAt
  // Optional fields for retry logic:
  // retryCount        Int       @default(0)
  // lastAttemptTime   DateTime?

  @@index([reminderTime, status]) // Index for efficient querying by the scheduler
}

enum Status {
  PENDING
  SENT
  FAILED
  // RETRYING // Optional status for retry logic
}
  • We define a Reminder model with necessary fields.
  • reminderTime is crucial and should always be stored in UTC to avoid time zone issues.
  • status tracks whether the reminder has been processed.
  • An index on reminderTime and status significantly speeds up queries performed by the scheduler.
  • E.164 format (+15551234567) is recommended for storing recipientPhoneNumber for consistency.

7. Apply Database Migrations:

Run the following command to create the Reminder table in your database based on the schema:

npx prisma migrate dev --name init

This command will:

  • Create the SQL migration file in prisma/migrations.
  • Apply the migration to your database.
  • Generate the Prisma Client (@prisma/client) based on your schema.

8. Project Structure:

Organize your code for better maintainability. Create a src directory:

node-infobip-reminders/
β”œβ”€β”€ prisma/
β”‚   β”œβ”€β”€ schema.prisma
β”‚   └── migrations/
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ config/         # Configuration files (Infobip client, logger)
β”‚   β”œβ”€β”€ controllers/    # Request handlers for API routes
β”‚   β”œβ”€β”€ routes/         # Express route definitions
β”‚   β”œβ”€β”€ services/       # Business logic (scheduling, SMS sending)
β”‚   β”œβ”€β”€ utils/          # Utility functions (error handling, validation)
β”‚   β”œβ”€β”€ app.js          # Express application setup
β”‚   └── server.js       # Server entry point
β”œβ”€β”€ .github/            # CI/CD workflows (optional)
β”‚   └── workflows/
β”‚       └── deploy.yml
β”œβ”€β”€ .env                # Environment variables (DO NOT COMMIT)
β”œβ”€β”€ .gitignore
β”œβ”€β”€ package.json
└── package-lock.json

Create these directories: mkdir -p src/config src/controllers src/routes src/services src/utils

9. Basic Server Setup (src/server.js and src/app.js):

  • src/server.js: Entry point to start the server.
require('dotenv').config();
const app = require('./app');
const logger = require('./config/logger');
const initializeScheduler = require('./services/schedulerService');

const PORT = process.env.PORT || 3000;

const server = app.listen(PORT, () => {
  logger.info(`Server running on port ${PORT}`);

  initializeScheduler();
});

process.on('SIGTERM', () => {
  logger.info('SIGTERM signal received: closing HTTP server');
  server.close(() => {
    logger.info('HTTP server closed');

    process.exit(0);
  });
});
  • src/app.js: Express application configuration.
const express = require('express');
const rateLimit = require('express-rate-limit');
const reminderRoutes = require('./routes/reminderRoutes');
const { handleError } = require('./utils/errorHandler');
const logger = require('./config/logger');

const app = express();

app.use((req, res, next) => {
  logger.http(`Incoming Request: ${req.method} ${req.url}`);
  next();
});

app.use(express.json());
app.use(express.urlencoded({ extended: true }));

const limiter = rateLimit({
	windowMs: 15 * 60 * 1000,
	max: 100,
	standardHeaders: true,
	legacyHeaders: false,
  message: 'Too many requests from this IP, please try again after 15 minutes',
});
app.use(limiter);

app.get('/health', (req, res) => res.status(200).send('OK'));
app.use('/api/reminders', reminderRoutes);

app.use((req, res, next) => {
  const error = new Error('Not Found');
  error.status = 404;
  next(error);
});

app.use((err, req, res, next) => {
  handleError(err, res);
});

module.exports = app;

10. Configure Logger (src/config/logger.js):

const winston = require('winston');

const logger = winston.createLogger({
  level: process.env.LOG_LEVEL || 'info',
  format: winston.format.combine(
    winston.format.timestamp(),
    winston.format.errors({ stack: true }),
    winston.format.splat(),
    winston.format.json()
  ),
  defaultMeta: { service: 'reminder-service' },
  transports: [


    new winston.transports.File({ filename: 'error.log', level: 'error' }),
    new winston.transports.File({ filename: 'combined.log' }),
  ],
});

if (process.env.NODE_ENV !== 'production') {
  logger.add(new winston.transports.Console({
    format: winston.format.combine(
      winston.format.colorize(),
      winston.format.simple()
    )
  }));
}

module.exports = logger;

11. Add Run Scripts (package.json):

Add scripts to your package.json for convenience:

{
  "scripts": {
    "start": "node src/server.js",
    "dev": "nodemon src/server.js",
    "test": "jest",
    "prisma:migrate": "prisma migrate dev",
    "prisma:generate": "prisma generate",
    "prisma:studio": "prisma studio"
  }
}

Now you can run npm run dev to start the server with automatic restarts, npm start to run it normally, and npm test to run tests (once configured).


2. Implementing Core Functionality (Scheduling & SMS Sending)

This is the heart of the service. We'll set up the Infobip client, create a service to send SMS, and build the scheduler to check for due reminders.

1. Configure Infobip Client (src/config/infobipClient.js):

const { Infobip, AuthType } = require('@infobip-api/sdk');
const logger = require('./logger');

const { INFOBIP_BASE_URL, INFOBIP_API_KEY } = process.env;

if (!INFOBIP_BASE_URL || !INFOBIP_API_KEY) {
  logger.error('Infobip Base URL or API Key not found in environment variables.');


}

let infobipClient;

try {

  const baseUrl = INFOBIP_BASE_URL && !INFOBIP_BASE_URL.startsWith('http')
      ? `https://${INFOBIP_BASE_URL}`
      : INFOBIP_BASE_URL;

  if (baseUrl && INFOBIP_API_KEY) {
      infobipClient = new Infobip({
        baseUrl: baseUrl,
        apiKey: INFOBIP_API_KEY,
        authType: AuthType.ApiKey,
      });
      logger.info('Infobip client initialized successfully.');
  } else {
      logger.warn('Infobip client could not be initialized due to missing configuration.');
  }

} catch (error) {
    logger.error('Failed to initialize Infobip client:', error);

}

module.exports = infobipClient;
  • This initializes the Infobip SDK instance using credentials from .env.
  • Includes basic error handling for missing configuration.
  • Adds a check to ensure the base URL starts with http before passing it to the SDK.

2. Create SMS Sending Service (src/services/smsService.js):

const infobipClient = require('../config/infobipClient');
const logger = require('../config/logger');
const { parsePhoneNumberFromString } = require('libphonenumber-js');

const SENDER_ID = process.env.INFOBIP_SENDER_ID || 'InfoSMS';

const formatPhoneNumberForInfobip = (phoneNumberInput) => {
    try {
        const phoneNumber = parsePhoneNumberFromString(phoneNumberInput);
        if (phoneNumber && phoneNumber.isValid()) {

            return phoneNumber.format('E.164').substring(1);
        }
    } catch (error) {
        logger.warn(`Could not parse phone number for Infobip formatting: ${phoneNumberInput}`, error);
    }


    if (/^\d{10,15}$/.test(phoneNumberInput)) {
        return phoneNumberInput;
    }

    const digitsOnly = phoneNumberInput.replace(/\D/g, '');
    if (/^\d{10,15}$/.test(digitsOnly)) {
        logger.warn(`Used basic digit removal for Infobip format: ${phoneNumberInput} -> ${digitsOnly}`);
        return digitsOnly;
    }

    logger.error(`Invalid or unformattable phone number for Infobip: ${phoneNumberInput}`);
    return null;
}

const sendSms = async (recipientPhoneNumber, messageText) => {
  if (!infobipClient) {
      logger.error('Infobip client is not initialized. Cannot send SMS.');
      throw new Error('SMS service unavailable.');
  }

  if (!recipientPhoneNumber || !messageText) {
    throw new Error('Recipient phone number and message text are required.');
  }


  const formattedPhoneNumber = formatPhoneNumberForInfobip(recipientPhoneNumber);

  if (!formattedPhoneNumber) {
      throw new Error(`Invalid recipient phone number format: ${recipientPhoneNumber}`);
  }

  logger.info(`Attempting to send SMS to ${formattedPhoneNumber} (formatted from ${recipientPhoneNumber})`);

  try {
    const response = await infobipClient.channels.sms.send({
      messages: [
        {
          destinations: [{ to: formattedPhoneNumber }],
          from: SENDER_ID,
          text: messageText,
        },
      ],
    });


    const messageInfo = response.data.messages[0];
    logger.info(`SMS sent successfully via Infobip. Bulk ID: ${response.data.bulkId}, Message ID: ${messageInfo.messageId}, Status: ${messageInfo.status.name}`);




    if (messageInfo.status.groupId >= 3) {
        logger.warn(`Infobip reported a non-successful status for message ${messageInfo.messageId}: ${messageInfo.status.name} (${messageInfo.status.description})`);


    }

    return response.data;

  } catch (error) {

    let errorMessage = error.message;
    if (error.response && error.response.data) {
        errorMessage = `Infobip API Error: ${JSON.stringify(error.response.data)}`;
    } else if (error.request) {
        errorMessage = `Infobip request failed: No response received.`;
    }
    logger.error(`Error sending SMS via Infobip to ${formattedPhoneNumber}: ${errorMessage}`, error);



    throw new Error(`Failed to send SMS: ${error.message}`);
  }
};

module.exports = {
  sendSms,
};
  • Encapsulates the logic for sending an SMS.
  • Uses the configured infobipClient.
  • Uses libphonenumber-js to attempt parsing and formatting the number to the digit-only international format Infobip usually expects (e.g., 44... from +44...). Includes basic fallbacks but throws an error if formatting fails.
  • Logs success and error details, including Infobip's messageId which is crucial for debugging.
  • Includes basic checking of the response status group ID. Refer to Infobip documentation for detailed status meanings.
  • Improved logging for Infobip API errors.

3. Implement the Scheduler (src/services/schedulerService.js):

const cron = require('node-cron');
const { PrismaClient } = require('@prisma/client');
const { sendSms } = require('./smsService');
const logger = require('../config/logger');

const prisma = new PrismaClient();

const cronExpression = '* * * * *';

let taskRunning = false;

const checkAndSendReminders = async () => {
  if (taskRunning) {
    logger.warn('Reminder check is already running. Skipping this cycle.');
    return;
  }

  taskRunning = true;
  logger.info('Running scheduled reminder check...');

  try {


    const now = new Date();

    const adjustedNow = new Date(now.getTime() + 1000);
    const oneMinuteAgo = new Date(now.getTime() - 60 * 1000);


    const dueReminders = await prisma.reminder.findMany({
      where: {
        status: 'PENDING',
        reminderTime: {
          gte: oneMinuteAgo,
          lte: adjustedNow,
        },
      },







    });

    if (dueReminders.length === 0) {
      logger.info('No pending reminders due at this time.');
      taskRunning = false;
      return;
    }

    logger.info(`Found ${dueReminders.length} reminders to send.`);


    for (const reminder of dueReminders) {
      try {
        logger.info(`Processing reminder ID: ${reminder.id} for ${reminder.recipientPhoneNumber}`);
        await sendSms(reminder.recipientPhoneNumber, reminder.message);


        await prisma.reminder.update({
          where: { id: reminder.id },
          data: { status: 'SENT',  },
        });
        logger.info(`Reminder ID: ${reminder.id} marked as SENT.`);

      } catch (error) {
        logger.error(`Failed to process reminder ID: ${reminder.id}. Error: ${error.message}`);

        try {


          await prisma.reminder.update({
            where: { id: reminder.id },
            data: { status: 'FAILED',  },
          });
           logger.warn(`Reminder ID: ${reminder.id} marked as FAILED.`);
        } catch (updateError) {
            logger.error(`Failed to update status to FAILED for reminder ID: ${reminder.id}. Update Error: ${updateError.message}`);
        }
      }
    }
  } catch (error) {
    logger.error(`Error during scheduled reminder check: ${error.message}`, error);
  } finally {
    taskRunning = false;
     logger.info('Finished scheduled reminder check.');
  }
};

const initializeScheduler = () => {
    if (!cron.validate(cronExpression)) {
        logger.error(`Invalid cron expression: ${cronExpression}. Scheduler not started.`);
        return;
    }

    logger.info(`Scheduler initialized. Will run job with cron expression: ${cronExpression}`);
    cron.schedule(cronExpression, checkAndSendReminders, {
      scheduled: true,
      timezone: ""UTC""
    });




};

module.exports = initializeScheduler;
  • Uses node-cron to schedule checkAndSendReminders to run every minute (\* \* \* \* \*). Important: The cron job itself runs based on UTC (timezone: ""UTC"") because our database times are in UTC.
  • Implements a simple taskRunning lock to prevent the job from running concurrently if the previous run takes longer than a minute.
  • Calculates a time window (past minute up to now + small buffer) to fetch pending reminders whose reminderTime falls within this window. Crucially, this comparison works correctly because both reminderTime in the DB and the now/oneMinuteAgo variables are in UTC.
  • Iterates through due reminders:
  • Calls sendSms.
  • Updates the reminder status to SENT on success.
  • Updates the status to FAILED on error. Includes error handling for the status update itself. (Retry logic placeholders added).
  • Provides robust logging throughout the process.
  • The initializeScheduler function is exported to be called from server.js after the server starts.

3. Building the API Layer

We need endpoints to create, view, and potentially delete reminders.

1. Define Validation Rules (src/utils/validators.js):

const { body, param, validationResult } = require('express-validator');
const { PrismaClient } = require('@prisma/client');
const { parsePhoneNumberFromString, isValidPhoneNumber } = require('libphonenumber-js');

const prisma = new PrismaClient();

const handleValidationErrors = (req, res, next) => {
  const errors = validationResult(req);
  if (!errors.isEmpty()) {
    return res.status(400).json({ errors: errors.array() });
  }
  next();
};

const reminderValidationRules = () => {
  return [

    body('recipientPhoneNumber')
        .trim()
        .notEmpty().withMessage('Recipient phone number is required.')
        .custom(value => {

            if (!isValidPhoneNumber(value)) {
                 throw new Error('Invalid phone number format.');
            }

            const phoneNumber = parsePhoneNumberFromString(value);
            if (!phoneNumber || !phoneNumber.isValid()) {
                 throw new Error('Invalid phone number format.');
            }



            return true;
         }).withMessage('Must be a valid phone number (international format recommended, e.g., +15551234567).'),


    body('message')
      .trim()
      .notEmpty().withMessage('Message is required.')
      .isLength({ max: 1600 }).withMessage('Message exceeds reasonable length limit (consider multi-part SMS if needed).'),


    body('reminderTime')
      .isISO8601({ strict: true, strictSeparator: true }).withMessage('Reminder time must be a valid ISO8601 date string with timezone (e.g., 2025-12-31T10:00:00Z or 2025-12-31T05:00:00-05:00).')
      .custom((value) => {
        const reminderDate = new Date(value);
        if (isNaN(reminderDate.getTime())) {
             throw new Error('Invalid date value.');
        }
        if (reminderDate <= new Date()) {
          throw new Error('Reminder time must be in the future.');
        }
        return true;
      }),
  ];
};

const idValidationRules = () => {
  return [
    param('id').isString().notEmpty().withMessage('Reminder ID is required.')
     .isLength({ min: 25, max: 25 }).matches(/^c[a-z0-9]{24}$/).withMessage('Invalid Reminder ID format (must be CUID).')
  ];
};

module.exports = {
  reminderValidationRules,
  idValidationRules,
  handleValidationErrors,
};
  • Uses express-validator for clear and reusable validation logic.
  • Uses libphonenumber-js for robust phone number validation. Enforces valid format. Includes an optional commented line to normalize to E.164.
  • Validates recipientPhoneNumber, message (increased length limit, Infobip handles multi-part), and reminderTime (must be strict ISO8601 format with timezone and in the future).
  • Includes a middleware handleValidationErrors to return formatted errors.
  • Adds stricter CUID format validation for the ID parameter.

2. Create Reminder Controller (src/controllers/reminderController.js):

const { PrismaClient } = require('@prisma/client');
const logger = require('../config/logger');
const { parsePhoneNumberFromString } = require('libphonenumber-js');

const prisma = new PrismaClient();

const createReminder = async (req, res, next) => {
  try {
    const { message, reminderTime } = req.body;
    let { recipientPhoneNumber } = req.body;



    const reminderDate = new Date(reminderTime);



    const phoneNumber = parsePhoneNumberFromString(recipientPhoneNumber);
    if (!phoneNumber || !phoneNumber.isValid()) {

        throw new Error('Invalid phone number passed validation.');
    }
    const phoneNumberE164 = phoneNumber.format('E.164');

    const newReminder = await prisma.reminder.create({
      data: {
        recipientPhoneNumber: phoneNumberE164,
        message,
        reminderTime: reminderDate,

      },
    });

    logger.info(`Reminder created successfully with ID: ${newReminder.id}`);
    res.status(201).json({
        message: 'Reminder created successfully.',
        reminder: {
            id: newReminder.id,
            recipientPhoneNumber: newReminder.recipientPhoneNumber,
            message: newReminder.message,
            reminderTime: newReminder.reminderTime.toISOString(),
            status: newReminder.status,
            createdAt: newReminder.createdAt.toISOString(),
        }
    });
  } catch (error) {
     logger.error(`Error creating reminder: ${error.message}`, { stack: error.stack, body: req.body });

     next(error);
  }
};

const getReminderById = async (req, res, next) => {
    try {
        const { id } = req.params;
        const reminder = await prisma.reminder.findUnique({
            where: { id: id },
        });

        if (!reminder) {

            return res.status(404).json({ message: 'Reminder not found.' });
        }

         res.status(200).json({
             id: reminder.id,
             recipientPhoneNumber: reminder.recipientPhoneNumber,
             message: reminder.message,
             reminderTime: reminder.reminderTime.toISOString(),
             status: reminder.status,
             createdAt: reminder.createdAt.toISOString(),
             updatedAt: reminder.updatedAt.toISOString(),
         });
    } catch (error) {

        if (error.code === 'P2023' || (error.message && error.message.includes('Malformed ObjectID'))) {
             logger.warn(`Attempt to fetch reminder with invalid ID format: ${req.params.id}`);
             return res.status(400).json({ message: 'Invalid Reminder ID format.' });
        }
        logger.error(`Error fetching reminder by ID ${req.params.id}: ${error.message}`, { stack: error.stack });

        next(error);
    }
};

module.exports = {
    createReminder,
    getReminderById,


};

Simpler Alternative: Send the Same SMS With SMSRoute (No-KYC, Direct Routes)

If you want to replace legacy aggregator SDK boilerplate, multi-week compliance queues, and opaque carrier surcharges with a single HTTP request, SMSRoute delivers global SMS over direct Tier-1 carrier interconnects with instant API access and transparent per-country pricing.

curl -X POST https://api.sendsmsnokyc.com/messages \
  -H "x-api-key: $SMSROUTE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "to": ["+14155551234"],
    "channel": ["sms"],
    "body": "Your verification code is 482910"
  }'
  • Instant onboarding: No KYC paperwork or sales queues β€” grab an API key and fund with crypto (BTC/USDT) or card.
  • Direct Tier-1 routes: Verify real handset delivery, DLR latency, and Sender ID preservation before launch via SMSRoute Live Carrier Testing.
  • Transparent global pricing: Compare exact per-country termination rates on our live pricing page.

Ship Global SMS in One API Call

Skip legacy SDK sprawl and carrier bottlenecks. Send OTPs, alerts, and bulk campaigns across 190+ countries with SMSRoute.

Explore SMSRoute Developers β†’