Endpoint
POST /api/v1/messages/send
Send WhatsApp messages to one recipient or multiple recipients. This endpoint supports text and approved template messages. Maximum 50 recipients per request.
Request fields
tostring | string[]Single number, comma-separated string, or array. Use E.164 format when possible.typetext | templateDefaults to `text`.text.bodystringRequired for text messages.template.iduuidOptional if you sendtemplate.name.template.namestringInternal template name or Meta template name.template.languagestringDefaults to the stored template language when omitted.template.variablesobjectMap variables like{ "1": "Rohan" }.sender_phone_number_idstringOptional sender override if your account owns multiple numbers.client_referencestringOptional reference echoed in the response.
| Field | Type | Notes |
|---|---|---|
to | string | string[] | Single number, comma-separated string, or array. Use E.164 format when possible. |
type | text | template | Defaults to `text`. |
text.body | string | Required for text messages. |
template.id | uuid | Optional if you send template.name. |
template.name | string | Internal template name or Meta template name. |
template.language | string | Defaults to the stored template language when omitted. |
template.variables | object | Map variables like { "1": "Rohan" }. |
sender_phone_number_id | string | Optional sender override if your account owns multiple numbers. |
client_reference | string | Optional reference echoed in the response. |
curl -X POST "https://api.techupservices.in/api/v1/messages/send" \
-H "Authorization: Bearer tus_live_your_key_here" \
-H "Content-Type: application/json" \
-d '{
"to": "+919876543210,+919812345678",
"type": "text",
"text": { "body": "Hello from TechUpServices" },
"client_reference": "order-123"
}'Success response
{
"request_id": "msgreq_2f0f6...",
"account_id": "...",
"client_reference": "order-123",
"type": "text",
"accepted_count": 2,
"failed_count": 0,
"results": [
{
"to": "+919876543210",
"status": "accepted",
"message_id": "wamid...."
}
]
}