API Documentation

Complete guide to integrate SHAMBHU WhatsApp Business API into your application

Getting Started

Welcome to SHAMBHU WhatsApp Business API documentation. This guide will help you integrate our powerful API into your application in minutes.

Prerequisites: You need an active SHAMBHU account with API access. Sign up for a Pro Plan to get your API key.

Quick Start Steps

1

Sign Up & Subscribe

Create your account and subscribe to the Pro Plan to get API access.

2

Connect WhatsApp Business Account

Link your official Meta WhatsApp Business Account with SHAMBHU platform.

3

Get Your API Key

Navigate to Dashboard → API Settings to get your unique API key.

4

Start Sending Messages

Use the API endpoints below to send WhatsApp messages programmatically.

Authentication

All API requests require authentication using your API key. Include your API key in the request body as shown below:

{
    "api_key": "YOUR_API_KEY_HERE",
    // ... other parameters
}
Security: Keep your API key secure and never expose it in client-side code. Always make API calls from your server.

Send WhatsApp Message

Send text, media, or template messages to WhatsApp users via the official Meta API.

Endpoint

POST https://shambhu.co.in/api/send_whatsapp_message.php

Parameters

Parameter Type Required Description
api_key String Required Your unique API key from dashboard
phone_number String Required Recipient's phone number with country code (e.g., 919876543210)
type String Required Message type: text, media, or template
template_name String Optional Template name (required if type is template)
language String Optional Template language code (e.g., en_US, hi_IN)
message String Optional Message text (required if type is text)

Code Examples

curl -X POST https://shambhu.co.in/api/send_whatsapp_message.php \
-H "Content-Type: application/json" \
-d '{
    "api_key": "YOUR_API_KEY",
    "phone_number": "919876543210",
    "type": "template",
    "template_name": "hello_world",
    "language": "en_US"
}'
<?php
$data = [
    "api_key" => "YOUR_API_KEY",
    "phone_number" => "919876543210",
    "type" => "template",
    "template_name" => "hello_world",
    "language" => "en_US"
];

$ch = curl_init('https://shambhu.co.in/api/send_whatsapp_message.php');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data));
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Content-Type: application/json'
]);

$response = curl_exec($ch);
curl_close($ch);

echo $response;
?>
const axios = require('axios');

const data = {
    api_key: 'YOUR_API_KEY',
    phone_number: '919876543210',
    type: 'template',
    template_name: 'hello_world',
    language: 'en_US'
};

axios.post('https://shambhu.co.in/api/send_whatsapp_message.php', data)
    .then(response => {
        console.log('Success:', response.data);
    })
    .catch(error => {
        console.error('Error:', error.response.data);
    });
import requests

data = {
    'api_key': 'YOUR_API_KEY',
    'phone_number': '919876543210',
    'type': 'template',
    'template_name': 'hello_world',
    'language': 'en_US'
}

response = requests.post(
    'https://shambhu.co.in/api/send_whatsapp_message.php',
    json=data
)

print(response.json())

Response

Success Response (200 OK)

{
    "status": "success",
    "message": "Message sent successfully",
    "message_id": "wamid.HBgNOTE3NjYyNjY2NzY2FQIAERgSQkU5OUVBQ0Y4QzQ2RTdCNzQzAA=="
}

Error Response (400/500)

{
    "status": "error",
    "message": "Invalid API key"
}

Message Types

1. Text Messages

Send plain text messages to WhatsApp users.

{
    "api_key": "YOUR_API_KEY",
    "phone_number": "919876543210",
    "type": "text",
    "message": "Hello! Welcome to SHAMBHU API"
}

2. Template Messages

Send pre-approved WhatsApp templates (required for 24h+ conversations).

{
    "api_key": "YOUR_API_KEY",
    "phone_number": "919876543210",
    "type": "template",
    "template_name": "order_confirmation",
    "language": "en_US"
}
Pro Tip: Template messages must be pre-approved by Meta through your WhatsApp Manager dashboard.

Rate Limits & Best Practices

Rate Limits

  • Standard Plan: 50 messages per second
  • Pro Plan: 100 messages per second
  • Daily Limit: Based on your Meta Business Account tier

Best Practices

  • Always include error handling in your integration
  • Use webhooks to receive delivery status updates
  • Store API keys securely using environment variables
  • Implement exponential backoff for failed requests
  • Respect user opt-outs and WhatsApp policies
For detailed Meta WhatsApp Business API policies, visit Meta Developer Docs

Support & Resources

Email Support

Contact us at support@shambhu.org

WhatsApp Support

Message us at +91 98765 43210

Ready to get started? Subscribe to Pro Plan and start sending messages today!