---
title: "List templates"
method: GET
path: "/v1/templates"
---

# List templates

`GET /v1/templates`

## Request

- Base URL: `https://api.zavu.dev`
- URL: `https://api.zavu.dev/v1/templates`
- Auth: HTTP bearer

List WhatsApp message templates for this project.

## Query parameters

- `limit` integer
- `cursor` string

## Response `200`

List of templates.

- object
  - `items` Template[], required
    - `id` string, required
    - `name` string, required: Template name. For WhatsApp, must match the approved template name in Meta.
    - `language` string, required: Language code.
    - `body` string, required: Default template body with variables: positional ({{1}}, {{2}}) or named ({{customer_name}}, {{contact.first_name}}). Templates created in Zavu are submitted to Meta as positional; templates imported from a WhatsApp Business Account keep their original format (named or positional). Used when no channel-specific body is set.
    - `smsBody` string: Channel-specific body for SMS messages. Falls back to `body` if not set.
    - `telegramBody` string: Channel-specific body for Telegram messages. Falls back to `body` if not set.
    - `instagramBody` string: Channel-specific body for Instagram messages. Falls back to `body` if not set.
    - `category` 'UTILITY' | 'MARKETING' | 'AUTHENTICATION', required: The category the template is billed under. For a template linked to WhatsApp this is the category **Meta currently assigns**, not the one it was submitted with: Meta can recategorize a template at approval or at any point afterwards, and that changes what the message costs. A recategorization reaches this field through the `template.status_changed` webhook, which carries `data.category`, and through `POST /v1/templates/sync`, which reconciles it against Meta. Read one of those rather than assuming the category you sent is the one in force. For a template that was never submitted to WhatsApp, this is the category stored locally, defaulting to `UTILITY`.
    - `status` 'draft' | 'pending' | 'approved' | 'rejected'
    - `variables` string[]: List of variable names for documentation.
    - `headerType` string: Type of header (text, image, video, document).
    - `headerContent` string: Header content (text or media URL).
    - `footer` string: Footer text for the template.
    - `buttons` object[]: Template buttons.
      - `type` 'quick_reply' | 'url' | 'phone' | 'otp' | 'request_contact_info'
      - `text` string
      - `url` string
      - `example` string: Sample value used to substitute `{{1}}` in the URL when submitting the template to Meta for review. Only present for dynamic URL buttons.
      - `phoneNumber` string
      - `otpType` 'COPY_CODE' | 'ONE_TAP': OTP button type. Required when type is 'otp'.
      - `packageName` string: Android package name. Required for ONE_TAP buttons.
      - `signatureHash` string: Android app signature hash. Required for ONE_TAP buttons.
    - `addSecurityRecommendation` boolean: Add 'Do not share this code' disclaimer. Only for AUTHENTICATION templates.
    - `codeExpirationMinutes` integer: Code expiration time in minutes. Only for AUTHENTICATION templates.
    - `whatsapp` object: WhatsApp-specific template information.
      - `templateName` string: WhatsApp template name.
      - `namespace` string: WhatsApp Business Account namespace.
      - `status` string: WhatsApp approval status.
    - `createdAt` string, date-time
    - `updatedAt` string, date-time
  - `nextCursor` string, nullable

## Other responses

- `400`: Invalid query parameters (`invalid_request`): `limit` outside 1-100.
- `401`: Unauthorized.

## Changes

- **2026-10-16** `9e08a7b910f2`: 1 breaking, 5 info
  - the `items/items/category` response's property type changed from `string` to no type for status `200`
  - added the non-success response with the status `400`
  - added `#/components/schemas/WhatsAppCategory` to the `items/items/category` response property `allOf` list for the response status `200`
  - removed the `AUTHENTICATION` enum value from the `items/items/category` response property for the response status `200`
  - …2 more
- **2026-08-01** `23fe6e10876d`: 1 warning
  - added the new `request_contact_info` enum value to the `items/items/buttons/items/type` response property for the response status `200`
- **2026-05-15** `3e45958691da`: 1 info
  - added the optional property `items/items/buttons/items/example` to the response with the `200` status
- **2026-04-12** `d264cd6c8b05`: 3 info
  - added the optional property `items/items/instagramBody` to the response with the `200` status
  - added the optional property `items/items/smsBody` to the response with the `200` status
  - added the optional property `items/items/telegramBody` to the response with the `200` status

[Operation history](https://skmtc.dev/zavudev/apis/zavu-unified-messaging-layer-api/changes/v1/templates/get.md)

---

[API](https://skmtc.dev/zavudev/apis/zavu-unified-messaging-layer-api.md) - [All operations](https://skmtc.dev/zavudev/apis/zavu-unified-messaging-layer-api/llms.txt) - [OpenAPI document](https://skmtc.dev/zavudev/apis/zavu-unified-messaging-layer-api/revisions/4804727fdd0e?raw)
