---
title: "Create a WhatsApp template"
method: POST
path: "/whatsppCampaigns/template"
tags: ["WhatsApp Campaigns"]
---

# Create a WhatsApp template

`POST /whatsppCampaigns/template`

## Request body

- CreateWhatsAppTemplate
  - `name` string, required — Name of the template
  - `language` string, required — Language of the template. For Example : **en** for English
  - `category` 'MARKETING' | 'UTILITY', required — Category of the template
  - `mediaUrl` string — Absolute url of the media file **(no local file)** for the header. **Use this field in you want to add media in Template header and headerText is empty.** Allowed extensions for media files are: #### jpeg | png | mp4 | pdf
  - `bodyText` string, required — Body of the template. **Maximum allowed characters are 1024**
  - `headerText` string — Text content of the header in the template. **Maximum allowed characters are 45** **Use this field to add text content in template header and if mediaUrl is empty**
  - `source` 'Automation' | 'Conversations' — source of the template

## Response `201`

WhatsApp campaign created

- CreateModel
  - `id` integer, required — ID of the object created

## Other responses

- `400` — bad request

---

[API](https://skmtc.net/getbrevo/apis/brevo-api.md) · [All operations](https://skmtc.net/getbrevo/apis/brevo-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/getbrevo/brevo-api/revisions/2aec3cf66501/schema)
