HTTP / HTTPS / SMPP REST API GET & POST Supported Free Test Credits Included

Free SMS API India | Free SMS Gateway API

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.

REST API Specifications

SMS API Endpoints With Live Request Formats

Select an API method below to inspect endpoint URLs, required parameters, and sample JSON responses.

Endpoint 01

Single SMS API (Promotional & Transactional & API key)

Promotional SMS – Single Message GET URL:
https://cloud.smsindiahub.in/vendorsms/pushsms.aspx?user=abc&password=xyz&msisdn=919898xxxxxx&sid=SenderId&msg=test%20message&fl=0
Transactional SMS – Single Message GET URL (with gwid=2):
https://cloud.smsindiahub.in/vendorsms/pushsms.aspx?user=abc&password=xyz&msisdn=919898xxxxxx&sid=SenderId&msg=test%20message&fl=0&gwid=2
API –Instead of the username and password you can use the API key for authentication of account
https://cloud.smsindiahub.in/api/mt/SendSMS?APIKey=apikey&senderid=ABABAB&channel=Trans&DCS=0&flashsms=0&number=910xxxxxxx&text=IDSIHUB
Parameters Reference:

• 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.

Expected JSON Response:
{"ErrorCode":"000","ErrorMessage":"Success","JobId":"381a8090-b230-42fa-ac04-157cc2142bfa","MessageData":[{"MobileNumber":"919898xxxxxx","MessageParts":[{"MessageId":"919898xxxxxx-67e3765cdf034f438a432eacb88d0c14","MessagePartId":1,"MessageText":"test message"}]}]}
Integration SDKs & Scripts

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 7.4+ / PHP 8+ cURL Implementation
<?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;
?>
Integration Tutorial

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 or file_get_contents query, pass the target mobile number and approved DLT template content in URL-encoded format, and execute the request.

Explore Developer API Playground →
Business Advantages

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 directly from your core platform.

Get Free Test Account →
Full CPaaS Stack

Supported SMS Gateway Developer APIs

✔ Send SMS API
✔ Balance Check API
✔ Unicode SMS API
✔ Single SMS API
✔ Multiple SMS API
✔ Delivery Check API
✔ 2FA Auth API
✔ Long Code API
✔ Short Code API
✔ Voice Call OTP API
✔ XML API
✔ International SMS API
Frequently Asked Questions

Developer SMS API Questions & Answers

Everything you need to know about free developer sandbox credits, API protocols, DLT compliance, and latency benchmarks.

READY TO CONNECT YOUR APP?

Start Building with Free SMS API Today

Claim your 100 free developer sandbox testing credits, generate your REST API key, and send your first test SMS in under 5 minutes with full DLT support.

Instant API & DLT Activation
99.95% Guaranteed SLA
Free Demo
24/7 Dedicated Support
Get in Touch With Us

Quick setup • Free trial credits • Dedicated manager

Whatsapp chat