Tutorials

Developer Guide: Building a Node.js Express App for Scheduled SMS Reminders with Vonage

A guide for building a Node.js/Express application to schedule and send SMS reminders using the Vonage Messages API, covering setup, database, scheduling, API, error handling, and deployment.

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

Developer Quick-Start: A guide for building a Node.js/Express application to schedule and send SMS reminders using the Vonage Messages API, covering setup, database, scheduling, API, error handling, and deployment. 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.

This guide provides a complete walkthrough for building, deploying, and maintaining a production-ready application to schedule and send SMS reminders using Node.js, Express, and the Vonage Messages API. We'll cover everything from initial setup and core logic to database integration, error handling, security, and deployment.

Target Audience: Developers familiar with Node.js and basic web concepts looking to implement reliable scheduled messaging.

Project Overview and Goals

What We're Building: A backend service with a REST API that allows users to:

  1. Schedule an SMS message to be sent to a specific phone number at a future date and time.
  2. List upcoming scheduled messages (with pagination).
  3. Cancel a scheduled message.

The service will reliably check for due messages and use the Vonage API to send them.

Problem Solved: Automating the process of sending time-sensitive reminders, notifications, or alerts via SMS without manual intervention at the exact time of sending. This is useful for appointment reminders, event notifications, subscription renewals, etc.

Technologies Used:

  • Node.js: The JavaScript runtime environment.
  • Express: A minimal and flexible Node.js web application framework for building the API.
  • Vonage Messages API: The third-party service used to send SMS messages.
  • node-cron: A simple cron-like job scheduler for Node.js to periodically check for due messages.
  • dotenv: To manage environment variables securely.
  • PostgreSQL/SQLite (Recommended): A database for persistent storage of scheduled messages. We'll use Prisma as the ORM.
  • zod: For robust input validation.
  • nodemon (Development): For automatic server restarts during development.
  • jest & supertest (Testing): For automated API testing.

System Architecture:

[Placeholder: A diagram image (e.g., PNG/SVG) illustrating the system architecture should be inserted here. The diagram should show User -> API -> Scheduling Service -> Database and Vonage API -> Recipient.]

Prerequisites:

  • Node.js (LTS version recommended) and npm/yarn installed.
  • A Vonage API account (Sign up here for free credit).
  • Your Vonage API Key and Secret (found on the Vonage API Dashboard).
  • A Vonage virtual phone number capable of sending SMS (Purchase one via the Dashboard or CLI).
  • Basic understanding of REST APIs, JavaScript, and asynchronous programming.
  • (Optional) Docker installed if using PostgreSQL via Docker.
  • (Optional) A tool like Postman or curl for testing the API.

1. Setting up the Project

Let's initialize the project, install dependencies, and set up the basic structure.

1.1 Initialize Project: Open your terminal and run:

mkdir vonage-sms-scheduler
cd vonage-sms-scheduler

npm init -y

1.2 Install Dependencies:

npm install express @vonage/server-sdk node-cron dotenv @prisma/client zod

npm install prisma --save-dev

npm install nodemon jest supertest --save-dev
  • express: Web framework.
  • @vonage/server-sdk: Official Vonage Node library.
  • node-cron: For running scheduled tasks within Node.
  • dotenv: Loads environment variables from a .env file.
  • @prisma/client: Prisma's database client.
  • zod: Input validation library.
  • prisma: Prisma's CLI for migrations and studio.
  • nodemon: Automatically restarts the server on file changes during development.
  • jest: Testing framework.
  • supertest: HTTP assertion library for testing APIs.

1.3 Configure package.json Scripts: Open package.json and add/modify the scripts section:

{

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

}

1.4 Project Structure: Create the following directory structure:

