Create a WhatsApp template

<Note> You can use this API for WhatsApp only if you have setup your WhatsApp account on Brevo platform. To setup your WhatsApp account, follow the steps in the guide below. [Activating WhatsApp](https://developers.brevo.com/docs/whatsapp-campaigns-1) in your account </Note>

Authentication

api-keystring

The API key should be passed in the request headers as api-key for authentication.

Request

Values to create a WhatsApp Template
bodyTextstringRequired

Body of the template. Maximum allowed characters are 1024

categoryenumRequired
Category of the template
Allowed values:
languagestringRequired

Language of the template. For Example : en for English

namestringRequired
Name of the template
headerTextstringOptional

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

mediaUrlstringOptional

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

sourceenumOptional
source of the template
Allowed values:

Response

successfully created
idlong
ID of the object created

Errors