APIReference
WhatsApp API
Send template messages to start a conversation, or session messages within an open 24-hour window.
POST/v1/whatsapp/send
01Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| to | string | Required | Recipient WhatsApp number in E.164 format. |
| type | "template" | "session" | Required | Whether this opens a new conversation or replies within an open window. |
| template_name | string | Optional | Required when type is "template" — your approved template name. |
| components | object | Optional | Header, body variables and button payloads for the template. |
| text | string | Optional | Plain text body when type is "session". |
02Request
curl https://api.msgbridge.in/v1/whatsapp/send \ -H "Authorization: Bearer $API_KEY" \ -d to="+91XXXXXXXXXX" \ -d type="template" \ -d template_name="order_update" \ -d components='{"1":"4821","2":"2 days"}'03Response
{ "message_id": "msg_7Lk2", "status": "sent", "channel": "whatsapp"}Need a hand integrating this?
Our integration team reviews your first call for free.