Send Message API

Send batch WhatsApp messages using an approved template name. The unique reference (ref) is optional; however, without it, the message status cannot be tracked.

Endpoint Information

POST https://api.moolre.com/open/whatsapp/send

Authentication & Headers

Header NameTypeRequiredDescription
X-API-VASKEYstringYesYour unique WhatsApp service VAS Key provided in the Moolre Portal.

Request Parameters

ParameterTypeRequiredDescription
template_namestringYesThe name of the approved WhatsApp template.
languagestringYesThe language code for the template (English only).
messagesarrayYesAn array of message objects containing recipient, optional ref, and placeholders. Note: If ref is omitted, the status cannot be checked later.

Response Examples

200 (Success) - Success

All messages were sent successfully.

{
  "status": 1,
  "code": "WAS200",
  "message": "suceess",
  "error": [],
  "data": []
}

200 (Duplicate Refs) - Warning

Some messages were not sent due to non-unique references.

{
  "status": 1,
  "code": "WAS200",
  "error": "Some ref are not unique, corresponding messages will not be sent",
  "message": "",
  "data": [
    {
      "recipient": "233531419000",
      "ref": "879883HGU334553GF887799HF20004"
    },
    {
      "recipient": "233531419011",
      "ref": "879883HGU334553GF887799HF20006"
    }
  ]
}

401 (Insufficient Balance) - Insufficient Balance

The account has insufficient balance to send WhatsApp messages.

{
  "status": 0,
  "code": "WAS401",
  "message": "Insufficient balance to send messages. Please top up your WhatsApp bundle."
}

← Back to AI Documentation Index | View Full API Reference