Whatsapp Message Template

This API allows you to send a pre-approved WhatsApp message template to a specified recipient.

Send Whatsapp Template

POST https://api.getspendo.com/gateway/api/v1/send/whatsapp

Headers

NameTypeDescription

apiKey*

String

The API key that you get from spendo's dashboard.

Request Body

NameTypeDescription

message*

string

The text message that you want to send, formatted as a string.

phoneNumber*

string

The phone number of the recipient, formatted as a string without any spaces or special characters.

templateName*

string

The Name of the pre-approved message template that you want to use, represented as a string.

templateParams*

Array

An arrayList containing the dynamic parameters that you want to replace in the message template.

{
  "success": true,
  "message": "Message sent",
  "code": 0,
  "data": null
}

Good to know: You can use our API Method block to fully test all the API method.

Take a look at how you might call this method using our official libraries, or via curl:

curl --location --request POST 'https://api.getspendo.com/gateway/api/v1/send/whatsapp/template' \
--header 'apiKey: test_api_key' \
--header 'Content-Type: application/json' \
--data-raw '{
  "message": "string",
  "phoneNumber": "string",
  "templateName": "string",
    "templateParams": [
      {
        "text": "3232323",
        "type": "text"
      }
  ]
}'

Last updated