POSThttps://whatsapp-notification.montymobile.com/api/v2/WhatsappApi/send-bulk-whatsapp

Send Bulk WhatsApp Template Messages

Sends the same template to multiple recipients in a single HTTP request. Each recipient is represented by an object in the messages array, enabling per-recipient dynamic variable substitution.

Request Body Parameters

ParameterTypeRequiredDescription
typeStringYesAlways "template".
templateObjectYesTemplate definition shared by all recipients.
template.nameStringYesExact template name. <Template_Name>
template.language.codeStringYesLanguage code. <Language_Code>
sourceStringYesWhatsApp sender number. <Source_Number>
apiIdStringYesUUID of the API Integration. <API_ID>
messagesArrayYesOne object per recipient.
messages[].recipient_typeStringYesAlways "individual".
messages[].toStringYesRecipient number for this message. <Recipient_Phone_Number_N>
messages[].componentsArrayYesComponent array for this recipient — allows different dynamic values per recipient.

Example Request Body

json
{
  "type": "template",
  "template": {
    "name": "<Template_Name>",
    "language": { "code": "<Language_Code>" }
  },
  "source": "<Source_Number>",
  "apiId": "<API_ID>",
  "messages": [
    {
      "recipient_type": "individual",
      "to": "<Recipient_Phone_Number_1>",
      "components": [
        { "type": "header", "parameters": [] },
        { "type": "body",   "parameters": [] }
      ]
    },
    {
      "recipient_type": "individual",
      "to": "<Recipient_Phone_Number_2>",
      "components": [
        { "type": "header", "parameters": [] },
        { "type": "body",   "parameters": [] }
      ]
    }
  ]
}

cURL Example

bash
curl -X POST \
  "https://whatsapp-notification.montymobile.com/api/v2/WhatsappApi/send-bulk-whatsapp" \
  -H "Tenant: <Tenant_ID>" \
  -H "api-key: <Your_API_Key>" \
  -H "Content-Type: application/json" \
  -d '{
    "type": "template",
    "template": {
      "name": "<Template_Name>",
      "language": { "code": "<Language_Code>" }
    },
    "source": "<Source_Number>",
    "apiId": "<API_ID>",
    "messages": [
      {
        "recipient_type": "individual",
        "to": "<Recipient_Phone_Number_1>",
        "components": [
          { "type": "header", "parameters": [] },
          { "type": "body",   "parameters": [] }
        ]
      },
      {
        "recipient_type": "individual",
        "to": "<Recipient_Phone_Number_2>",
        "components": [
          { "type": "header", "parameters": [] },
          { "type": "body",   "parameters": [] }
        ]
      }
    ]
  }'