WhatsApp Cloud API Summary
The SMSINDIAHUB WhatsApp Business Cloud API provides direct RESTful HTTP access to Meta Cloud API v23.0 infrastructure. Send high-throughput OTP verifications, transactional utility notifications, and dynamic PDF invoices with 99.99% carrier SLA.
Send Template OTP
Trigger mission-critical authentication codes and login verification passwords directly to customer WhatsApp chats using pre-approved authentication templates with native "Copy Code" autofill buttons.
JSON Payload Parameters
| Field Name | Type | Requirement | Description |
|---|---|---|---|
messaging_product* |
String | Required | Messaging product type. Always set to whatsapp. |
recipient_type* |
String | Required | Always set to individual. |
to* |
String | Required | Recipient's mobile phone number with country code without plus (+) prefix (e.g. 919876543210). |
type* |
String | Required | Set to template. |
template.name* |
String | Required | Approved template name on Meta portal (e.g. otp_sms). |
template.components* |
Array | Required | Array of template elements containing body OTP variables and one-tap button parameters. |
biz_opaque_callback_data |
String | Optional | Custom tracking token returned in real-time delivery status webhooks. |
Code Samples & SDKs
curl --location --globoff 'https://omni.smsindiahub.in/v23.0/{{Phone-number-ID}}/messages' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {{Token}}' \
--data '{
"messaging_product": "whatsapp",
"recipient_type": "individual",
"to": "{{to}}",
"type": "template",
"template": {
"name": "otp_sms",
"language": {
"code": "en"
},
"components": [
{
"type": "body",
"parameters": [
{
"type": "text",
"text": "{{1}}"
}
]
},
{
"type": "button",
"parameters": [
{
"type": "text",
"text": "123456 is your verification code.For your security, do not share this code."
}
],
"sub_type": "url",
"index": "0"
}
]
},
"biz_opaque_callback_data": "{{BizOpaqueCallbackData}}"
}'
Responses & Schemas
{
"messaging_product": "whatsapp",
"contacts": [
{
"input": "{{to}}",
"wa_id": "{{to}}"
}
],
"messages": [
{
"id": "wamid.HBgLMTkxOTg3NjU0MzIxMBUCABEYEjA0MTAzNDU5Qzc5M0JGNkZEQwA="
}
]
}
{
"error": {
"message": "(#100) Param template['components'] has invalid format",
"type": "OAuthException",
"code": 100,
"fbtrace_id": "A4B7C9D0E1F2"
}
}
Send Template Utility
Send critical transactional updates, service expiry notices, recharge reminders, shipment tracking, and order confirmations via Meta-approved Utility templates.
JSON Payload Parameters
| Field Name | Type | Requirement | Description |
|---|---|---|---|
messaging_product* |
String | Required | Always set to whatsapp. |
recipient_type* |
String | Required | Always set to individual. |
to* |
String | Required | 10-12 digit destination mobile number with country code prefix. |
template.name* |
String | Required | Approved utility template name (e.g. recharge_reminder). |
template.components* |
Array | Required | Template parameters mapping dynamic text values into message body. |
Code Samples & SDKs
curl --location --globoff 'https://omni.smsindiahub.in/v23.0/{{Phone-number-ID}}/messages' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {{Token}}' \
--data '{
"messaging_product": "whatsapp",
"recipient_type": "individual",
"to": "{{to}}",
"type": "template",
"template": {
"name": "recharge_reminder",
"language": {
"code": "en"
},
"components": [
{
"type": "body",
"parameters": [
{
"type": "text",
"text": "Hi,\n\nYour Username - xxxx is expiring on DD-MM_YYYY.\nTo continue using messaging service without interruption, please recharge."
}
]
}
]
},
"biz_opaque_callback_data": "{{BizOpaqueCallbackData}}"
}'
Responses & Schemas
{
"messaging_product": "whatsapp",
"contacts": [
{
"input": "{{to}}",
"wa_id": "{{to}}"
}
],
"messages": [
{
"id": "wamid.HBgLMTEwOTg3NjU0MzIxMBUCABEYEjg5MTAzNDU5Qzc5M0JGNkZEQwA="
}
]
}
{
"error": {
"message": "(#132000) Template name does not exist in the translated language",
"type": "OAuthException",
"code": 132000
}
}
Media & PDF Invoices
Dispatch dynamic invoices, brochures, e-tickets, and account statements as high-resolution PDF attachments with interactive quick-reply buttons (e.g. "Download now!").
JSON Payload Parameters
| Field Name | Type | Requirement | Description |
|---|---|---|---|
template.name* |
String | Required | Media template identifier (e.g. Invoice_print). |
header.document.link* |
String | Required | Publicly accessible HTTPS link to PDF document file. |
header.document.filename* |
String | Required | Download filename presented to customer (e.g. Invoice_INV-2024-001.pdf). |
button.quick_reply |
Object | Optional | Clickable quick reply button parameters. |
Code Samples & SDKs
curl --location --globoff 'https://omni.smsindiahub.in/v23.0/{{Phone-number-ID}}/messages' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {{Token}}' \
--data '{
"messaging_product": "whatsapp",
"recipient_type": "individual",
"to": "{{to}}",
"type": "template",
"template": {
"name": "Invoice_print",
"language": {
"code": "en"
},
"components": [
{
"type": "header",
"parameters": [
{
"type": "document",
"document": {
"link": "https://omni.smsindiahub.in/invoice/INV-2024-001.pdf",
"filename": "Invoice_INV-2024-001.pdf"
}
}
]
},
{
"type": "body",
"parameters": [
{
"type": "text",
"text": "Dear ABC,\nKindly refer the invoice for the payment\nThanks\nSMSINDIAHUB"
}
]
},
{
"type": "button",
"parameters": [
{
"type": "text",
"text": "Download now!"
}
],
"sub_type": "quick_reply",
"index": "0"
}
]
},
"biz_opaque_callback_data": "{{BizOpaqueCallbackData}}"
}'
Responses & Schemas
{
"messaging_product": "whatsapp",
"contacts": [
{
"input": "{{to}}",
"wa_id": "{{to}}"
}
],
"messages": [
{
"id": "wamid.HBgLMTEwOTg3NjU0MzIxMBUCABEYEjQ0MTAzNDU5Qzc5M0JGNkZEQwA="
}
]
}
{
"error": {
"message": "(#100) Failed to fetch media from the provided URL",
"type": "OAuthException",
"code": 100
}
}
Technical Support & Onboarding
Need high-volume TPS unlocks, Meta Business Manager verification guidance, WhatsApp green tick badge filing, or dedicated assistance? Our certified Meta CPaaS engineers are available 24/7.
Technical assistance with API binds, template approvals, and token security.
Official Business Account filing and verified green tick advisory.
OTP & Utility from ₹0.18/credit, Marketing ₹1.00/credit plans.