Delete a template▾
Delete a template
Remove a template from the WhatsApp Business Account.
Deletion is permanent at Meta. A name cannot be reused for 30 days, and messages already queued against it still send.
DELETE
/v1/templates/{name}Path parameters
namestringrequiredTemplate name, or tpl_….
curl -X DELETE https://api.sendport.tech/v1/templates/{name} \
-H "Authorization: Bearer $SENDPORT_KEY"Responses
200OK
{
"object": "template",
"id": "tpl_01JZQ9C3N5P7R9T1V3X5Z7BDFH",
"name": "order_shipped",
"deleted": true
}401Unauthorized
{
"error": {
"type": "authentication_error",
"code": "missing_api_key",
"message": "No API key provided.",
"doc_url": "https://sendport.tech/docs/errors#missing_api_key",
"request_id": "req_9f3c2a7b41de08c5b2e6"
}
}Try itsandbox