Tutorials

Build a Production-Ready SMS Scheduler with NestJS and Infobip

A step-by-step guide to building an SMS scheduling application using NestJS, Prisma, PostgreSQL, and the Infobip API for timed message delivery.

JH
Jacky Hossein
β€’ Principal Telecommunications Architect β€’ Published Nov 4, 2026 β€’ 12 min read

Developer Quick-Start: A step-by-step guide to building an SMS scheduling application using NestJS, Prisma, PostgreSQL, and the Infobip API for timed message delivery. 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 step-by-step walkthrough for building a robust SMS scheduling and reminder application using the NestJS framework and the Infobip SMS API. We will cover everything from initial project setup to deployment considerations, enabling you to create a reliable system for sending timed SMS messages.

By the end of this tutorial, you will have a functional NestJS application capable of accepting API requests to schedule SMS messages, storing these schedules, interacting with the Infobip API to schedule and cancel messages, and providing endpoints to manage these scheduled messages. This solves the common business need for automated reminders, notifications, and time-sensitive alerts via SMS.

Project Overview and Goals

What We'll Build:

  • A NestJS backend application with a REST API.
  • Endpoints to:
  • Schedule a new SMS message for a future date/time.
  • Retrieve details of a specific scheduled SMS.
  • List all scheduled SMS messages (with optional status filtering).
  • Cancel a previously scheduled SMS.
  • Integration with the Infobip SMS API for actual scheduling and cancellation.
  • A database layer using Prisma and PostgreSQL to persist schedule information.
  • Proper configuration management, error handling, and validation.

Technologies Used:

  • Node.js: The JavaScript runtime environment.
  • NestJS: A progressive Node.js framework for building efficient, reliable, and scalable server-side applications. Chosen for its modular architecture, dependency injection, and built-in support for features like validation and configuration.
  • Infobip: A cloud communications platform providing an SMS API. Chosen for its reliable delivery, scheduling features, and SDK support.
  • Infobip Node.js SDK (@infobip-api/sdk): Simplifies interaction with the Infobip API.
  • Prisma: A next-generation ORM for Node.js and TypeScript. Chosen for its type safety, auto-generated migrations, and developer-friendly API.
  • PostgreSQL: A powerful, open-source object-relational database system.
  • Docker (Optional): For containerizing the application and database for easier development and deployment.

System Architecture:

