---
title: "Look up a library template"
method: GET
path: "/v1/whatsapp/template-library"
tags: ["WhatsApp Templates"]
---

# Look up a library template

`GET /v1/whatsapp/template-library`

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.

## Query parameters

- `accountId` string, required
- `name` string, required

## Response `200`

Library template (or null if no exact match)

- object
  - `template` object, nullable
    - `name` string
    - `language` string
    - `category` string
    - `body` string
    - `body_params` string[]
    - `buttons` object[]
      - `type` string — QUICK_REPLY, URL, PHONE_NUMBER, OTP, FLOW, ...
      - `text` string

## Other responses

- `400` — Missing or invalid query params
- `401` — Unauthorized
- `404` — WhatsApp account not found

---

[API](https://skmtc.net/zernio/apis/zernio-api.md) · [All operations](https://skmtc.net/zernio/apis/zernio-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/zernio/zernio-api/versions/51932b099b2f/schema)
