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)

Promotional SMS – Single Message GET URL:
http://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):
http://cloud.smsindiahub.in/vendorsms/pushsms.aspx?user=abc&password=xyz&msisdn=919898xxxxxx&sid=SenderId&msg=test%20message&fl=0&gwid=2
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.

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
Enterprise Client Ecosystem

Powering 10,000+ Brands Across India.
Direct SMPP & API Connectivity.

From nationalized banks and oil PSUs to airlines and e-commerce leaders, India's top enterprises trust SMSIndiaHub for sub-7s messaging delivery.

SBI Bank
HDFC Bank
Air India
Akasa Air
BPCL
IOCL
Maruti Suzuki
Bata India
Kotak Bank
IGNOU
CRPF
Malabar Gold
SBI Bank
HDFC Bank
Air India
Akasa Air
BPCL
IOCL
Maruti Suzuki
Bata India
Kotak Bank
IGNOU
CRPF
Malabar Gold
Vistara
PNB Bank
HAL
India Post
Honda
Eicher Motors
Dainik Bhaskar
Redington
IIT Jodhpur
RailTel
Aditya Birla
Ford
Vistara
PNB Bank
HAL
India Post
Honda
Eicher Motors
Dainik Bhaskar
Redington
IIT Jodhpur
RailTel
Aditya Birla
Ford
ACCELERATE YOUR PIPELINE

Convinced? Confused? Have Ideas?

Want to see how SMSINDIAHUB can Help Your Business Achieve the Next Phase of Growth?

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

Quick setup • Free trial credits • Dedicated manager

Whatsapp chat