Getting Started with ShubhCloud API
The ShubhCloud REST API allows developers to dispatch WhatsApp marketing broadcasts, transactional alerts (OTPs, order tracking), and interactive conversational workflows directly through Meta's WhatsApp Cloud infrastructure.
https://api.shubhmart.co.in/v1
Authentication
All HTTP requests must include your secret API key in the Authorization header using the standard HTTP Bearer scheme.
Never expose your live API keys in client-side applications (such as React SPA or vanilla browser scripts). Always route through a backend server.
Send Template Message
Use this endpoint to initiate a business-initiated conversation using pre-approved Meta WhatsApp templates (e.g., Marketing, Utility notifications, Authentication OTPs).
Request Body Parameters
| Field | Type | Description |
|---|---|---|
| to *required | string | Recipient phone number in E.164 format with country code (e.g. +919876543210). |
| type *required | string | Must be template for notifications outside 24h customer window. |
| template.name *required | string | The approved template slug registered in your Meta WhatsApp Manager. |
| template.language *required | string | Template language code, e.g. en_US, hi_IN. |
| template.components | array | Array of components (header, body, buttons) containing dynamic parameters. |
Example Request Payload (JSON)
Example Response (200 OK)
Send Authentication OTP (1-Tap Copy)
Dispatches a high-priority 2FA / login verification code via Meta's dedicated Authentication category with 1-tap copy button support.
Request Payload (JSON)
Send WhatsApp Native Flow (In-Chat Form)
Launches an interactive native form inside WhatsApp without opening external browser windows.
Request Payload (JSON)
Webhooks & Event Callbacks
Configure your HTTP POST webhook endpoint to receive real-time notifications when a message is dispatched, delivered, read by the customer, or when a customer sends a reply.
Delivery Receipt Payload Event
Pre-Built Libraries & Integrations
Easily integrate using your preferred programming language or framework:
npm i shubhcloud-sdk
pip install shubhcloud
composer require shubhcloud