---
title: "TemplatePayload"
---

> Documentation Index
> Fetch the complete documentation index at: https://zacx.io/llms.txt
> Use this file to discover all available pages before exploring further.

Path: Zacx Public API

## Fields

- `TemplatePayload.name` (string, required) — The template name as approved in your workspace.
  - example `"confirmation"`
- `TemplatePayload.language` (string, required) — Template language code.
  - example `"en"`
- `TemplatePayload.header` (object, optional) — Only for templates whose header is not **None**. Pass `text` for a text header, `url` for an image, video, or document header, and `filename` for document headers.
  - `TemplatePayload.header.text` (string, optional) — Header text. Text-header templates only.
    - example `"Welcome"`
  - `TemplatePayload.header.url` (string, optional) — Public URL of the image, video, or document.
    - format `uri`; example `"https://example.com/header.jpg"`
  - `TemplatePayload.header.filename` (string, optional) — File name shown to the contact. Document-header templates only.
    - example `"invoice.pdf"`
- `TemplatePayload.body` (array<string>, optional) — Values for the body variables `{{1}}`, `{{2}}`, … in order. Omit when the template has no variables.
  - example `["John","Premium Plan"]`
- `TemplatePayload.buttons` (array<string>, optional) — Values for button variables, in button order. Only for templates with a dynamic button such as a **Visit website** URL.
  - example `["button1_param"]`


Source: https://zacx.io/api/schemas/TemplatePayload/index.md
