Send WhatsApp Message

Send a WhatsApp message

This endpoint is used to send a WhatsApp message.
(The first message you send using the API must contain a Template ID. You must create a template on WhatsApp on the Brevo platform to fetch the Template ID.)

Options

Body
Values to send WhatsApp message

Request body which must comply to the following JSON Schema:

{
  "oneOf" : [ {
    "required" : [ "contactNumbers", "senderNumber", "templateId" ],
    "type" : "object",
    "properties" : {
      "templateId" : {
        "type" : "integer",
        "description" : "ID of the template to send",
        "example" : 123
      },
      "senderNumber" : {
        "type" : "string",
        "description" : "WhatsApp Number with country code. Example, 85264318721",
        "format" : "mobile",
        "example" : "919876543210"
      },
      "params" : {
        "type" : "object",
        "description" : "Pass the set of attributes to customize the template. For example, {\"FNAME\":\"Joe\", \"LNAME\":\"Doe\"}.",
        "example" : {
          "FNAME" : "Joe",
          "LNAME" : "Doe"
        }
      },
      "contactNumbers" : {
        "type" : "array",
        "description" : "List of phone numbers of the contacts",
        "items" : {
          "type" : "string",
          "description" : "WhatsApp Number with country code. Example, 85264318721",
          "format" : "mobile",
          "example" : "919876543210"
        }
      }
    }
  }, {
    "required" : [ "authType", "contactNumbers", "senderNumber", "text" ],
    "type" : "object",
    "properties" : {
      "senderNumber" : {
        "type" : "string",
        "description" : "WhatsApp Number with country code. Example, 85264318721",
        "format" : "mobile",
        "example" : "919876543210"
      },
      "text" : {
        "type" : "string",
        "description" : "Text to be sent as message body (will be overridden if templateId is passed in the same request)",
        "example" : "Hi! There i am a message"
      },
      "contactNumbers" : {
        "type" : "array",
        "description" : "List of phone numbers of the contacts",
        "items" : {
          "type" : "string",
          "description" : "WhatsApp Number with country code. Example, 85264318721",
          "format" : "mobile",
          "example" : "919876543210"
        }
      }
    }
  } ]
}
Result Format

Specify how the response should be mapped to the table output. The following formats are available:

Raw Response: Returns the raw response in a single row with the following columns:

  • body: Response body
  • status: HTTP status code

Input Ports

Icon
Configuration data.

Output Ports

Icon
Result of the request depending on the selected Result Format.
Icon
Configuration data (this is the same as the input port; it is provided as passthrough for sequentially chaining nodes to declutter your workflow connections).

Popular Predecessors

  • No recommendations found

Popular Successors

  • No recommendations found

Views

This node has no views

Workflows

  • No workflows found

Links

Developers

You want to see the source code for this node? Click the following button and we’ll use our super-powers to find it for you.