vonage-sms-scheduler/
β”œβ”€β”€ prisma/                 # Prisma schema and migrations
β”‚   └── schema.prisma
β”œβ”€β”€ src/                    # Source code
β”‚   β”œβ”€β”€ config/             # Configuration files (e.g., Vonage client setup)
β”‚   β”‚   └── vonageClient.js
β”‚   β”œβ”€β”€ controllers/        # Request handlers
β”‚   β”‚   └── scheduleController.js
β”‚   β”œβ”€β”€ models/             # Database interaction logic (using Prisma)
β”‚   β”œβ”€β”€ routes/             # API route definitions
β”‚   β”‚   └── scheduleRoutes.js
β”‚   β”œβ”€β”€ services/           # Business logic (scheduling)
β”‚   β”‚   └── schedulerService.js
β”‚   β”œβ”€β”€ utils/              # Utility functions (e.g., error handling)
β”‚   β”‚   └── errorHandler.js
β”‚   └── server.js           # Main application entry point
β”œβ”€β”€ tests/                  # Automated tests
β”‚   └── scheduleRoutes.test.js
β”œβ”€β”€ .env                    # Environment variables (DO NOT COMMIT)
β”œβ”€β”€ .gitignore              # Files/folders to ignore in Git
β”œβ”€β”€ Dockerfile              # (Optional) Example Docker configuration
β”œβ”€β”€ jest.config.js          # (Optional) Jest configuration
β”œβ”€β”€ package.json
└── package-lock.json

1.5 Create .gitignore: Create a .gitignore file in the root directory:

# .gitignore
node_modules/
.env
dist/
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Prisma
prisma/dev.db       # If using SQLite
prisma/dev.db-journal

# Jest cache
coverage/
.jest-cache/

1.6 Create .env File: Create a .env file in the root directory and add your Vonage credentials and number. Never commit this file to version control.

.env

# .env

# Vonage API Credentials (Get from Vonage Dashboard)
VONAGE_API_KEY=YOUR_API_KEY
VONAGE_API_SECRET=YOUR_API_SECRET
# Optional, needed for JWT authentication or features requiring an application context (e.g., webhooks, voice), not strictly for basic SMS via API Key/Secret
# VONAGE_APPLICATION_ID=YOUR_VONAGE_APPLICATION_ID
# Optional, path to private key if using JWT auth
# VONAGE_PRIVATE_KEY_PATH=./private.key

# Vonage Number (Must be SMS-enabled and purchased in your account)
VONAGE_FROM_NUMBER=YOUR_VONAGE_VIRTUAL_NUMBER

# Database Connection (Example for PostgreSQL)
# Format: postgresql://USER:PASSWORD@HOST:PORT/DATABASE?schema=public
DATABASE_URL=""postgresql://user:password@localhost:5432/sms_scheduler?schema=public""

# Server Configuration
PORT=3000

# Scheduler Configuration
# Run every minute by default (See Warning Below)
SCHEDULER_CRON_PATTERN=""*/1 * * * *""

# Logging Level (optional, for structured logging)
# LOG_LEVEL=info
  • Obtaining Credentials:
  • VONAGE\_API\_KEY, VONAGE\_API\_SECRET: Found at the top of the Vonage API Dashboard.
  • VONAGE\_FROM\_NUMBER: Go to Numbers > Your Numbers in the dashboard. Ensure the number has SMS capability. Use the E.164 format (e.g., 12015550123).
  • DATABASE\_URL: Adjust this based on your chosen database (PostgreSQL, MySQL, SQLite). For local PostgreSQL with Docker, you might use postgresql://postgres:password@localhost:5432/sms\_scheduler. For SQLite, it would be file:./prisma/dev.db.
  • Security Warning: The example DATABASE\_URL uses default user:password. Never use default or easily guessable credentials in production. Use strong, unique passwords and consider secrets management solutions.
  • Scheduler Frequency Warning: The default SCHEDULER\_CRON\_PATTERN runs every minute. While useful for testing, this can be resource-intensive and potentially costly (e.g., database queries, API calls if many messages are due). Consider less frequent intervals (e.g., \*/5 \* \* \* \* for every 5 minutes) for production unless per-minute granularity is essential.

1.7 Initialize Prisma: Run the Prisma init command. If you haven't already chosen a database type, it will prompt you. We'll use PostgreSQL here.

npx prisma init --datasource-provider postgresql

