Developer Quick-Start: Complete guide to building SMS-based two-factor authentication using Infobip 2FA API, Node.js, and Express with rate limiting and security best practices. 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.
Two-Factor Authentication (2FA) adds a crucial layer of security to user accounts by requiring a second form of verification beyond just a password. One of the most common 2FA methods is One-Time Passwords (OTP) delivered via SMS.
This guide shows you how to implement SMS-based OTP verification in a Node.js application using the Express framework and the Infobip 2FA API. You'll build a simple Express application with endpoints to request an OTP via SMS and verify the OTP entered by the user.
What You'll Learn:
- How to implement SMS OTP authentication in Node.js with Express
- Integrate Infobip's 2FA API for sending and verifying one-time passwords
- Build secure OTP workflows with rate limiting and session management
- Handle OTP verification errors and expiration scenarios
- Deploy production-ready SMS authentication to your application
Project Goals:
- Secure user actions (like login or registration) with SMS-based OTP.
- Integrate with Infobip's 2FA API for sending and verifying OTPs.
- Build a robust Node.js/Express backend to handle the OTP lifecycle.
- Implement essential security measures like rate limiting.
- Provide clear steps for setup, implementation, testing, and deployment.
Technologies Used:
- Node.js: JavaScript runtime environment.
- Express: Minimalist web framework for Node.js.
- Infobip 2FA API: Service for sending and verifying OTPs via SMS, Voice, or Email. This guide focuses on SMS.
- axios: Promise-based HTTP client for making requests to the Infobip API.
- dotenv: Module to load environment variables from a .env file.
- express-rate-limit: Middleware for rate-limiting requests in Express.
- (Optional) Database: For persisting user data and potentially linking pinId. This guide uses a simple in-memory store for demonstration, but provides schema guidance for a real database.
System Architecture:
sequenceDiagram
participant User
participant Browser/Client
participant ExpressApp as Node.js/Express App
participant InfobipAPI as Infobip 2FA API
participant SMSGateway as SMS Gateway
User->>Browser/Client: Initiates action requiring OTP (e.g., Login)
Browser/Client->>+ExpressApp: POST /api/send-otp (phoneNumber)
ExpressApp->>+InfobipAPI: Send PIN Request (apiKey, appId, msgId, phoneNumber)
InfobipAPI->>+SMSGateway: Send SMS with OTP
SMSGateway->>User: Delivers SMS with OTP
InfobipAPI-->>-ExpressApp: Success Response (pinId)
Note over ExpressApp: Store pinId securely server-side (e.g., session, temp DB record) associated with user/phone number. DO NOT expose to client.
ExpressApp-->>-Browser/Client: Success Response ({ message: 'OTP sent successfully.' })
User->>Browser/Client: Enters received OTP
Browser/Client->>+ExpressApp: POST /api/verify-otp (phoneNumber, otpCode)
Note over ExpressApp: Retrieve stored pinId associated with user/phone number from server-side store.
ExpressApp->>+InfobipAPI: Verify PIN Request (apiKey, pinId, otpCode)
InfobipAPI-->>-ExpressApp: Verification Response (verified: true/false)
alt Verification Successful
ExpressApp->>ExpressApp: Mark user/action as verified
ExpressApp-->>-Browser/Client: Success Response ({ verified: true, message: 'OTP verified successfully.' })
else Verification Failed
ExpressApp-->>-Browser/Client: Failure Response ({ verified: false, error: 'Invalid or expired OTP.' })
end
Prerequisites:
- Install Node.js and npm (or yarn).
- Create a free trial account at Infobip.
- Understand the basics of Node.js, Express, REST APIs, and asynchronous JavaScript.
- Use a tool for testing APIs (like Postman or curl).
1. Setting Up Your Node.js OTP Project
Initialize your Node.js project and install the necessary dependencies for SMS authentication.
1.1 Create Project Directory
Open your terminal and create a new directory for the project:
mkdir node-infobip-otp
cd node-infobip-otp
1.2 Initialize npm
npm init -y
This creates a package.json file.
1.3 Install Dependencies
npm install express dotenv axios express-rate-limit
- express: The web framework.
- dotenv: Manages environment variables for API keys and configurations.
- axios: Makes HTTP requests to the Infobip API.
- express-rate-limit: Prevents abuse of OTP endpoints.
1.4 Project Structure
Create the following basic structure:
node-infobip-otp/
βββ node_modules/
βββ .env # Stores environment variables (API keys, etc.) - DO NOT COMMIT
βββ .gitignore # Specifies intentionally untracked files that Git should ignore
βββ server.js # Main application file
βββ infobipService.js # Handles interaction with Infobip API
βββ package.json
βββ package-lock.json
1.5 Configure .gitignore
Create a .gitignore file in the root directory and add node_modules and
.env to prevent committing them to version control:
# .gitignore
node_modules
.env
1.6 Create .env File
Create a .env file in the root directory. Populate this with your Infobip credentials and
configuration obtained in Section 4.
.env
# .env - Replace placeholder values with your actual credentials.
# See Section 4 of the guide for details on obtaining these values.
# Infobip Credentials (See Section 4.1)
INFOBIP_BASE_URL=YOUR_INFOBIP_BASE_URL # Found on Infobip portal homepage/API section
INFOBIP_API_KEY=YOUR_INFOBIP_API_KEY # Generated in Infobip portal API Key management
# Infobip 2FA Configuration (See Section 4.2)
INFOBIP_2FA_APP_ID=YOUR_INFOBIP_2FA_APP_ID # ID from created 2FA Application
INFOBIP_2FA_MSG_ID=YOUR_INFOBIP_2FA_MSG_ID # ID from created 2FA Message Template
# Application Port
PORT=3000
Purpose of Configuration: Using environment variables (dotenv) is crucial for
security and flexibility. It keeps sensitive credentials like API keys out of your source code and allows
different configurations for development, staging, and production environments.
2. Building the Infobip SMS OTP Service
Create functions to interact with the Infobip 2FA API: sending the OTP and verifying it. Encapsulating third-party API interactions follows best practices.
Create a new file, infobipService.js:
const axios = require('axios');
require('dotenv').config();
const INFOBIP_BASE_URL = process.env.INFOBIP_BASE_URL;
const INFOBIP_API_KEY = process.env.INFOBIP_API_KEY;
const INFOBIP_2FA_APP_ID = process.env.INFOBIP_2FA_APP_ID;
const INFOBIP_2FA_MSG_ID = process.env.INFOBIP_2FA_MSG_ID;
const infobipAxios = axios.create({
baseURL: INFOBIP_BASE_URL,
headers: {
'Authorization': `App ${INFOBIP_API_KEY}`,
'Content-Type': 'application/json',
'Accept': 'application/json',
}
});
async function sendOtp(phoneNumber) {
if (!INFOBIP_BASE_URL || !INFOBIP_API_KEY || !INFOBIP_2FA_APP_ID || !INFOBIP_2FA_MSG_ID) {
console.error('Infobip configuration is missing or incomplete in .env file.');
throw new Error('Server configuration error: Infobip details missing.');
}
try {
console.log(`Sending OTP to ${phoneNumber} via Infobip...`);
const response = await infobipAxios.post(`/2fa/2/pin`, {
applicationId: INFOBIP_2FA_APP_ID,
messageId: INFOBIP_2FA_MSG_ID,
to: phoneNumber,
});
if (response.data && response.data.pinId) {
console.log(`OTP sent successfully. Pin ID: ${response.data.pinId}`);
return response.data.pinId;
} else {
console.error('Infobip send OTP response missing pinId:', response.data);
throw new Error('Failed to send OTP: Invalid response from Infobip.');
}
} catch (error) {
const errorMessage = error.response?.data?.requestError?.serviceException?.text || error.message || 'Failed to send OTP via Infobip.';
console.error(`Error sending Infobip OTP to ${phoneNumber}:`, errorMessage, error.response?.data || '');
throw new Error(error.response?.data?.requestError?.serviceException?.text || 'Failed to send OTP via Infobip.');
}
}
async function verifyOtp(pinId, otpCode) {
if (!pinId || !otpCode) {
throw new Error('Missing pinId or otpCode for verification.');
}
if (!INFOBIP_BASE_URL || !INFOBIP_API_KEY) {
console.error('Infobip configuration is missing or incomplete in .env file.');
throw new Error('Server configuration error: Infobip details missing.');
}
try {
console.log(`Verifying OTP for Pin ID: ${pinId}`);
const response = await infobipAxios.post(`/2fa/2/pin/${pinId}/verify`, {
pin: otpCode
});
if (response.data && typeof response.data.verified !== 'undefined') {
console.log(`OTP Verification result for ${pinId}: ${response.data.verified}`);
return response.data.verified;
} else {
console.error('Infobip verify OTP response missing expected structure:', response.data);
throw new Error('Failed to verify OTP: Invalid response structure from Infobip.');
}
} catch (error) {
const serviceException = error.response?.data?.requestError?.serviceException;
if (serviceException && (serviceException.messageId === 'WRONG_PIN' || serviceException.messageId === 'PIN_EXPIRED' || serviceException.messageId === 'TOO_MANY_ATTEMPTS')) {
console.warn(`Verification failed for ${pinId}: ${serviceException.text}`);
return false;
}
const errorMessage = serviceException?.text || error.message || 'Failed to verify OTP via Infobip.';
console.error(`Error verifying Infobip OTP for pinId ${pinId}:`, errorMessage, error.response?.data || '');
throw new Error(serviceException?.text || 'Failed to verify OTP via Infobip.');
}
}
module.exports = {
sendOtp,
verifyOtp
};
Explanation:
- We import axios and load necessary environment variables using dotenv.config().
- An axios instance (infobipAxios) is created with the base URL and default headers (Authorization, Content-Type, Accept) required by Infobip. The API key is included in the Authorization header.
- sendOtp:
- Takes the phoneNumber as input.
- Includes checks for necessary environment variables.
- Makes a POST request to Infobip's /2fa/2/pin endpoint.
- Requires applicationId, messageId, and to (phone number).
- Returns the pinId from the response. This pinId must be kept server-side and associated securely with the user's session or verification attempt.
- Includes improved error handling and logs relevant information.
- verifyOtp:
- Takes the pinId (retrieved from server-side storage) and the otpCode entered by the user.
- Includes checks for necessary environment variables.
- Makes a POST request to Infobip's /2fa/2/pin/{pinId}/verify endpoint.
- Sends the pin (user's code) in the request body.
- Returns true if response.data.verified is true.
- Crucially, it catches specific Infobip errors like WRONG\_PIN, PIN\_EXPIRED, TOO\_MANY\_ATTEMPTS and returns false instead of throwing an error, as these are expected verification outcomes.
- Throws an error only for unexpected issues (network errors, configuration problems, other API errors).
3. Creating Express API Endpoints for OTP Verification
Set up the Express server and create the API endpoints for sending and verifying SMS codes.
Update server.js:
require('dotenv').config();
const express = require('express');
const rateLimit = require('express-rate-limit');
const helmet = require('helmet');
const { sendOtp, verifyOtp } = require('./infobipService');
const app = express();
const port = process.env.PORT || 3000;
app.use(helmet());
app.use(express.json());
const otpSendLimiter = rateLimit({
windowMs: 5 * 60 * 1000,
max: 5,
message: { error: 'Too many OTP requests from this IP, please try again after 5 minutes' },
standardHeaders: true,
legacyHeaders: false,
});
const otpVerifyLimiter = rateLimit({
windowMs: 15 * 60 * 1000,
max: 10,
message: { error: 'Too many verification attempts from this IP, please try again after 15 minutes' },
standardHeaders: true,
legacyHeaders: false,
});
const otpStore = {};
app.post('/api/send-otp', otpSendLimiter, async (req, res) => {
const { phoneNumber } = req.body;
if (!phoneNumber || !/^\+?[1-9]\d{1,14}$/.test(phoneNumber)) {
return res.status(400).json({ error: 'Valid phone number in E.164 format (e.g., +14155552671) is required.' });
}
try {
const pinId = await sendOtp(phoneNumber);
otpStore[phoneNumber] = { pinId: pinId, timestamp: Date.now() };
console.log(`Stored OTP info for ${phoneNumber}:`, otpStore[phoneNumber]);
res.status(200).json({ message: 'OTP sent successfully.' });
} catch (error) {
console.error(`Error in /api/send-otp route for ${phoneNumber}:`, error.message);
res.status(500).json({ error: error.message || 'Failed to send OTP. Please try again later.' });
}
});
app.post('/api/verify-otp', otpVerifyLimiter, async (req, res) => {
const { phoneNumber, otpCode } = req.body;
if (!phoneNumber || !otpCode || !/^\d{4,8}$/.test(otpCode)) {
return res.status(400).json({ error: 'Phone number and a valid numeric OTP code are required.' });
}
if (!/^\+?[1-9]\d{1,14}$/.test(phoneNumber)) {
return res.status(400).json({ error: 'Valid phone number in E.164 format is required.' });
}
const storedOtpData = otpStore[phoneNumber];
if (!storedOtpData) {
return res.status(400).json({ verified: false, error: 'No OTP request found for this number or it may have expired. Please request a new OTP.' });
}
const otpRequestTime = storedOtpData.timestamp;
const fifteenMinutes = 15 * 60 * 1000;
if (Date.now() - otpRequestTime > fifteenMinutes) {
delete otpStore[phoneNumber];
return res.status(400).json({ verified: false, error: 'OTP has expired. Please request a new one.' });
}
const pinId = storedOtpData.pinId;
try {
const isVerified = await verifyOtp(pinId, otpCode);
if (isVerified) {
delete otpStore[phoneNumber];
res.status(200).json({ verified: true, message: 'OTP verified successfully.' });
} else {
res.status(400).json({ verified: false, error: 'Invalid or expired OTP code.' });
}
} catch (error) {
console.error(`Error in /api/verify-otp route for ${phoneNumber} (PinID: ${pinId}):`, error.message);
res.status(500).json({ verified: false, error: 'Failed to verify OTP due to a server error. Please try again later.' });
}
});
app.get('/', (req, res) => {
res.send('Infobip OTP Service is running!');
});
app.use((err, req, res, next) => {
console.error('Unhandled error:', err.stack);
res.status(500).send({ error: 'Something went wrong!' });
});
const server = app.listen(port, () => {
console.log(`Server listening on port ${port}`);
console.log(`Ensure your .env file is configured correctly (see Section 1.6 & 4).`);
if (!process.env.INFOBIP_BASE_URL || !process.env.INFOBIP_API_KEY || !process.env.INFOBIP_2FA_APP_ID || !process.env.INFOBIP_2FA_MSG_ID) {
console.warn('WARNING: Infobip environment variables are not fully set! OTP functionality will likely fail.');
}
});
module.exports = app;
Explanation:
- Middleware: helmet() adds basic security headers. express.json() parses JSON bodies.
- Rate Limiting: Separate express-rate-limit instances (otpSendLimiter, otpVerifyLimiter) are applied to the respective routes. This is crucial for security. Adjust limits as needed.
- Temporary Storage (
otpStore): An in-memory object otpStore is used for demonstration only. This is NOT production-ready. It links pinId to phoneNumber. - Secure Storage Association: A commented-out section illustrates conceptually how express-session would be used in a real application. The key steps are:
- Configure express-session with a secret and persistent store.
- After sendOtp succeeds, store pinId, associated phoneNumber, and timestamp in req.session.
- In /verify-otp, retrieve these details from req.session, perform necessary checks (e.g., does req.body.phoneNumber match req.session.otpPhoneNumber?), and then call verifyOtp.
- Clean up session variables after verification (success or failure) or expiry.
/api/send-otpRoute (POST):
- Applies otpSendLimiter.
- Extracts and validates phoneNumber (emphasizing need for better validation).
- Calls infobipService.sendOtp.
- Stores the returned pinId server-side (using otpStore demo or req.session).
- Returns only a success message, not the pinId.
- Includes error handling.
/api/verify-otpRoute (POST):
- Applies otpVerifyLimiter.
- Extracts and validates phoneNumber and otpCode.
- Retrieves the corresponding pinId from server-side storage (otpStore demo or req.session).
- Checks if an OTP request exists and hasn't expired locally (optional timestamp check).
- Calls infobipService.verifyOtp with the retrieved pinId and the user-provided otpCode.
- If isVerified is true, cleans up storage and returns success. This is the point to grant access/complete the action.
- If isVerified is false (wrong code, expired on Infobip), returns a 400 error.
- Includes error handling for unexpected errors during verification.
- Server Start: Loads .env, starts the Express server, logs essential information, including a warning if Infobip variables aren't set.
- App Export: module.exports = app; is added to allow importing the app instance for automated testing (see Section 13).
4. Configuring Infobip API Credentials for SMS OTP
Get your credentials from Infobip and set up the necessary 2FA Application and Message Template.
4.1 Obtain Infobip API Key and Base URL
- Log in to your Infobip Portal.
- Your Base URL is usually displayed prominently on the homepage after login, often within
an ""API Key Management"" or ""Developer Tools"" section, or mentioned in the API documentation landing page
specific to your account. It will look something like
xxxxxx.api.infobip.com. Find the correct URL for your account region. - Navigate to the API Key management section (typically found under your account settings, developer tools, or a dedicated ""API"" menu item).
- Create a new API key. Give it a descriptive name (e.g., ""Node OTP App Key"").
- Securely copy the generated API Key immediately. You will not be able to view it again after closing the creation dialog. Store it safely.
- Update your
.envfile (created in Section 1.6) with these values:
.env
# .env (Update these lines)
INFOBIP_BASE_URL=YOUR_COPIED_BASE_URL # e.g., abcde.api.infobip.com
INFOBIP_API_KEY=YOUR_COPIED_API_KEY
# ... other variables remain ...
4.2 Create Infobip 2FA Application and Message Template
You need an Application and a Message Template within Infobip to define the behavior (PIN length, expiry, attempts) and content of your OTP messages. You can usually do this via the Infobip API or potentially through their web portal (the availability and location of UI configuration for 2FA might change, check their documentation or portal interface). We outline the API approach here.
- Using Infobip Portal (If Available): Explore the portal for sections like ""Apps"",
""Channels"", ""Verify"", or ""2FA"". Look for options to create a new ""Application"" (specifically for
2FA/Verify) and associated ""Message Templates"". Configure settings like PIN type, PIN length, validity
time (
pinTimeToLive), allowed attempts (pinAttempts), and the message text (critically, include the{{pin}}placeholder where the code should appear). If you create them via the UI, carefully note down the generated Application ID and Message ID. - Using API (Recommended for Automation/Consistency): Use
curl, Postman, or an HTTP client in your preferred language with the Base URL and API Key obtained in Section 4.1. Note: Always refer to the latest Infobip 2FA API Documentation for the most current endpoints and request/response structures.
a) Create 2FA Application: Send a POST request to
https://<YOUR_BASE_URL>/2fa/2/applications. Replace <YOUR_BASE_URL> with
the value you added to your .env file. Request (curl example - replace
placeholders!):
curl -X POST https://YOUR_BASE_URL/2fa/2/applications \
--header 'Authorization: App YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--data-raw '{
""name"": ""My Nodejs App OTP"",
""configuration"": {
""pinAttempts"": 5,
""allowMultiplePinVerifications"": false,
""pinTimeToLive"": ""10m"",
""verifyPinLimit"": ""3/10s"",
""sendPinPerApplicationLimit"": ""5000/1d"",
""sendPinPerPhoneNumberLimit"": ""5/1d""
},
""enabled"": true
}'
Adjust configuration values (like pinAttempts, pinTimeToLive, rate limits)
based on your security requirements. Example Successful Response:
{
""applicationId"": ""HJ675435E3A6EA43432G5F37A635KJ8B"",
""name"": ""My Nodejs App OTP"",
""configuration"": {
},
""enabled"": true
}
Copy the applicationId from the response. b) Create 2FA Message
Template: Send a POST request to
https://<YOUR_BASE_URL>/2fa/2/applications/<YOUR_APPLICATION_ID>/messages. Replace
<YOUR_BASE_URL> and <YOUR_APPLICATION_ID> with your Base URL and the
Application ID you just received. Request (curl example - replace placeholders!):
curl -X POST https://YOUR_BASE_URL/2fa/2/applications/YOUR_APPLICATION_ID/messages \
--header 'Authorization: App YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--data-raw '{
""messageText"": ""Your MyApp verification code is: {{pin}}. It expires in 10 minutes. Do not share this code."",
""pinLength"": 6,
""pinType"": ""NUMERIC"",
""language"": ""en"",
""senderId"": ""InfoSMS""
# ""senderId"": ""YourBrand"" # Use a registered Alphanumeric Sender ID if available/required
# ""regional"": { /* Optional regional settings like content templates for India */ }
}'
Ensure {{pin}} is included in messageText. Adjust pinLength,
pinType as needed. senderId might need configuration/approval depending on the
destination country. Example Successful Response:
{
""messageId"": ""0130269F44AFD07AEBC2FEFEB30398A0"",
""pinType"": ""NUMERIC"",
""messageText"": ""Your MyApp verification code is: {{pin}}. It expires in 10 minutes. Do not share this code."",
""pinLength"": 6,
""language"": ""en"",
""senderId"": ""InfoSMS""
}
Copy the messageId from the response.
4.3 Update .env File
Add the obtained applicationId and messageId to your .env file:
.env
# .env (Update these lines)
INFOBIP_BASE_URL=YOUR_COPIED_BASE_URL
INFOBIP_API_KEY=YOUR_COPIED_API_KEY
# Infobip 2FA Configuration (Obtained in Section 4.2)
INFOBIP_2FA_APP_ID=YOUR_COPIED_APPLICATION_ID # From step 4.2a response
INFOBIP_2FA_MSG_ID=YOUR_COPIED_MESSAGE_ID # From step 4.2b response
# Application Port
PORT=3000
Explanation of Variables:
- INFOBIP\_BASE\_URL: The unique API endpoint URL provided by Infobip for your account.
- INFOBIP\_API\_KEY: Your secret key for authenticating API requests. Treat this like a password.
- INFOBIP\_2FA\_APP\_ID: Identifies the specific 2FA application configuration (rate limits, attempts, expiry) to use.
- INFOBIP\_2FA\_MSG\_ID: Identifies the specific message template (text, PIN length, sender ID) to use when sending the OTP SMS.
Now your application is configured to communicate with the correct Infobip resources using the settings you defined.
5. OTP Error Handling and Security Best Practices
Error Handling Strategy:
- Specific Infobip Errors: The infobipService.js functions now attempt to catch specific API errors from Infobip (inspecting error.response.data). Expected failures like WRONG\_PIN or PIN\_EXPIRED during verification result in verifyOtp returning false, which the route handler translates into a user-friendly 400 response. Other API errors (config, auth, network) are caught and logged server-side, resulting in a 500 response with a generic message.
- General Application Errors: try...catch blocks are used in route handlers and service functions to catch unexpected JavaScript errors or issues within the application logic. A basic global error handler is added to server.js as a fallback.
- User Feedback: API responses provide clear status codes (200, 400, 429, 500) and JSON bodies with message or error fields suitable for client-side display (e.g., ""Invalid or expired OTP code."", ""Too many requests...""). Sensitive internal details are not exposed to the client.
(Code in infobipService.js and server.js includes improved error
handling.)
Logging:
Use a dedicated logging library in production (like winston or pino) for
structured, leveled logging (info, warn, error) and easy integration with log management systems. For this
guide, we use console.log, console.warn, and console.error.
- Log Key Events: OTP request received, OTP sent success (log pinId server-side only), verification attempt, verification result (success/failure).
- Log Errors: Log detailed error information on the server, including error messages, stack traces (where available), and potentially relevant request details (excluding sensitive data like full phone numbers or OTP codes unless absolutely necessary and secured).
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 β