Skip to documentation

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 | template
    Defaults to `text`.
  • text.bodystring
    Required for text messages.
  • template.iduuid
    Optional if you send template.name.
  • template.namestring
    Internal template name or Meta template name.
  • template.languagestring
    Defaults to the stored template language when omitted.
  • template.variablesobject
    Map variables like { "1": "Rohan" }.
  • sender_phone_number_idstring
    Optional sender override if your account owns multiple numbers.
  • client_referencestring
    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...."
    }
  ]
}