This creates the prisma/schema.prisma file and updates .env with a default DATABASE_URL (which you should have already customized).

2. Creating a Database Schema and Data Layer

We need a way to store the scheduled messages persistently.

2.1 Define Prisma Schema: Open prisma/schema.prisma and define the model for our scheduled messages:

Prisma

// prisma/schema.prisma

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

datasource db {
  provider = ""postgresql"" // Or ""sqlite"", ""mysql"", etc.
  url      = env(""DATABASE_URL"")
}

model ScheduledMessage {
  id              String    @id @default(cuid()) // Unique identifier
  recipientNumber String    // E.164 format phone number
  message         String    // The SMS message content
  sendAt          DateTime  // The exact UTC time to send the message
  status          String    @default(""pending"") // 'pending', 'sent', 'failed', 'processing'
  vonageMessageId String?   // Store Vonage message ID on success
  failureReason   String?   // Store error message on failure
  retryCount      Int       @default(0) // For implementing retries
  createdAt       DateTime  @default(now())
  updatedAt       DateTime  @updatedAt

  @@index([status, sendAt]) // Index for efficient querying by the scheduler
}
  • id: Primary key.
  • recipientNumber: Target phone number.
  • message: SMS content.
  • sendAt: Crucial field, stored in UTC.
  • status: Tracks the message state ('pending', 'sent', 'failed', potentially 'processing' for concurrency).
  • vonageMessageId: Useful for tracking successful sends.
  • failureReason: For debugging failed sends.
  • retryCount: Added for potential retry logic.
  • @@index: Optimizes queries for finding pending messages due to be sent.

2.2 Apply Database Migrations: Create the table in your database using Prisma Migrate. Make sure your database server (e.g., PostgreSQL) is running.

npx prisma migrate dev --name init_scheduled_messages

Prisma will generate SQL based on your schema and apply it. For production, you'll use npx prisma migrate deploy.

2.3 Generate Prisma Client: Generate the type-safe database client:

npx prisma generate

Now you can import and use PrismaClient in your code.

2.4 (Optional) Explore with Prisma Studio: You can view and manipulate your database data easily:

npx prisma studio

3. Implementing Core Functionality (Scheduling Service)

This service will periodically check the database for messages that need to be sent.

3.1 Configure Vonage Client: Create src/config/vonageClient.js:

import { Vonage } from '@vonage/server-sdk';
import { Auth } from '@vonage/auth';
import dotenv from 'dotenv';

dotenv.config();

const credentials = new Auth({
  apiKey: process.env.VONAGE_API_KEY,
  apiSecret: process.env.VONAGE_API_SECRET,



});

const vonage = new Vonage(credentials);

export default vonage;
  • Why this setup? Encapsulates the Vonage client initialization, making it reusable and easy to manage credentials. Uses the recommended Auth class.

3.2 Create the Scheduler Service: Create src/services/schedulerService.js:

import cron from 'node-cron';
import { PrismaClient } from '@prisma/client';
import vonage from '../config/vonageClient.js';
import dotenv from 'dotenv';

dotenv.config();

const prisma = new PrismaClient();

const CRON_PATTERN = process.env.SCHEDULER_CRON_PATTERN || '*/1 * * * *';
const VONAGE_FROM_NUMBER = process.env.VONAGE_FROM_NUMBER;

if (!VONAGE_FROM_NUMBER) {
    console.error('Error: VONAGE_FROM_NUMBER environment variable is not set.');
    process.exit(1);
}

