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.
Authorization
bearerAuth API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.
In: header
Query Parameters
WhatsApp 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" } ] }}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.
Get business profile
Retrieve the WhatsApp Business profile for the account (about, address, description, email, websites, etc.).