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

Name
Type
Description

apiKey*

String

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

Request Body

Name
Type
Description

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:

Last updated

Was this helpful?