Look up a library template
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.
API key authentication - use your Zernio API key as a Bearer token
In: header
Query Parameters
WhatsApp social account ID
Exact library template name
Desired language variant (e.g. es, en_US). If the template is not offered in it, the first available variant is returned and named in the response language field.
Response Body
application/json
application/json
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.whatsapptemplates.getWhatsAppLibraryTemplate({ query: { accountId: 'account_abc123', name: 'Example', },});console.log(data);{
"template": {
"name": "string",
"language": "string",
"category": "string",
"body": "string",
"body_params": [
"string"
],
"availableLanguages": [
"string"
],
"buttons": [
{
"type": "string",
"text": "string"
}
]
}
}{
"error": "Unauthorized"
}Delete template DELETE
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.
Get business profile GET
Retrieve the WhatsApp Business profile for the account (about, address, description, email, websites, etc.).