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
bodyText
Body of the template. Maximum allowed characters are 1024
category
Category of the template
Allowed values:
language
Language of the template. For Example : en for English
name
Name of the template
headerText
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
mediaUrl
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
source
source of the template
Allowed values:
Response
successfully created
id
ID of the object created