graph LR
    A[Client / API Consumer] -- HTTPS Request --> B(NestJS API);
    B -- Schedule/Cancel/Query --> C(Scheduling Service);
    C -- Save/Read Schedule Data --> D[(PostgreSQL DB via Prisma)];
    C -- Schedule/Cancel SMS --> E(Infobip SMS API);
    E -- Sends SMS --> F(User's Phone);

Prerequisites:

  • Node.js (LTS version recommended, e.g., v18 or v20) and npm/yarn.
  • An Infobip Account (a free trial account is sufficient for this guide).
  • Access to a PostgreSQL database (local instance, Docker container, or cloud service).
  • Basic familiarity with TypeScript, REST APIs, and asynchronous programming.
  • Docker and Docker Compose (optional, but recommended for database setup).
  • A code editor like Visual Studio Code.

1. Setting up the Project

Let's initialize our NestJS project and configure the necessary dependencies and environment variables.

  1. Create a new NestJS Project: Open your terminal and run the NestJS CLI command:
   npx @nestjs/cli new nestjs-infobip-scheduler
   cd nestjs-infobip-scheduler

When prompted, choose your preferred package manager (npm or yarn). We'll use npm in this guide.

  1. Install Dependencies: We need several packages for configuration, scheduling (within NestJS, though Infobip handles final scheduling), Infobip SDK, Prisma, validation, and date handling.
   npm install @nestjs/config @infobip-api/sdk class-validator class-transformer date-fns date-fns-tz

   npm install prisma @prisma/client
   npm install -D @types/node

   npx prisma init --datasource-provider postgresql
  • @nestjs/config: Manages environment variables.
  • @infobip-api/sdk: The official Infobip SDK for Node.js.
  • class-validator, class-transformer: For request data validation using DTOs.
  • date-fns, date-fns-tz: Robust libraries for date and timezone manipulation.
  • prisma, @prisma/client: Prisma CLI and Client for database interaction.
  1. Configure Environment Variables: Prisma initialization created a prisma/ directory and a .env file. Update the .env file with your database connection string and placeholders for Infobip credentials.

.env

   # .env

   # Database Configuration (adjust username, password, host, port, dbname)
   # Example for local PostgreSQL:
   DATABASE_URL=""postgresql://user:password@localhost:5432/schedulerdb?schema=public""

   # Infobip Credentials
   INFOBIP_BASE_URL=""YOUR_INFOBIP_BASE_URL"" # Get from your Infobip account dashboard (e.g., xyz.api.infobip.com)
   INFOBIP_API_KEY=""YOUR_INFOBIP_API_KEY""   # Get from your Infobip account API Keys section
  • DATABASE_URL: The connection string for your PostgreSQL database. Ensure the database (schedulerdb in the example) exists. If using Docker, adjust the host (e.g., postgres).
  • INFOBIP_BASE_URL: Your unique API base URL provided by Infobip. Find this in your Infobip account under API Keys or on the main dashboard after logging in.
  • INFOBIP_API_KEY: Your secret API key generated within the Infobip portal (API > API Keys). Keep this secure.
  1. Set up Configuration Module: Integrate the @nestjs/config module to load environment variables.
   import { Module } from '@nestjs/common';
   import { ConfigModule } from '@nestjs/config';
   import { AppController } from './app.controller';
   import { AppService } from './app.service';

   @Module({
     imports: [
       ConfigModule.forRoot({
         isGlobal: true,
       }),

     ],
     controllers: [AppController],
     providers: [AppService],
   })
   export class AppModule {}
  1. Set up Database (Optional - Docker): If you don't have PostgreSQL running, you can use Docker Compose. Create a docker-compose.yml file:
   version: '3.8'
   services:
     postgres:
       image: postgres:15
       container_name: postgres_scheduler
       environment:
         POSTGRES_USER: user
         POSTGRES_PASSWORD: password
         POSTGRES_DB: schedulerdb
       ports:
         - ""5432:5432""
       volumes:
         - postgres_data:/var/lib/postgresql/data
   volumes:
     postgres_data:

Run docker-compose up -d in your terminal to start the database container. Your DATABASE_URL in .env should match the credentials (user, password, schedulerdb) and point to localhost:5432.

2. Creating a Database Schema and Data Layer (Prisma)

We'll define the schema for storing scheduled SMS information using Prisma.

  1. Define the Prisma Schema: Open prisma/schema.prisma and define the ScheduledSms model.

Prisma

   // prisma/schema.prisma
   generator client {
     provider = ""prisma-client-js""
   }

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

   model ScheduledSms {
     id            String   @id @default(cuid())
     recipient     String   // Phone number in international format
     message       String
     scheduledAt   DateTime // The intended time for the message to be sent (UTC)
     status        Status   @default(PENDING)
     infobipBulkId String?  // ID returned by Infobip for the scheduled batch
     infobipMessageId String? // Optional: ID of the specific message if needed
     createdAt     DateTime @default(now())
     updatedAt     DateTime @updatedAt
   }

   enum Status {
     PENDING          // Scheduled in our DB, not yet sent to Infobip
     SCHEDULED_INFOBIP // Successfully scheduled via Infobip API
     SENT             // Confirmed sent by Infobip (requires webhooks - advanced)
     FAILED           // Failed to schedule or send
     CANCELED         // Canceled by user request
   }
  • We store recipient, message, and the target scheduledAt time (always store in UTC).
  • status tracks the lifecycle of the scheduled message.
  • infobipBulkId is crucial for referencing the scheduled message batch within Infobip for status updates or cancellation.
  1. Apply Schema Changes and Generate Prisma Client: Run the following commands in your terminal:
   npx prisma db push

   npx prisma generate

db push is suitable for development; for production, use prisma migrate dev and prisma migrate deploy. generate updates the @prisma/client library with type-safe methods for your schema.

  1. Create Prisma Service: Create a reusable service to interact with the Prisma Client.
   nest generate module prisma
   nest generate service prisma --flat

Implement the service to connect and disconnect Prisma cleanly:

   import { Injectable, OnModuleInit, INestApplication } from '@nestjs/common';
   import { PrismaClient } from '@prisma/client';

   @Injectable()
   export class PrismaService extends PrismaClient implements OnModuleInit {
     async onModuleInit() {

       await this.$connect();
     }

     async enableShutdownHooks(app: INestApplication) {
       process.on('beforeExit', async () => {
         await app.close();
       });
     }
   }

Make the PrismaService available globally by exporting it from PrismaModule and importing PrismaModule into AppModule.

   import { Module, Global } from '@nestjs/common';
   import { PrismaService } from './prisma.service';

   @Global()
   @Module({
     providers: [PrismaService],
     exports: [PrismaService],
   })
   export class PrismaModule {}
   import { ConfigModule } from '@nestjs/config';
   import { PrismaModule } from './prisma/prisma.module';
   import { AppController } from './app.controller';
   import { AppService } from './app.service';

   @Module({
     imports: [
       ConfigModule.forRoot({ isGlobal: true }),
       PrismaModule,

     ],
     controllers: [AppController],
     providers: [AppService],
   })
   export class AppModule {}

Update src/main.ts to enable shutdown hooks for Prisma:

   import { NestFactory } from '@nestjs/core';
   import { AppModule } from './app.module';
   import { PrismaService } from './prisma/prisma.service';
   import { ValidationPipe } from '@nestjs/common';

   async function bootstrap() {
     const app = await NestFactory.create(AppModule);





     const prismaService = app.get(PrismaService);
     await prismaService.enableShutdownHooks(app);

     await app.listen(3000);
     console.log(`Application is running on: ${await app.getUrl()}`);
   }
   bootstrap();

3. Integrating with Infobip

Now, let's create a dedicated module and service to handle interactions with the Infobip API.

  1. Generate Infobip Module and Service:
   nest generate module infobip
   nest generate service infobip --flat
  1. Implement Infobip Service: This service will initialize the Infobip client using credentials from the ConfigService and provide methods to interact with the SMS API.
   import { Injectable, Logger, OnModuleInit } from '@nestjs/common';
   import { ConfigService } from '@nestjs/config';
   import { Infobip, AuthType } from '@infobip-api/sdk';
   import { SendSmsOptions } from './interfaces/infobip.interface';

   @Injectable()
   export class InfobipService implements OnModuleInit {
     private readonly logger = new Logger(InfobipService.name);
     private infobipClient: Infobip;

     constructor(private configService: ConfigService) {}

     onModuleInit() {
       const apiKey = this.configService.get<string>('INFOBIP_API_KEY');
       const baseUrl = this.configService.get<string>('INFOBIP_BASE_URL');

       if (!apiKey || !baseUrl) {
         this.logger.error('Infobip API Key or Base URL missing in configuration.');
         throw new Error('Infobip configuration is incomplete.');
       }

       this.infobipClient = new Infobip({
         baseUrl: baseUrl,
         apiKey: apiKey,
         authType: AuthType.ApiKey,
       });
       this.logger.log('Infobip Client Initialized');
     }

     async scheduleSms(options: SendSmsOptions) {
       const { recipient, message, sendAt, bulkId } = options;
       this.logger.log(`Attempting to schedule SMS via Infobip for bulkId: ${bulkId}`);

       try {


         const formattedSendAt = sendAt.toISOString();


         const response = await this.infobipClient.channels.sms.send({
            messages: [
              {
                destinations: [{ to: recipient }],
                text: message,

                sendAt: formattedSendAt,
              },
            ],
            bulkId: bulkId,
         });

         this.logger.log(`Infobip schedule response for bulkId ${bulkId}: ${JSON.stringify(response.data)}`);


         if (response.data?.messages?.length > 0 && response.data.bulkId) {
            return {
              bulkId: response.data.bulkId,

              messageId: response.data.messages[0].messageId,
              status: response.data.messages[0].status,
            };
         } else {
            throw new Error('Unexpected response structure from Infobip schedule API');
         }
       } catch (error) {
         this.logger.error(`Failed to schedule SMS via Infobip for bulkId ${bulkId}: ${error.message}`, error.stack);

         throw new Error(`Infobip API error: ${error.message}`);
       }
     }





     async cancelScheduledSms(bulkId: string) {
       this.logger.log(`Attempting to cancel scheduled SMS via Infobip for bulkId: ${bulkId}`);
       try {



          const response = await this.infobipClient.channels.sms.updateScheduledStatus({
            bulkId: bulkId,
            body: { status: 'CANCELED' }
          });

          this.logger.log(`Infobip cancel response for bulkId ${bulkId}: ${JSON.stringify(response.data)}`);



          if (response.data?.bulkId && response.data?.status === 'CANCELED') {
              return { success: true, status: response.data.status };
          } else {
              throw new Error('Failed to confirm cancellation via Infobip API response.');
          }
       } catch (error) {
          this.logger.error(`Failed to cancel SMS via Infobip for bulkId ${bulkId}: ${error.message}`, error.stack);

          throw new Error(`Infobip API cancellation error: ${error.message}`);
       }
     }




   }
  1. Define Interface: Create an interface for the scheduleSms options.
   export interface SendSmsOptions {
     recipient: string;
     message: string;
     sendAt: Date;
     bulkId: string;
   }
  1. Update Infobip Module: Make the InfobipService available.
   import { Module, Global } from '@nestjs/common';
   import { InfobipService } from './infobip.service';

   @Global()
   @Module({
     providers: [InfobipService],
     exports: [InfobipService],
   })
   export class InfobipModule {}
  1. Import into AppModule: Ensure the InfobipModule is imported in AppModule.
   import { ConfigModule } from '@nestjs/config';
   import { PrismaModule } from './prisma/prisma.module';
   import { InfobipModule } from './infobip/infobip.module';
   import { AppController } from './app.controller';
   import { AppService } from './app.service';

   @Module({
     imports: [
       ConfigModule.forRoot({ isGlobal: true }),
       PrismaModule,
       InfobipModule,

     ],
     controllers: [AppController],
     providers: [AppService],
   })
   export class AppModule {}

4. Implementing Core Functionality (Scheduling Service)

This service orchestrates the process: saving schedule details to the database and triggering the Infobip API call.

  1. Generate Scheduling Module, Service, Controller:
   nest generate module scheduling
   nest generate service scheduling
   nest generate controller scheduling
  1. Create Data Transfer Objects (DTOs): Define DTOs for validating incoming API request data.
   import { IsNotEmpty, IsString, IsPhoneNumber, IsDateString, IsFuture } from 'class-validator';
   import { Transform } from 'class-transformer';
   import { parseISO } from 'date-fns';

   export class ScheduleSmsDto {
     @IsNotEmpty()
     @IsPhoneNumber(null)
     recipient: string;

     @IsNotEmpty()
     @IsString()
     message: string;

     @IsNotEmpty()
     @IsDateString()


     scheduledAt: string;
   }
  1. Implement Scheduling Service: Inject PrismaService and InfobipService.
   import { Injectable, Logger, NotFoundException, BadRequestException } from '@nestjs/common';
   import { PrismaService } from '../prisma/prisma.service';
   import { InfobipService } from '../infobip/infobip.service';
   import { ScheduleSmsDto } from './dto/schedule-sms.dto';
   import { Prisma, ScheduledSms, Status } from '@prisma/client';
   import { randomUUID } from 'crypto';
   import { parseISO, isFuture } from 'date-fns';
   import { utcToZonedTime, zonedTimeToUtc } from 'date-fns-tz';

   @Injectable()
   export class SchedulingService {
     private readonly logger = new Logger(SchedulingService.name);

     constructor(
       private prisma: PrismaService,
       private infobipService: InfobipService,
     ) {}

     async scheduleSms(data: ScheduleSmsDto): Promise<ScheduledSms> {
       const { recipient, message, scheduledAt } = data;


       let scheduledAtUtc: Date;
       try {

         const parsedDate = parseISO(scheduledAt);
         if (isNaN(parsedDate.getTime())) {
            throw new Error('Invalid date format');
         }

         if (!isFuture(parsedDate)) {
            throw new Error('Scheduled time must be in the future.');
         }

         scheduledAtUtc = parsedDate;
       } catch (e) {
         this.logger.error(`Invalid scheduledAt value: ${scheduledAt}`, e.stack);
         throw new BadRequestException(`Invalid scheduledAt value: ${e.message}`);
       }


       const bulkId = randomUUID();




       const preliminaryRecord = await this.prisma.scheduledSms.create({
         data: {
           recipient,
           message,
           scheduledAt: scheduledAtUtc,
           status: Status.PENDING,
           infobipBulkId: bulkId,
         },
       });
       this.logger.log(`Preliminary record created with ID: ${preliminaryRecord.id}, Bulk ID: ${bulkId}`);


       try {
         const infobipResponse = await this.infobipService.scheduleSms({
           recipient,
           message,
           sendAt: scheduledAtUtc,
           bulkId: bulkId,
         });


         const updatedRecord = await this.prisma.scheduledSms.update({
           where: { id: preliminaryRecord.id },
           data: {
             infobipMessageId: infobipResponse.messageId,

             status: Status.SCHEDULED_INFOBIP,
           },
         });
         this.logger.log(`Successfully scheduled SMS with Infobip. DB record updated: ${updatedRecord.id}`);
         return updatedRecord;

       } catch (error) {
         this.logger.error(`Failed to schedule with Infobip for DB record ${preliminaryRecord.id}. Updating status to FAILED.`, error.stack);

         await this.prisma.scheduledSms.update({
           where: { id: preliminaryRecord.id },
           data: { status: Status.FAILED },
         });

         throw new BadRequestException(`Failed to schedule SMS via provider: ${error.message}`);
       }
     }

     async cancelScheduledSms(id: string): Promise<ScheduledSms> {
       this.logger.log(`Attempting to cancel SMS schedule with ID: ${id}`);
       const job = await this.prisma.scheduledSms.findUnique({
         where: { id },
       });

       if (!job) {
         throw new NotFoundException(`Scheduled SMS with ID ${id} not found.`);
       }


       if (job.status !== Status.SCHEDULED_INFOBIP && job.status !== Status.PENDING) {
          throw new BadRequestException(`Cannot cancel SMS in status: ${job.status}`);
       }


       if (job.status === Status.SCHEDULED_INFOBIP && job.infobipBulkId) {
         try {
           await this.infobipService.cancelScheduledSms(job.infobipBulkId);
           this.logger.log(`Successfully cancelled SMS via Infobip for bulk ID: ${job.infobipBulkId}`);
         } catch (error) {
           this.logger.error(`Failed to cancel SMS via Infobip for bulk ID: ${job.infobipBulkId}. Proceeding to mark as CANCELED in DB.`, error.stack);


         }
       } else {
          this.logger.warn(`SMS ID ${id} was not in SCHEDULED_INFOBIP state or missing bulkId. Skipping Infobip cancellation call.`);
       }


       const updatedJob = await this.prisma.scheduledSms.update({
         where: { id },
         data: { status: Status.CANCELED },
       });

       this.logger.log(`Marked SMS schedule ID ${id} as CANCELED in database.`);
       return updatedJob;
     }

     async getScheduledSmsById(id: string): Promise<ScheduledSms | null> {
       this.logger.log(`Fetching scheduled SMS by ID: ${id}`);
       const job = await this.prisma.scheduledSms.findUnique({
         where: { id },
       });
       if (!job) {
         throw new NotFoundException(`Scheduled SMS with ID ${id} not found.`);
       }
       return job;
     }

     async getAllScheduledSms(status?: Status): Promise<ScheduledSms[]> {
       this.logger.log(`Fetching all scheduled SMS with status filter: ${status || 'None'}`);
       const whereClause: Prisma.ScheduledSmsWhereInput = {};
       if (status) {
         whereClause.status = status;
       }
       return this.prisma.scheduledSms.findMany({
         where: whereClause,
         orderBy: { scheduledAt: 'asc' },
       });
     }
   }
  1. Update Scheduling Module: Import dependencies.
   import { Module } from '@nestjs/common';
   import { SchedulingService } from './scheduling.service';
   import { SchedulingController } from './scheduling.controller';

   @Module({
     controllers: [SchedulingController],
     providers: [SchedulingService],
   })
   export class SchedulingModule {}
  1. Import into AppModule:
   import { ConfigModule } from '@nestjs/config';
   import { PrismaModule } from './prisma/prisma.module';
   import { InfobipModule } from './infobip/infobip.module';
   import { SchedulingModule } from './scheduling/scheduling.module';
   import { AppController } from './app.controller';
   import { AppService } from './app.service';

   @Module({
     imports: [
       ConfigModule.forRoot({ isGlobal: true }),
       PrismaModule,
       InfobipModule,
       SchedulingModule,
     ],
     controllers: [AppController],
     providers: [AppService],
   })
   export class AppModule {}

5. Building the API Layer (Controller)

Implement the controller to expose endpoints for interacting with the SchedulingService.

  1. Implement Scheduling Controller:
   import { Controller, Post, Body, Get, Param, Delete, Query, ParseEnumPipe, HttpCode, HttpStatus, ValidationPipe, UsePipes } from '@nestjs/common';
   import { SchedulingService } from './scheduling.service';
   import { ScheduleSmsDto } from './dto/schedule-sms.dto';
   import { Status } from '@prisma/client';

   @Controller('schedule')
   export class SchedulingController {
     constructor(private readonly schedulingService: SchedulingService) {}

     @Post()
     @UsePipes(new ValidationPipe({ whitelist: true, transform: true }))
     @HttpCode(HttpStatus.CREATED)
     async scheduleSms(@Body() scheduleSmsDto: ScheduleSmsDto) {

       return this.schedulingService.scheduleSms(scheduleSmsDto);
     }

     @Get()
     async getAllScheduledSms(
       @Query('status', new ParseEnumPipe(Status, { optional: true })) status?: Status,
     ) {

       return this.schedulingService.getAllScheduledSms(status);
     }

     @Get(':id')
     async getScheduledSmsById(@Param('id') id: string) {
       return this.schedulingService.getScheduledSmsById(id);
     }

     @Delete(':id')
     @HttpCode(HttpStatus.OK)
     async cancelScheduledSms(@Param('id') id: string) {
       return this.schedulingService.cancelScheduledSms(id);
     }
   }
  1. Enable Global Validation Pipe: It's often better to enable validation globally. Ensure this line is present and uncommented in src/main.ts:
   import { NestFactory } from '@nestjs/core';
   import { AppModule } from './app.module';
   import { ValidationPipe } from '@nestjs/common';
   import { PrismaService } from './prisma/prisma.service';

   async function bootstrap() {
     const app = await NestFactory.create(AppModule);


     app.useGlobalPipes(new ValidationPipe({
       whitelist: true,
       transform: true,
       forbidNonWhitelisted: true,
       transformOptions: {
         enableImplicitConversion: true,
       },
     }));


     const prismaService = app.get(PrismaService);
     await prismaService.enableShutdownHooks(app);

     await app.listen(3000);
     console.log(`Application is running on: ${await app.getUrl()}`);
   }
   bootstrap();

6. API Endpoint Testing

You can now test the API endpoints using curl or a tool like Postman. Ensure your NestJS application is running (npm run start:dev).

  • Schedule an SMS: Replace YOUR_PHONE_NUMBER (e.g., 447123456789) and adjust the scheduledAt time (must be in the future, ISO 8601 format).
  curl -X POST http://localhost:3000/schedule \
  -H ""Content-Type: application/json"" \
  -d '{
    ""recipient"": ""YOUR_PHONE_NUMBER"",
    ""message"": ""Hello from NestJS Scheduler! This is a test."",
    ""scheduledAt"": ""2025-12-31T10:00:00Z""
  }'

Expected Response (Example - IDs will vary):

  {
      ""id"": ""clxhw9q5e0000q5zwabcd1234"",
      ""recipient"": ""YOUR_PHONE_NUMBER"",
      ""message"": ""Hello from NestJS Scheduler! This is a test."",
      ""scheduledAt"": ""2025-12-31T10:00:00.000Z"",
      ""status"": ""SCHEDULED_INFOBIP"",
      ""infobipBulkId"": ""some-uuid-generated-earlier"",
      ""infobipMessageId"": ""infobip-message-id-returned"",
      ""createdAt"": ""2024-01-01T12:00:00.000Z"",
      ""updatedAt"": ""2024-01-01T12:00:05.000Z""
  }

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