POST
/
webhook
/
whatsapp_message
/
send
Transactional WhatsApp
curl --request POST \
  --url https://webhook.sit.onedigilta.in/webhook/whatsapp_message/send \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "from_number": "+91 94494 41410",
  "type": "text",
  "content": {
    "body": "Hello, sourabh"
  },
  "recipient": [
    {
      "whatsapp_number": "+919886000187",
      "first_name": "sourabh first",
      "email": "sourabh@inofinix.com",
      "attributes": {
        "city": "New York",
        "plan": "premium"
      }
    }
  ]
}
'
{
    "success": true,
    "message": "WhatsApp message(s) sent successfully."
}
Send WhatsApp messages to one or more recipients using pre-approved templates. This endpoint supports personalization through custom parameters and event data.

Request Body

The request body must include the sender’s phone number, template details, and recipient information.

Example Payloads

Send a simple text message to recipients.
{
    "from_number": "+91 94494 41410",
    "type": "text",
    "content": {
        "body": "Hello, sourabh"
    },
    "recipient": [
        {
            "whatsapp_number": "+919886000187",
            "first_name": "sourabh first",
            "email": "sourabh@inofinix.com",
            "attributes": {
                "city": "New York",
                "plan": "premium"
            }
        },
        {
            "whatsapp_number": "+919066722406",
            "name": "Shreyas",
            "email": "shreyas@inofinix.com",
            "attributes": {
                "city": "Blore",
                "area": "HSR"
            }
        }
    ]
}
{
    "success": true,
    "message": "WhatsApp message(s) sent successfully."
}

Authorizations

Authorization
string
header
required

Use your API key with the 'Bearer ' prefix

Body

application/json

Send a simple text message

from_number
string
required
Example:

"+91 94494 41410"

type
enum<string>
required
Available options:
text
Example:

"text"

content
object
required
recipient
object[]
required

Response

WhatsApp message(s) sent successfully.