APIReference

WhatsApp API

Send template messages to start a conversation, or session messages within an open 24-hour window.

POST/v1/whatsapp/send

01Parameters

NameTypeRequiredDescription
tostringRequiredRecipient WhatsApp number in E.164 format.
type"template" | "session"RequiredWhether this opens a new conversation or replies within an open window.
template_namestringOptionalRequired when type is "template" — your approved template name.
componentsobjectOptionalHeader, body variables and button payloads for the template.
textstringOptionalPlain 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.