Delete template
Permanently delete a message template by name.
API key authentication - use your Zernio API key as a Bearer token
In: header
Path Parameters
Template name
Query Parameters
WhatsApp social account ID
Response Body
application/json
application/json
application/json
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.whatsapp.deleteWhatsAppTemplate({ path: { templateName: 'Example', }, query: { accountId: 'account_abc123', },});console.log(data);{
"success": true,
"message": "Template \"order_confirmation\" deleted successfully"
}{
"error": "Unauthorized"
}{
"error": "Not found"
}Update template PATCH
Update a message template's components. Only certain fields can be updated depending on the template's current approval state. Approved templates can only have components updated.
Look up a library template GET
Look up a single pre-approved Template Library template by its exact name, to introspect its structure before importing it. Most importantly it returns the template's `buttons`: a library template with `URL` / `PHONE_NUMBER` buttons must be created with a matching `library_template_button_inputs` array (see Create Template), or Meta rejects it. Use this to discover which inputs to collect.