Delete a template
DELETE
/{waba_id}/message_templatesDeletes a template.
- With only
name, every language of that template is deleted. - With
nameandhsm_id(the template ID), only that one language is deleted.
You can't create a template with a deleted name for 30 days. Messages already sent aren't affected.
Authorization
apiKey apikey<token>
Your HostMentor API key, from the dashboard under Messaging → WhatsApp → API keys.
In: header
Path Parameters
waba_id*string
ID of your WhatsApp Business Account (whatsapp_business_account_id in List your phone numbers).
Query Parameters
name*string
The template's name.
hsm_id?string
The template ID, to delete only one language.
Response Body
application/json
application/json
application/json
application/json
curl -X DELETE "https://wa.hostmentor.com/v3/105954558954427/message_templates?name=diwali_offer&hsm_id=594425479261597" \ -H "apikey: YOUR_API_KEY"{ "success": true}