v1

latestSwagger 2.0MIT2026-07-17233380637.0 KB
WhatsApp Campaigns

Create a WhatsApp template

post/whatsppCampaigns/template

Request body

namestring required

Name of the template

languagestring required

Language of the template. For Example : en for English

category'MARKETING' | 'UTILITY' required

Category of the template

mediaUrlstring

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

bodyTextstring required

Body of the template. Maximum allowed characters are 1024

headerTextstring

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

Example request

{
  "name": "Test template",
  "language": "en",
  "category": "MARKETING",
  "mediaUrl": "https://attachment.domain.com",
  "bodyText": "making it look like readable English",
  "headerText": "Test WhatsApp Campaign"
}

Response

WhatsApp campaign created

idinteger required

ID of the object created

Example response

{
  "id": 122
}