Developer Quick-Start: Build a production-ready SMS verification system using Vonage Verify API with Node.js and Express for secure two-factor authentication. 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.
Implementing two-factor authentication (2FA) with SMS OTP in Node.js applications significantly enhances security by requiring users to verify their identity through a one-time password sent to their mobile phone. This comprehensive tutorial demonstrates how to build a production-ready SMS verification system using the Vonage Verify API with Node.js and Express.
Whether you're adding phone number verification, securing user login flows, or implementing multi-factor authentication (MFA), this guide covers the complete implementation from project setup through deployment.
Project Goals:
- Build a secure web application with Node.js and Express
- Implement SMS-based OTP verification using Vonage Verify API
- Create a complete user authentication flow with phone number verification
- Securely manage API credentials and sensitive data
- Handle errors gracefully with user-friendly feedback
Technologies and APIs:
- Node.js: JavaScript runtime environment for building scalable server-side applications
- Express: Lightweight and flexible Node.js web framework for creating RESTful APIs
- Vonage Verify API: Enterprise-grade SMS OTP service that handles verification code generation, multi-channel delivery (SMS, voice, WhatsApp), and validation logic
- dotenv: Secure environment variable management for API credentials
- EJS (Embedded JavaScript templates): Simple templating engine for dynamic HTML rendering
System Architecture:
The flow involves three main components: the user's browser (Client), our Node.js/Express application (Server), and the Vonage Verify API.
+--------+ 1. Enter Phone Number +--------+ 3. Send OTP SMS +--------------+
| Client | --------------------------------> | Server | --------------------------> | Vonage Verify|
+--------+ (POST /request-otp) +--------+ (API Request) +--------------+
| ^ | |
| | | 4. Return request_id | 5. SMS to User
| 2. Render OTP Entry Form | v v
| (Pass request_id) +---------------------------------------+--------+
| | User's |
| | Phone |
+--------+ 6. Submit OTP + request_id +--------+ +--------+
| Client | --------------------------------> | Server | 8. Verify OTP +--------------+
+--------+ (POST /verify-otp) +--------+ --------------------------> | Vonage Verify|
| ^ | (API Request) +--------------+
| | | |
| 7. Render Success/Failure Page | | 9. Return Verification Result |
| | v |
+------------------------------------------+----------------------------------------+
Prerequisites:
- Node.js and npm (or yarn): Installed on your development machine. (Download Node.js)
- Vonage API Account: Sign up for a free account at Vonage API Dashboard. You get free credit to start.
- Vonage API Key and Secret: Found at the top of your Vonage API Dashboard after signing up.
Final Outcome:
By the end of this SMS OTP authentication tutorial, you will have a functional Node.js application that can:
- Present a form to enter a phone number for verification
- Use the Vonage Verify API to send an OTP to that number via SMS
- Present a secure form to enter the received verification code
- Verify the entered OTP against the Vonage Verify API
- Display success or failure messages with proper error handling
You'll also have a foundational understanding of integrating Vonage Verify API, handling credentials securely, managing error scenarios, and deployment considerations for production environments.
1. Project Setup: Installing Node.js Dependencies for SMS OTP
Let's initialize our Node.js project and install the necessary dependencies for SMS verification.
1. Create Project Directory: Open your terminal and create a new directory for the project, then navigate into it:
mkdir vonage-otp-app
cd vonage-otp-app
2. Initialize Node.js Project: Create a package.json file to manage
dependencies and project metadata:
npm init -y
3. Install Dependencies: We need Express for the web server, the Vonage Node SDK, EJS for
templating, and dotenv for managing environment variables.
npm install express @vonage/server-sdk dotenv ejs
4. Create Project Structure: Set up a basic directory structure for clarity:
vonage-otp-app/
βββ views/
β βββ index.ejs
β βββ verify.ejs
β βββ result.ejs
βββ .env
βββ .gitignore
βββ app.js
βββ package.json
βββ package-lock.json
5. Configure Environment Variables (.env): Create a file named
.env in the project root. Add your Vonage API Key and Secret, which you obtained from the Vonage
dashboard.
.env
# .env
VONAGE_API_KEY=YOUR_API_KEY
VONAGE_API_SECRET=YOUR_API_SECRET
VONAGE_BRAND_NAME="My Awesome App" # Optional: Brand name shown in the SMS message
VONAGE_API_KEY: Your API key from the Vonage Dashboard.VONAGE_API_SECRET: Your API secret from the Vonage Dashboard.VONAGE_BRAND_NAME: The name included in the verification message (e.g., "Your My Awesome App code is: 1234").
6. Create .gitignore: It's crucial to prevent accidentally committing sensitive
information like your .env file or node_modules. Create a .gitignore
file in the root directory:
# .gitignore
node_modules
.env
npm-debug.log*
yarn-debug.log*
yarn-error.log*
This setup provides a clean structure and ensures your credentials remain secure.
2. Building the Express Server and Vonage Verify API Integration
Now, let's write the core application logic in app.js, including initializing Express, setting
up the Vonage SDK, defining routes, and handling the OTP request and verification flows.
app.js:
require('dotenv').config();
const express = require('express');
const path = require('path');
const { Vonage } = require('@vonage/server-sdk');
const app = express();
const port = process.env.PORT || 3000;
app.use(express.json());
app.use(express.urlencoded({ extended: true }));
app.set('view engine', 'ejs');
app.set('views', path.join(__dirname, 'views'));
if (!process.env.VONAGE_API_KEY || !process.env.VONAGE_API_SECRET) {
console.error('Error: VONAGE_API_KEY and VONAGE_API_SECRET must be set in .env file.');
process.exit(1);
}
const vonage = new Vonage({
apiKey: process.env.VONAGE_API_KEY,
apiSecret: process.env.VONAGE_API_SECRET
});
const vonageBrand = process.env.VONAGE_BRAND_NAME || 'MyApp';
let verifyRequestId = null;
app.get('/', (req, res) => {
res.render('index', { error: null });
});
app.post('/request-otp', async (req, res) => {
const phoneNumber = req.body.phoneNumber;
if (!phoneNumber) {
return res.render('index', { error: 'Phone number is required.' });
}
console.log(`Requesting OTP for number: ${phoneNumber}`);
try {
const result = await vonage.verify.start({
number: phoneNumber,
brand: vonageBrand,
workflow_id: 1
});
console.log('Vonage Verify API Response:', result);
if (result.status === '0') {
verifyRequestId = result.request_id;
console.log(`Verification request sent. Request ID: ${verifyRequestId}`);
res.render('verify', { requestId: verifyRequestId, error: null });
} else {
console.error('Vonage Verify Start Error:', result.error_text);
res.render('index', { error: `Error starting verification: ${result.error_text} (Status: ${result.status})` });
}
} catch (error) {
console.error('Error calling Vonage Verify API:', error);
res.render('index', { error: 'An unexpected error occurred. Please try again.' });
}
});
app.post('/verify-otp', async (req, res) => {
const otpCode = req.body.otpCode;
const requestId = req.body.requestId;
if (!otpCode) {
return res.render('verify', { requestId: requestId, error: 'OTP code is required.' });
}
if (!requestId) {
console.error('Error: Missing requestId during verification.');
return res.render('index', { error: 'Verification session expired or invalid. Please request a new code.' });
}
console.log(`Verifying OTP code: ${otpCode} for Request ID: ${requestId}`);
try {
const result = await vonage.verify.check(requestId, otpCode);
console.log('Vonage Verify Check Response:', result);
if (result.status === '0') {
console.log(`Verification successful for Request ID: ${requestId}`);
verifyRequestId = null;
res.render('result', { success: true, message: 'Phone number verified successfully!' });
} else {
console.error('Vonage Verify Check Error:', result.error_text);
let errorMessage = `Verification failed: ${result.error_text} (Status: ${result.status})`;
if (result.status === '16') {
errorMessage = 'Incorrect OTP code entered. Please try again.';
} else if (result.status === '6') {
errorMessage = 'Verification request expired or too many attempts. Please request a new code.';
}
res.render('verify', { requestId: requestId, error: errorMessage });
}
} catch (error) {
console.error('Error calling Vonage Verify Check API:', error);
res.render('verify', { requestId: requestId, error: 'An unexpected error occurred during verification. Please try again.' });
}
});
app.listen(port, () => {
console.log(`Server listening at http://localhost:${port}`);
});
module.exports = app;
Explanation:
- Dependencies & Setup: Loads dotenv, requires express and @vonage/server-sdk, initializes Express, sets up middleware (JSON/URL-encoded parsers, EJS view engine).
- Vonage Initialization: Creates a Vonage instance using credentials from .env. Includes a check to ensure credentials exist.
- In-Memory Storage: A simple verifyRequestId variable is used. This is crucial: In a real application, you must store this request\_id securely, associating it with the user's session or another identifier, likely in a database or cache (like Redis). Storing it globally like this only works for a single-user demo.
GET /: Renders the initial index.ejs view.POST /request-otp:
- Retrieves the phoneNumber from the request body.
- Performs basic validation.
- Calls vonage.verify.start() with the phone number and brand name.
- Crucially, if result.status is '0' (success), it stores the result.request\_id and renders the verify.ejs view, passing the requestId to it.
- Handles Vonage API errors by re-rendering the index.ejs view with an error message.
- Includes a try...catch block for network or SDK errors.
POST /verify-otp:
- Retrieves the otpCode and requestId from the request body (the requestId comes from a hidden field in the verify.ejs form).
- Performs basic validation.
- Calls vonage.verify.check() with the requestId and otpCode.
- If result.status is '0', verification is successful. It clears the stored requestId and renders result.ejs with a success message.
- Handles Vonage verification errors (like wrong code - status 16, or expired/too many attempts - status 6) by re-rendering verify.ejs with the requestId and an appropriate error message.
- Includes a try...catch block.
- Server Start: Starts the Express server.
- Export: Exports the app instance for use in integration tests.
API Endpoint Summary:
GET /:- Purpose: Renders the initial phone number input form.
- Request: None
- Response: HTML page (index.ejs)
POST /request-otp:- Purpose: Initiates the OTP verification process with Vonage.
- Request Body: application/x-www-form-urlencoded or application/json
- phoneNumber: (String) The user's phone number in E.164 format (e.g., 14155552671).
- Response: HTML page (verify.ejs on success with hidden requestId, index.ejs on error)
curlExample:
curl -X POST http://localhost:3000/request-otp \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "phoneNumber=YOUR_PHONE_NUMBER"
POST /verify-otp:- Purpose: Checks the user-submitted OTP against the Vonage request.
- Request Body: application/x-www-form-urlencoded or application/json
- otpCode: (String) The 4 or 6-digit code entered by the user.
- requestId: (String) The request\_id received from the /request-otp step.
- Response: HTML page (result.ejs on success, verify.ejs on error)
curlExample (requires a validrequestIdfrom a previous step):
curl -X POST http://localhost:3000/verify-otp \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "otpCode=1234&requestId=YOUR_REQUEST_ID"
3. Creating User Interface Forms for Phone Verification
Now, let's create the simple HTML forms using EJS in the views directory.
views/index.ejs (Initial Form):
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Enter Phone Number</title>
<style>
body { font-family: sans-serif; padding: 20px; }
.error { color: red; margin-bottom: 10px; }
label, input, button { display: block; margin-bottom: 10px; }
input { padding: 8px; width: 250px; }
button { padding: 10px 15px; cursor: pointer; }
</style>
</head>
<body>
<h1>Enter Your Phone Number</h1>
<p>We will send an SMS with a verification code.</p>
<% if (error) { %>
<p class="error"><%= error %></p>
<% } %>
<form action="/request-otp" method="post">
<label for="phoneNumber">Phone Number (E.164 format, e.g., 14155552671):</label>
<input type="tel" id="phoneNumber" name="phoneNumber" required placeholder="14155552671">
<button type="submit">Send Code</button>
</form>
</body>
</html>
views/verify.ejs (OTP Entry Form):
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Enter Verification Code</title>
<style>
body { font-family: sans-serif; padding: 20px; }
.error { color: red; margin-bottom: 10px; }
label, input, button { display: block; margin-bottom: 10px; }
input { padding: 8px; width: 100px; }
button { padding: 10px 15px; cursor: pointer; }
</style>
</head>
<body>
<h1>Enter Verification Code</h1>
<p>Enter the code sent to your phone.</p>
<% if (error) { %>
<p class="error"><%= error %></p>
<% } %>
<form action="/verify-otp" method="post">
<input type="hidden" name="requestId" value="<%= requestId %>">
<label for="otpCode">OTP Code:</label>
<input type="text" id="otpCode" name="otpCode" required pattern="\d{4,6}" title="Enter the 4 or 6 digit code">
<button type="submit">Verify Code</button>
</form>
<p><a href="/">Request a new code</a></p>
</body>
</html>
views/result.ejs (Success/Failure Page):
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Verification Result</title>
<style>
body { font-family: sans-serif; padding: 20px; }
.success { color: green; }
.failure { color: red; }
</style>
</head>
<body>
<h1>Verification Result</h1>
<% if (success) { %>
<p class="success"><%= message %></p>
<% } else { %>
<p class="failure"><%= message %></p>
<% } %>
<p><a href="/">Start Over</a></p>
</body>
</html>
These templates provide the user interface for interacting with our backend API endpoints. Note how
verify.ejs includes a hidden input field to pass the requestId back to the server
during the verification step.
4. Configuring Vonage Verify API Credentials and Settings
We've already initialized the SDK in app.js, but let's reiterate the configuration steps and
where to find the details.
- Sign Up/Log In: Go to the Vonage API Dashboard.
- Find API Key and Secret: On the main dashboard page ("Getting started"), your API Key and API Secret are displayed prominently near the top.
- API Key (
VONAGE_API_KEY): A public identifier for your account. - API Secret (
VONAGE_API_SECRET): A private credential used to authenticate your requests. Treat this like a password (important) - do not share it or commit it to version control.
- Store Credentials Securely: Copy the Key and Secret into your .env file as shown in Step 1. The dotenv library loads these into process.env, allowing your app.js to access them securely without hardcoding.
- Brand Name (
VONAGE_BRAND_NAME): This optional variable in .env sets the brand parameter in the vonage.verify.start call. This name appears in the SMS message template (e.g., "Your [Brand Name] code is 1234"). If not set, it defaults to "MyApp" in our code. - No Fallback Needed (Verify API handles it): The Vonage Verify API itself manages retries and fallback mechanisms (like Text-to-Speech calls if SMS fails or times out, depending on the workflow\_id used). You don't need to implement SMS delivery fallbacks yourself when using Verify.
For more information, see the Vonage Verify API documentation and Getting Started guide.
5. Error Handling Best Practices for SMS Verification
Our app.js includes basic error handling, but let's detail the strategy.
- Consistent Strategy: Use try...catch blocks around all external API calls (Vonage) and potentially problematic operations.
- User Feedback: When an error occurs, re-render the relevant form (index.ejs or verify.ejs) and pass an error variable containing a user-friendly message. Avoid exposing raw API error details directly to the user unless necessary (like "Invalid phone number format").
- Server-Side Logging: Use console.log and console.error to log detailed information about requests, successful operations, and especially errors, including the full error object or specific Vonage error\_text and status. In production, use a dedicated logging library (like Winston or Pino) to structure logs and send them to a centralized logging system (e.g., Datadog, Logstash, CloudWatch).
- Example (inside a
catchblock):
catch (error) {
console.error(`[${new Date().toISOString()}] Error in /verify-otp for Request ID ${requestId}:`, error);
res.render('verify', {
requestId: requestId,
error: 'An unexpected error occurred during verification. Please try again.'
});
}
- Vonage Status Codes: The primary way Vonage signals issues is through the status code in the API response (outside of network errors).
- status: '0' means success.
- Any non-zero status indicates an error. Check the error\_text for details.
- Common Verify Start Errors:
- 3: Invalid phone number format.
- 9: Partner quota exceeded (account balance issue).
- 1: Throttled (too many requests).
- Common Verify Check Errors:
- 16: Wrong code entered.
- 17: Code submission mismatch (wrong request\_id).
- 6: Verification request expired or too many incorrect attempts.
- 1: Throttled.
- Refer to the Vonage Verify API Reference for a full list. Our code specifically handles statuses 16 and 6 in the /verify-otp route for better user feedback.
- Retry Mechanisms: The Vonage Verify API handles retries for sending the initial OTP (SMS -> TTS -> TTS). Your application doesn't need to retry sending. For checking the OTP, if you get a transient network error when calling vonage.verify.check, you could implement a simple retry (e.g., wait 1 second, try again once). However, for this basic example, we simply show an error. Retrying on specific Vonage status codes (like 16 - wrong code) makes no sense; the user needs to try again.
6. Database Design for Storing OTP Verification Requests
This simple example uses an in-memory variable (verifyRequestId) to store the
request_id between the request and verification steps. This is not suitable for
production.
- Why a Database/Cache is Needed:
- Concurrency: Multiple users will use the app simultaneously. A single global variable will be overwritten, breaking the flow for everyone except the last user.
- Persistence: If the server restarts, the in-memory variable is lost, invalidating ongoing verification attempts.
- Scalability: Cannot scale horizontally (run multiple instances of the app) with in-memory state.
- Production Approach:
- User Session: Implement user sessions (e.g., using express-session with a persistent store like Redis or a database).
- Store
request_id: When vonage.verify.start succeeds, store the result.request\_id in the user's session data. - Retrieve
request_id: In the /verify-otp route, retrieve the expected request\_id from the user's current session. - Verify: Call vonage.verify.check using the retrieved request\_id and the user-submitted otpCode.
- Clear
request_id: Upon successful verification (or possibly expiry/failure), clear the request\_id from the session.
- Database Schema (Example if storing directly, simplified): You might have a table like
VerificationRequests:
| Column | Type | Notes |
|---|---|---|
id |
UUID/Serial | Primary Key |
user_id |
FK (Users) | Link to your user table (if applicable) |
session_id |
VARCHAR | Link to session ID (if not user-based) |
request_id |
VARCHAR(128) | The Vonage request_id (Index this) |
phone_number |
VARCHAR(20) | The number being verified (optional) |
status |
VARCHAR(20) | 'PENDING', 'VERIFIED', 'FAILED', 'EXPIRED' |
created_at |
TIMESTAMP | Timestamp of creation |
expires_at |
TIMESTAMP | Calculated expiry time (e.g., created\_at + 5 mins) |
You would query this table based on session_id or user_id to find the active
request_id.
For this guide's scope, we omit database integration, but remember it's essential for any real-world application.
7. Security Best Practices for Two-Factor Authentication
Security is paramount, especially when dealing with authentication and phone number verification.
- Input Validation and Sanitization:
- Phone Number: While Vonage validates the number format, you can add server-side checks (e.g., using a library like google-libphonenumber) to ensure it looks like a valid E.164 number before sending it to Vonage.
- OTP Code: Ensure the code is numeric and matches the expected length (typically 4 or 6 digits). Our EJS template uses pattern="\\d{4,6}", but server-side validation is still necessary.
- Sanitization: Since we're using EJS and primarily rendering messages, the risk of Cross-Site Scripting (XSS) is lower than if we were directly inserting user input into HTML. However, always be mindful of reflecting user input. EJS escapes output by default (<%= ... %>), which helps prevent XSS.
- Rate Limiting: Protect against brute-force attacks on both requesting codes and verifying them.
- Use middleware like express-rate-limit.
- Apply stricter limits to the /verify-otp endpoint (e.g., 5 attempts per request ID or per phone number within the 5-minute window).
- Apply limits to /request-otp (e.g., 3 requests per phone number per hour) to prevent SMS Pumping fraud and unnecessary costs.
- Example (
express-rate-limit):
const rateLimit = require('express-rate-limit');
const otpRequestLimiter = rateLimit({
windowMs: 60 * 60 * 1000,
max: 5,
message: 'Too many OTP requests from this IP, please try again after an hour'
});
const verifyAttemptLimiter = rateLimit({
windowMs: 5 * 60 * 1000,
max: 10,
message: 'Too many verification attempts from this IP within the time window, please try again later.'
});
app.post('/request-otp', otpRequestLimiter, async (req, res) => { });
app.post('/verify-otp', verifyAttemptLimiter, async (req, res) => { });
- Important Note on Rate Limiting: The example above uses IP-based rate limiting, which is a good first step but insufficient on its own in production. Malicious actors can easily cycle through IP addresses, and legitimate users behind the same NAT or proxy could be unfairly blocked. For the /verify-otp endpoint especially, you must implement limiting based on the requestId or the associated user/session (retrieved from your database or session store as discussed in Section 6). Similarly, /request-otp should ideally be limited per phone number or user account, not just IP.
- Secure Credential Handling: We're using .env and .gitignore, which is standard practice. Ensure the production environment variables are managed securely (e.g., using platform secrets management).
- HTTPS: Always use HTTPS in production to encrypt data in transit. Use a reverse proxy like Nginx or Caddy, or platform-level TLS termination (e.g., Heroku, AWS ELB).
- Session Management: Implement secure session management if storing request\_id in sessions (use secure, HTTP-only cookies, regenerate session IDs on login).
8. Managing Edge Cases in SMS OTP Verification
- International Phone Numbers: The Vonage Verify API expects phone numbers in E.164 format (e.g., +14155552671 or 14155552671). Ensure your frontend or backend formats the number correctly before sending it. Inform users about the required format.
- Concurrent Requests: Vonage prevents sending multiple verification requests to the same number within a short timeframe (around 30 seconds). The API will return an error (often status: '10'). Your application should handle this gracefully, perhaps informing the user to wait or check their phone for an existing code. The Vonage Verify API manages the state, so generally, you just report the error.
- Note: Our current code reports the error\_text for non-zero statuses, which would cover this.
- Code Expiry: Codes typically expire in 5 minutes (configurable via pin\_expiry). If a user tries to verify an expired code, Vonage returns status: '6'. Our code handles this by showing an appropriate error message and suggesting they request a new code.
- User Mistakes: Users might enter the wrong number or the wrong code. The error handling covers wrong codes (status: '16'). For wrong numbers, Vonage might return status: '3' (invalid format) or the request might succeed but the SMS goes nowhere. Ensure clear UI instructions.
- Vonage Service Issues: While rare, API outages can occur. The try...catch blocks handle network errors. Implement monitoring (Section 10) to detect broader issues.
9. Performance Optimization and Load Testing
For this specific OTP flow, performance optimization is less critical than security and reliability.
- Caching: Caching the result of a verification is generally not done. Caching the status of a Vonage request isn't usually necessary as the API calls are quick. Caching user sessions (using Redis, Memcached) is crucial for scalability (as discussed in Section 6) but isn't a direct optimization of the OTP flow itself.
- Resource Usage: Node.js is generally efficient. Ensure you handle asynchronous operations correctly (async/await) to avoid blocking the event loop.
- Database/Session Store: If using a database or cache for request\_id storage, ensure it's indexed appropriately (e.g., index on session\_id or user\_id).
- Load Testing: Use tools like k6, artillery, or JMeter to simulate concurrent users requesting and verifying codes. Monitor server CPU/memory usage and Vonage API response times under load. Focus on ensuring rate limits and session handling scale correctly.
10. Testing and Deployment
For production deployment, ensure you have proper testing, monitoring, and deployment strategies in place to maintain a reliable SMS OTP verification system.
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 β