NEW 1-Line Simple Direct GET & REST API Ready

Next-Gen OTP & WhatsApp Gateway for High-Growth Developers

Reliable, lightning-fast SMS, WhatsApp & Voice OTP delivery with automatic 30s spam shield, instant Cashfree auto-recharge, and sub-120ms global delivery latency.

โšก
< 120ms Fast Delivery
Intelligent multi-carrier routing for maximum throughput and zero drop rates.
๐Ÿ›ก๏ธ
30s Free Spam Shield
Automated rate-limiting protects your wallet from malicious OTP spam bursts with โ‚น0 debit.
๐Ÿ’ณ
Instant Cashfree Top-Up
Instant UPI, QR & NetBanking auto-credit to your balance starting at just โ‚น100.
Flat & Transparent

Simple Pay-As-You-Go Pricing

No hidden monthly fees, no minimum commitments. Pay strictly for delivered messages.

DEVELOPER TIER
โ‚น0.40 / OTP
  • โœ… SMS, WhatsApp & Voice Channels
  • โœ… 30-Second Built-In Spam Shield
  • โœ… Auto Refund on Provider Rejections
  • โœ… Live Masked Logs & Latency Analytics
  • โœ… Custom Number Blacklist Defense
  • โœ… Instant Cashfree Auto-Credit
DEVELOPER MANUAL & SDK REFERENCE

Complete API Integration Guide

Integrate Glaxy Safe OTP into your PHP website, WordPress, Laravel, Python, Node.js, Go, Java, or Mobile Apps in under 2 minutes.

METHOD: GET / POST 1-Line Quick URL Integration (Instant Dispatch)

Pass your secret key, recipient mobile, and OTP directly as URL query parameters. No complicated headers or SDK setup required!

DIRECT HTTP ENDPOINT HTTPS ONLY
https://sms.glaxysafe.in/api/sendOTP?authkey=YOUR_API_KEY&mobile=919876543210&otp=4521&channel=sms
๐Ÿ’ก Quick Test: Replace YOUR_API_KEY with your real key and paste into your browser to test immediately!

Multi-Language Code Examples

Copy-paste ready code snippets for your preferred programming language.

PHP Example (file_get_contents or cURL)
<?php
$authkey = "sk_live_your_secret_api_key";
$mobile  = "919876543210";
$otp     = "4521";

// 1. Send via Quick URL
$url = "https://sms.glaxysafe.in/api/sendOTP?" . http_build_query([
    'authkey' => $authkey,
    'mobile'  => $mobile,
    'otp'     => $otp,
    'channel' => 'sms'
]);

$response = file_get_contents($url);
$result = json_decode($response, true);

if ($result['success'] ?? false) {
    echo "OTP Dispatched Successfully! Transaction ID: " . $result['transaction_id'];
} else {
    echo "Error: " . ($result['message'] ?? 'Dispatch failed');
}
?>
Python 3 (Requests)
import requests

url = "https://sms.glaxysafe.in/api/sendOTP"
params = {
    "authkey": "sk_live_your_secret_api_key",
    "mobile": "919876543210",
    "otp": "4521",
    "channel": "sms"
}

response = requests.get(url, params=params)
data = response.json()

if response.status_code == 200 and data.get("success"):
    print(f"OTP Sent! Transaction ID: {data.get('transaction_id')}")
else:
    print(f"Error ({data.get('error_code')}): {data.get('message')}")
Node.js / Browser (Fetch API)
const authkey = "sk_live_your_secret_api_key";
const mobile = "919876543210";
const otp = "4521";

async function sendOtp() {
  const url = `https://sms.glaxysafe.in/api/sendOTP?authkey=${authkey}&mobile=${mobile}&otp=${otp}&channel=sms`;
  
  try {
    const res = await fetch(url);
    const data = await res.json();
    
    if (res.ok && data.success) {
      console.log("OTP Sent Successfully:", data.transaction_id);
    } else {
      console.error("OTP Failed:", data.message);
    }
  } catch (err) {
    console.error("Network Error:", err);
  }
}

