Delete template
Permanently delete a message template.
Without language this deletes every language variant of the name (Meta's own
contract for deletion by name). Pass language to delete one variant only; the response
scope says which happened. Meta keeps a deleted approved template in PENDING_DELETION
for a while and the name cannot be reused for 30 days.
Authorization
bearerAuth API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.
In: header
Path Parameters
Template name (the family).
Query Parameters
WhatsApp account ID
Delete only this language variant (e.g. es). Omit to delete the whole family.
Response Body
application/json
application/json
application/json
application/json
{ "success": true, "scope": "all_languages", "language": "string", "message": "string"}Update template
Update one variant's components and/or its message_send_ttl_seconds. Name, language and category cannot change after creation. Meta stores one template per **name + language**, so a name identifies a family of variants, each with its own Meta id. Pass `language` to address one variant. Without it, a name with a single variant resolves to that variant; a name with several returns `409 ambiguous_template` with `details.languages`. A bare language (`es`) matches a single regional variant (`es_ES`); if the family has several regional variants for it, that is also a 409. A full code (`es_ES`) must match exactly. Variants in `PENDING_DELETION` are not part of the family. Meta only allows editing templates in `APPROVED`, `REJECTED` or `PAUSED` state; an approved template can be edited once per 24 hours and up to 10 times per 30 days. A component update sends the variant back to Meta for review, so the `status` returned here is normally `PENDING`; a TTL-only update keeps an APPROVED variant approved. The final outcome arrives on the `whatsapp.template.status_updated` webhook (which carries the variant's `templateId` and `language`). A variant already in `PENDING` cannot be edited again until Meta finishes reviewing it.
Get template by id
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.