curl --request POST \
--url https://app.kapso.ai/api/v1/whatsapp_templates/{template_id}/send_template \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '{
"template": {
"phone_number": "+123456789012",
"template_parameters": [
"John Smith",
"Tomorrow at 2 PM"
]
}
}'
{
"status": "success",
"message": "Template message sent successfully",
"template_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"template_name": "<string>",
"response": {}
}
Sends a WhatsApp template message to a specified phone number
curl --request POST \
--url https://app.kapso.ai/api/v1/whatsapp_templates/{template_id}/send_template \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '{
"template": {
"phone_number": "+123456789012",
"template_parameters": [
"John Smith",
"Tomorrow at 2 PM"
]
}
}'
{
"status": "success",
"message": "Template message sent successfully",
"template_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"template_name": "<string>",
"response": {}
}
API key required for all endpoints
Template message sent successfully
The response is of type object
.
Was this page helpful?