Delete template by id
Delete one language variant by its Meta id. Other languages of the same name are untouched. The name cannot be reused for 30 days once its last variant is deleted.
API key authentication - use your Zernio API key as a Bearer token
In: header
Path Parameters
Meta template id (numeric).
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.deleteWhatsAppTemplateById({ path: { templateId: 'template_abc123', }, query: { accountId: 'account_abc123', },});console.log(data);{
"success": true,
"scope": "language",
"language": "string",
"message": "string"
}{
"error": "string",
"type": "invalid_request_error",
"code": "string",
"param": "string",
"platform": "string",
"platformError": {},
"details": {}
}{
"error": "Unauthorized"
}Revoke a sandbox session DELETE
Hard-deletes the session. The user loses the ability to send to that phone via the sandbox until they re-activate it. Existing conversations and messages already exchanged with that phone are untouched — revocation only blocks FUTURE sends. Sessions belonging to other users cannot be revoked; the response is the same 400 as "session not found" so existence isn't leaked.
Get template by id GET
Retrieve one template variant by its Meta id, the id every variant of a family has on its own and the one the `whatsapp.template.status_updated` webhook carries.