whatsapp
Delete template
Permanently delete a message template by name.
AuthorizationBearer <token>
API key authentication - use your Zernio API key as a Bearer token
In: header
Path Parameters
templateNamestring
Template name
Query Parameters
accountIdstring
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"
}Empty
{
"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.
Get business profile GET
Retrieve the WhatsApp Business profile for the account (about, address, description, email, websites, etc.).