Free SMS Gateway Developer API in India
Integrate the leading free SMS gateway developer API of India by SMSINDIAHUB. Use our best-in-class RESTful API to connect your software, mobile application, eCommerce store, ERP, and IoT hardware with instant carrier routing.
Send unlimited SMS via HTTP, HTTPS, and SMPP APIs suitable for both low-throughput notifications and high-throughput enterprise pipelines with guaranteed sub-5-second latency.
SMS API Endpoints With Live Request Formats
Select an API method below to inspect endpoint URLs, required parameters, and sample JSON responses.
Single SMS API (Promotional & Transactional & API key)
https://cloud.smsindiahub.in/vendorsms/pushsms.aspx?user=abc&password=xyz&msisdn=919898xxxxxx&sid=SenderId&msg=test%20message&fl=0
https://cloud.smsindiahub.in/vendorsms/pushsms.aspx?user=abc&password=xyz&msisdn=919898xxxxxx&sid=SenderId&msg=test%20message&fl=0&gwid=2
https://cloud.smsindiahub.in/api/mt/SendSMS?APIKey=apikey&senderid=ABABAB&channel=Trans&DCS=0&flashsms=0&number=910xxxxxxx&text=IDSIHUB
• user: Your SIH login username.
• password: Your SIH login password or API Key.
• msisdn: Destination mobile number (10 digits or with 91 prefix).
• sid: Approved 6-character alphabetic Sender ID.
• msg: Message content (URL encoded). Note: If using templates, fill approved dynamic fields.
• fl: 1 for Flash message, 0 for standard SMS.
• gwid: Set to 2 for Transactional / DND delivery route.
• API Key: you will find your API Key in your SMS account.
{"ErrorCode":"000","ErrorMessage":"Success","JobId":"381a8090-b230-42fa-ac04-157cc2142bfa","MessageData":[{"MobileNumber":"919898xxxxxx","MessageParts":[{"MessageId":"919898xxxxxx-67e3765cdf034f438a432eacb88d0c14","MessagePartId":1,"MessageText":"test message"}]}]}
SMS API With Ready-To-Use Sample Code
Copy and paste verified code snippets into your application in PHP, ASP, C#, VB.NET, or Java.
<?php
// SMSINDIAHUB Free SMS Gateway API Integration (PHP cURL)
$user = "your_username";
$password = "your_password_or_apikey";
$msisdn = "9198XXXXXXXX"; // Destination Mobile Number
$sid = "SMSHUB"; // 6-Character Approved Sender ID
$msg = urlencode("Dear User, your verification code is 6547. Valid for 10 mins.");
$fl = "0"; // 0 = Normal SMS, 1 = Flash SMS
$gwid = "2"; // 2 = Transactional / DND Route
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://cloud.smsindiahub.in/vendorsms/pushsms.aspx?user={$user}&password={$password}&msisdn={$msisdn}&sid={$sid}&msg={$msg}&fl={$fl}&gwid={$gwid}");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HEADER, false);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
?>
How to integrate bulk SMS API in PHP?
To integrate Bulk SMS in PHP, first create an account with SMSINDIAHUB to generate your API Key and sender ID. Next, initialize a PHP cURL session, pass the target mobile number and approved DLT template content in URL-encoded format, and execute the request for instant delivery of OTP SMS and transactional alerts.
Explore Developer API Playground →Why SMS API integration?
SMS API integration is the process required to integrate SMS services with websites, software, mobile applications, and billing portals. It provides the fastest, most reliable method to send automated transactional notifications, 2FA security tokens, payment confirmations, and customer alerts via our carrier-grade bulk SMS gateway.
Get Free Test Account →Supported SMS Gateway Developer APIs
Developer SMS API Questions & Answers
Everything you need to know about free developer sandbox credits, API protocols, DLT compliance, and latency benchmarks.
Start Building with Free SMS Gateway API Today
Create your free developer sandbox account, claim 100 free testing credits, and send your first test SMS in under 5 minutes with full DLT support.
Quick setup • Free trial credits • Dedicated manager
Our enterprise communication specialist will contact you shortly with your free demo credits and custom setup.