async function findAndSendDueMessages() {
    console.log(`[${new Date().toISOString()}] Scheduler running...`);
    const now = new Date();

    try {
        const messagesToSend = await prisma.scheduledMessage.findMany({
            where: {
                status: 'pending',
                sendAt: {
                    lte: now,
                },
            },
            take: 100,
            orderBy: {
                sendAt: 'asc',
            }
        });

        if (messagesToSend.length === 0) {
            console.log(`[${new Date().toISOString()}] No messages due.`);
            return;
        }

        console.log(`[${new Date().toISOString()}] Found ${messagesToSend.length} messages to send.`);

        for (const msg of messagesToSend) {
            try {



                console.log(`[${new Date().toISOString()}] Attempting to send message ID: ${msg.id} to ${msg.recipientNumber}`);
                const responseData = await vonage.sms.send({
                    to: msg.recipientNumber,
                    from: VONAGE_FROM_NUMBER,
                    text: msg.message,
                });


                if (responseData.message_uuid) {
                     console.log(`[${new Date().toISOString()}] Message ${msg.id} sent successfully. Vonage ID: ${responseData.message_uuid}`);
                    await prisma.scheduledMessage.update({
                        where: { id: msg.id },
                        data: {
                            status: 'sent',
                            vonageMessageId: responseData.message_uuid,
                            failureReason: null,
                        },
                    });
                } else {

                    const errorText = responseData.messages?.[0]?.['error-text'] || 'Unknown error or unexpected response structure';
                    const status = responseData.messages?.[0]?.status || 'N/A';
                    const failureReason = `Vonage API Error: ${errorText}. Status: ${status}. Response: ${JSON.stringify(responseData)}`;
                    console.error(`[${new Date().toISOString()}] Failed to send message ${msg.id} (message_uuid missing): ${failureReason}`);
                    await prisma.scheduledMessage.update({
                        where: { id: msg.id },
                        data: {
                            status: 'failed',
                            failureReason: failureReason.substring(0, 500),


                        },
                    });
                }

            } catch (error) {

                const failureReason = `Error sending SMS for ID ${msg.id}: ${error.message || error.toString()}`;
                console.error(`[${new Date().toISOString()}] ${failureReason}`, error.stack);
                await prisma.scheduledMessage.update({
                    where: { id: msg.id },
                    data: {
                        status: 'failed',
                        failureReason: failureReason.substring(0, 500),


                    },
                });
            }
        }
    } catch (error) {

        console.error(`[${new Date().toISOString()}] Error querying database: ${error.message || error.toString()}`, error.stack);
    }
}

function startScheduler() {
    console.log(`[${new Date().toISOString()}] Initializing scheduler with pattern: ${CRON_PATTERN}`);

    if (!cron.validate(CRON_PATTERN)) {
         console.error(`[${new Date().toISOString()}] Invalid CRON pattern: ""${CRON_PATTERN}"". Scheduler not started.`);
         return;
    }


    cron.schedule(CRON_PATTERN, findAndSendDueMessages, {
        scheduled: true,
        timezone: ""UTC""
    });

    console.log(`[${new Date().toISOString()}] Scheduler started successfully.`);




}

export { startScheduler, findAndSendDueMessages };
  • Why node-cron? Simple and effective for running tasks at specific intervals within the Node.js process. For highly critical, distributed systems, a dedicated external task queue/scheduler might be better, but node-cron is excellent for many use cases.
  • Why Query Logic? status: 'pending' and sendAt: { lte: now } efficiently finds only the messages that are due and haven't been processed. take: 100 prevents loading too many messages at once. orderBy ensures older messages are processed first.
  • Why UTC? Storing dates and running the scheduler in UTC avoids time zone ambiguity and conversion issues. The client creating the schedule is responsible for converting their local time to UTC before sending it to the API.
  • Error Handling: Each message send is wrapped in try...catch. Failures update the status to 'failed' with a reason. The logic now focuses on message\_uuid for success and logs detailed errors otherwise. Database query errors are also caught.
  • Vonage Response: The code primarily checks for message\_uuid which indicates success in the current Vonage Messages API response structure. If it's missing, the response is logged, and the message is marked as failed.

4. Building the API Layer (Express)

Let's create the endpoints to manage scheduled messages.

4.1 Basic Express Server Setup: Create src/server.js:

import express from 'express';
import dotenv from 'dotenv';
import helmet from 'helmet';
import rateLimit from 'express-rate-limit';
import scheduleRoutes from './routes/scheduleRoutes.js';
import { startScheduler } from './services/schedulerService.js';
import { genericErrorHandler } from './utils/errorHandler.js';

dotenv.config();