sendOtp();
cURL Command
# 1. Direct GET Request
curl -X GET "https://sms.glaxysafe.in/api/sendOTP?authkey=sk_live_your_key&mobile=919876543210&otp=4521"

# 2. REST JSON POST Request
curl -X POST "https://sms.glaxysafe.in/v1/sendOTP" \
  -H "Authorization: Bearer sk_live_your_key" \
  -H "Content-Type: application/json" \
  -d '{"mobile": "919876543210", "otp": "4521", "channel": "sms"}'
Go (Golang net/http)
package main

import (
    "fmt"
    "io/ioutil"
    "net/http"
)

func main() {
    url := "https://sms.glaxysafe.in/api/sendOTP?authkey=sk_live_your_key&mobile=919876543210&otp=4521"
    
    resp, err := http.Get(url)
    if err != nil {
        panic(err)
    }
    defer resp.Body.Close()
    
    body, _ := ioutil.ReadAll(resp.Body)
    fmt.Println("Response:", string(body))
}
Java 11+ (HttpClient)
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;

public class OtpSender {
    public static void main(String[] args) throws Exception {
        String url = "https://sms.glaxysafe.in/api/sendOTP?authkey=sk_live_your_key&mobile=919876543210&otp=4521";
        
        HttpClient client = HttpClient.newHttpClient();
        HttpRequest request = HttpRequest.newBuilder().uri(URI.create(url)).GET().build();
        
        HttpResponse response = client.send(request, HttpResponse.BodyHandlers.ofString());
        System.out.println("Response: " + response.body());
    }
}
C# (.NET HttpClient)
using System;
using System.Net.Http;
using System.Threading.Tasks;

class Program {
    static async Task Main() {
        using var client = new HttpClient();
        string url = "https://sms.glaxysafe.in/api/sendOTP?authkey=sk_live_your_key&mobile=919876543210&otp=4521";
        
        string result = await client.GetStringAsync(url);
        Console.WriteLine("Response: " + result);
    }
}

๐Ÿ“‹ Request Parameters Matrix

Supported in both GET Query parameters and POST JSON Body. Aliases are automatically parsed.

Parameter Supported Aliases Type Required Default Description & Example
authkey api_key, key String REQUIRED โ€” Your secret developer API key starting with sk_live_...
mobile phone, number String REQUIRED โ€” 10-15 digits recipient number with country code (e.g. 919876543210)
otp code String / Num REQUIRED โ€” 4 to 8 digit verification OTP code (e.g. 4521)
channel type String OPTIONAL sms Dispatch channel: sms, whatsapp, or voice

โšก API Response & Error Codes Reference

Standard HTTP status codes paired with structured JSON error codes for seamless client error handling.

HTTP Status Error Code Wallet Debit Description Resolution
200 OK SUCCESS โ‚น0.40 OTP accepted and queued for carrier delivery Transaction recorded in dashboard logs.
400 Bad Request MISSING_PARAM โ‚น0.00 Missing mobile, OTP, or auth key Provide all required query/body parameters.
401 Unauthorized AUTH_FAILED โ‚น0.00 Invalid, suspended, or unrecognized API Key Check your API key in Developer Dashboard.
402 Payment Required LOW_BALANCE โ‚น0.00 Wallet balance is lower than โ‚น0.40 Top up balance via Cashfree in Wallet tab.
422 Unprocessable INVALID_MOBILE โ‚น0.00 Malformed mobile number (<10 or >15 digits) Include 2-digit country code without '+' or spaces.
429 Rate Limit COOLDOWN_ACTIVE โ‚น0.00 Target number requested an OTP within 30s Spam protection: wait remaining seconds before retry.
INTERACTIVE TESTER

Live API Dispatch Playground

Test live OTP dispatches right inside your browser without writing code.

GENERATED URL / cURL
https://sms.glaxysafe.in/api/sendOTP?authkey=YOUR_KEY&mobile=917764080495&otp=4521&channel=sms
GATEWAY LIVE JSON RESPONSE Ready
Click 'Dispatch Live OTP Request' to test response...