Everything you need to integrate Net2APP into your application. RESTful SMS API, Voice OTP API, WhatsApp & Telegram APIs, and SMS Routing API — with code examples in Node.js, Python, and PHP.
/api/send-smsSend a single or bulk SMS message. Supports Unicode, alphanumeric sender IDs, and DLR tracking.
/api/rcs/sendSend RCS (Rich Communication Services) messages with images, buttons, carousels, and branded templates.
/api/flash-smsSend Class 0 Flash SMS messages that appear as screen pop-ups without saving to the inbox.
/api/sms/status/:messageIdCheck the delivery status of a previously sent SMS message. Returns DLR status and timestamps.
/api/sms/historyRetrieve SMS sending history with pagination, date filtering, and status filtering.
/api/voice-otp/sendInitiate a Voice OTP call to a phone number. Supports numeric and alphanumeric OTPs with 3-retry logic.
/api/voice-otp/status/:callIdCheck the status of a Voice OTP call — ringing, answered, completed, or failed.
/api/voice-otp/logsRetrieve Voice OTP call logs with duration, retry counts, and status details.
/api/ott/whatsapp/sendSend a WhatsApp text message via the Baileys WhatsApp Web protocol to any phone number.
/api/ott/whatsapp/mediaSend images, videos, audio, or documents through WhatsApp with automatic media processing.
/api/ott/telegram/sendSend a Telegram message via MTProto API with higher rate limits than the Bot API.
/api/ott/telegram/mediaSend media files through Telegram with automatic compression and format handling.
/api/routing/plansCreate a new SMS routing plan. Define routing strategy with ordered routes, trunks, and suppliers.
/api/routing/plansList all SMS routing plans for the tenant with status, priorities, and configuration details.
/api/routing/suppliersList configured SMS suppliers with connection status, throughput, and delivery success rates.
/your-callback-url (DLR)Receive DLR delivery report callbacks. Net2APP POSTs JSON payload with message ID, status, timestamp, and error codes.
/your-callback-url (Voice)Receive Voice OTP call status callbacks. Payload includes call ID, status, duration, and retry count.
/your-callback-url (Inbound)Receive inbound SMS messages. Net2APP forwards incoming messages to your registered webhook URL.
All APIs require authentication — choose the method that fits your security requirements
Include your unique API key in the X-API-Key request header or as an api_key query parameter. API keys are generated from the Net2APP dashboard.
curl -X POST https://net2app.com/api/send-sms \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"to":"+1234567890","message":"Hello"}'Restrict API access to specific IP addresses for enhanced security. Configure IP whitelists per API key from the dashboard. Supports IPv4 and CIDR notation.
# Dashboard → Settings → IP Whitelisting # Add: 203.0.113.50 (single IP) # Add: 203.0.113.0/24 (CIDR range)
Per-API-key rate limits control throughput. Configure TPS (transactions per second), daily caps, and concurrent connections. Rate limit headers included in all API responses.
# Response headers: X-RateLimit-Limit: 50 X-RateLimit-Remaining: 42 X-RateLimit-Reset: 1640000000 Retry-After: 60
Send your first SMS in minutes with these quick-start code examples
const axios = require('axios');
async function sendSMS(to, message) {
const response = await axios.post(
'https://net2app.com/api/send-sms',
{ to, message, sender_id: 'NET2APP' },
{ headers: { 'X-API-Key': 'YOUR_API_KEY' } }
);
return response.data;
}
// Usage
sendSMS('+1234567890', 'Hello from Net2APP!')
.then(console.log)
.catch(console.error);import requests
def send_sms(to, message):
response = requests.post(
"https://net2app.com/api/send-sms",
json={"to": to, "message": message, "sender_id": "NET2APP"},
headers={"X-API-Key": "YOUR_API_KEY"}
)
return response.json()
# Usage
result = send_sms("+1234567890", "Hello from Net2APP!")
print(result)<?php
function sendSMS($to, $message) {
$ch = curl_init('https://net2app.com/api/send-sms');
curl_setopt_array($ch, [
CURLOPT_POST => true,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'X-API-Key: YOUR_API_KEY',
'Content-Type: application/json'
],
CURLOPT_POSTFIELDS => json_encode([
'to' => $to,
'message' => $message,
'sender_id' => 'NET2APP'
])
]);
$result = curl_exec($ch);
curl_close($ch);
return json_decode($result, true);
}
// Usage
$result = sendSMS('+1234567890', 'Hello from Net2APP!');
print_r($result);Real-time message status updates via webhook callbacks
{
"message_id": "msg_abc123",
"status": "DELIVERED",
"timestamp": "2025-01-15T10:30:00Z",
"to": "+1234567890",
"error_code": null,
"error_description": null
}Configure your webhook URL in the Net2APP dashboard. Net2APP POSTs JSON payloads to your endpoint whenever message status changes.
Deploy your SMS gateway in 60 seconds and get instant API access. All endpoints, all features — free to start.