whatsapp templates
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.
AuthorizationBearer <token>
API key authentication - use your Zernio API key as a Bearer token
In: header
Query Parameters
accountIdstring
WhatsApp social account ID
namestring
Exact library template name
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"
],
"buttons": [
{
"type": "string",
"text": "string"
}
]
}
}Empty
{
"error": "Unauthorized"
}Empty