const app = express();
const PORT = process.env.PORT || 3000;

app.use(helmet());

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

const apiLimiter = 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('/api', apiLimiter);

app.get('/health', (req, res) => {
    res.status(200).json({ status: 'UP', timestamp: new Date().toISOString() });
});

app.use('/api/schedules', scheduleRoutes);

app.use(genericErrorHandler);

startScheduler();

const server = app.listen(PORT, () => {
    console.log(`[${new Date().toISOString()}] Server running on http://localhost:${PORT}`);
});

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

        process.exit(0);
    });
});

export default app;

4.2 Create API Routes: Create src/routes/scheduleRoutes.js:

import express from 'express';
import {
    createSchedule,
    getSchedules,
    getScheduleById,
    cancelSchedule,
} from '../controllers/scheduleController.js';

const router = express.Router();

router.post('/', createSchedule);

router.get('/', getSchedules);

router.get('/:id', getScheduleById);

router.delete('/:id', cancelSchedule);

export default router;

4.3 Create Controller Logic: Create src/controllers/scheduleController.js:

import { PrismaClient } from '@prisma/client';
import { z } from 'zod';

const prisma = new PrismaClient();

const createScheduleSchema = z.object({
  recipientNumber: z.string().trim().regex(/^\+?[1-9]\d{1,14}$/, { message: ""Invalid E.164 phone number format (e.g., +12125551234)"" }),
  message: z.string().min(1, { message: ""Message cannot be empty"" }).max(1600, { message: ""Message exceeds maximum length (1600 chars)"" }),
  sendAt: z.string().datetime({ offset: true, message: ""Invalid ISO 8601 datetime string (YYYY-MM-DDTHH:mm:ss.sssZ)"" })
    .refine(dateStr => new Date(dateStr) > new Date(Date.now() + 10000), { message: ""sendAt must be at least 10 seconds in the future"" }),
});

export const createSchedule = async (req, res, next) => {
  try {

    const validationResult = createScheduleSchema.safeParse(req.body);
    if (!validationResult.success) {
      return res.status(400).json({
        message: ""Validation failed"",
        errors: validationResult.error.format(),
      });
    }

    const { recipientNumber, message, sendAt } = validationResult.data;


    const sendAtDate = new Date(sendAt);


    const newSchedule = await prisma.scheduledMessage.create({
      data: {
        recipientNumber,
        message,
        sendAt: sendAtDate,
        status: 'pending',
      },
    });


    res.status(201).json({
      message: 'SMS scheduled successfully',
      schedule: newSchedule,
    });

  } catch (error) {
    console.error(""Error in createSchedule:"", error);
    next(error);
  }
};

export const getSchedules = async (req, res, next) => {
    try {
        const { status, limit = 50, offset = 0 } = req.query;

        const queryLimit = parseInt(limit, 10);
        const queryOffset = parseInt(offset, 10);


        if (isNaN(queryLimit) || queryLimit <= 0 || queryLimit > 200) {
            return res.status(400).json({ message: 'Invalid or excessive limit parameter. Must be between 1 and 200.' });
        }
        if (isNaN(queryOffset) || queryOffset < 0) {
            return res.status(400).json({ message: 'Invalid offset parameter. Must be 0 or greater.' });
        }


        const whereClause = {};
        if (status && ['pending', 'sent', 'failed', 'processing'].includes(status)) {
            whereClause.status = status;
        }


        const [schedules, totalCount] = await prisma.$transaction([
            prisma.scheduledMessage.findMany({
                where: whereClause,
                orderBy: {
                    createdAt: 'desc',
                },
                take: queryLimit,
                skip: queryOffset,
            }),
            prisma.scheduledMessage.count({ where: whereClause })
        ]);


        res.status(200).json({
            data: schedules,
            pagination: {
                total: totalCount,
                limit: queryLimit,
                offset: queryOffset,
                count: schedules.length
            }
        });
    } catch (error) {
        console.error(""Error in getSchedules:"", error);
        next(error);
    }
};

