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
apiKey*
String
The API key that you get from spendo's dashboard.
Request Body
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
}
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
Was this helpful?