Send WhatsApp template
Sends a WhatsApp template message to the customer with customer_id.
Path Parameters
- Type: integercustomer
_id requiredIdentifier of the customer.
Body·
required
application/json
- Type: integertemplate
_id requiredID of the WhatsApp template to send.
- Type: stringtemplate
_language requiredISO language code of the template.
- Type: objecttemplate
_params requiredValues that fill the template's placeholders.
Responses
- application/json
- application/json
- application/json
- application/json
Request Example for post/customers/{customer_id}/send_template/
curl https://api.landbot.io/v1/customers/1/send_template/ \
--request POST \
--header 'Content-Type: application/json' \
--header 'Authorization: Token YOUR_AGENT_TOKEN' \
--data '{
"template_id": 1,
"template_language": "en",
"template_params": {
"header": {
"url": "https://example.com/header.jpg",
"params": [
"patata",
"congrio"
]
},
"body": {
"params": [
"Peter",
"Landbot"
]
},
"buttons": [
null,
{
"params": [
"img.jpg"
]
}
]
}
}'
{
"success": true
}