export const getScheduleById = async (req, res, next) => {
    try {
        const { id } = req.params;

        if (!id || typeof id !== 'string' || id.length < 10) {
             return res.status(400).json({ message: 'Invalid ID format' });
        }

        const schedule = await prisma.scheduledMessage.findUnique({
            where: { id: id },
        });

        if (!schedule) {
            return res.status(404).json({ message: 'Scheduled message not found' });
        }
        res.status(200).json(schedule);
    } catch (error) {
        console.error(""Error in getScheduleById:"", error);

        next(error);
    }
};

export const cancelSchedule = async (req, res, next) => {
    try {
        const { id } = req.params;
         if (!id || typeof id !== 'string' || id.length < 10) {
             return res.status(400).json({ message: 'Invalid ID format' });
        }


        const result = await prisma.$transaction(async (tx) => {

            const schedule = await tx.scheduledMessage.findUnique({
                where: { id: id },
                select: { status: true }
            });

            if (!schedule) {

                throw new Error('NotFound');
            }

            if (schedule.status !== 'pending') {

                 throw new Error(`Cannot cancel message with status: ${schedule.status}`);
            }


            await tx.scheduledMessage.delete({
                where: { id: id },
            });

            return { success: true };
        });

        if (result.success) {
            res.status(200).json({ message: 'Scheduled message cancelled successfully' });
        }


    } catch (error) {

        if (error.message === 'NotFound') {
             return res.status(404).json({ message: 'Scheduled message not found' });
        }
        if (error.message.startsWith('Cannot cancel message')) {
             return res.status(400).json({ message: error.message });
        }

        if (error.code === 'P2025') {
             return res.status(404).json({ message: 'Scheduled message not found or already processed/cancelled' });
        }
        console.error(""Error in cancelSchedule:"", error);
        next(error);
    }
};
  • Input Validation (Zod): Using zod provides robust validation for the request body (recipientNumber format, message length, sendAt format and future date). This is crucial for security and data integrity. Added .trim() to phone number and required ISO 8601 with offset (which implies UTC 'Z'). Added small buffer to sendAt check.
  • Error Handling: try...catch blocks wrap async operations. Errors are passed to the next function, routing them to the global error handler. Specific errors (like validation, not found, bad status for cancel) are handled directly with appropriate status codes.
  • Database Interaction: Uses the generated prisma client for CRUD operations. getSchedules now includes pagination logic and returns metadata. cancelSchedule uses a transaction for atomicity.
  • Status Codes: Uses appropriate HTTP status codes (201 Created, 200 OK, 400 Bad Request, 404 Not Found).
  • Pagination: getSchedules implements limit/offset pagination with validation and returns results along with total count information.
  • Cancellation Logic: Only allows deleting messages that are still in 'pending' status, enforced within a transaction.

5. Implementing Error Handling and Logging

Robust error handling and clear logging are vital for production.

5.1 Create Generic Error Handler: Create src/utils/errorHandler.js:

export const genericErrorHandler = (err, req, res, next) => {

    console.error(`[${new Date().toISOString()}] Unhandled Error: ${err.message}`);
    console.error(err.stack);


    if (res.headersSent) {
        return next(err);
    }


    const statusCode = typeof err.statusCode === 'number' ? err.statusCode : 500;


    const responseBody = {
        message: statusCode === 500 ? 'Internal Server Error' : err.message,

        ...(process.env.NODE_ENV !== 'production' && { errorType: err.name, stack: err.stack }),
    };

    res.status(statusCode).json(responseBody);
};
  • Why? Catches any unhandled errors passed via next(error) or thrown synchronously/asynchronously in middleware/controllers. Provides a consistent error response format. Logs detailed errors server-side. Avoids sending stack traces in production responses.

5.2 Logging:

  • Current: We are using console.log and console.error. This is acceptable for simple cases or development.
  • Production Recommendation: Use a dedicated logging library like pino (very performant) or winston. These offer:
  • Log levels (info, warn, error, debug, etc.)
  • Structured logging (JSON format is common) for easier parsing by log management systems.
  • Configurable output destinations (console, file, external services).
  • Log rotation and archiving.

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 β†’