Skip to content

Create Message Template

Create a new WhatsApp message template. Templates can be categorized as UTILITY/MARKETING or AUTHENTICATION.

POST /whatsapp/templates/

Headers

NameValue
AuthorizationBearer Access Token
Content-Typeapplication/json

Payload

namerequired
string

Template name

languagerequired
string

Template language code (e.g., 'en', 'en_US')

categoryrequired
string

Template category

  • MARKETING - MARKETING
  • UTILITY - UTILITY
componentsrequired
array of object

Template components array. Currently only BODY component is supported

Array [
typerequired
string

Component type (currently only 'BODY' is supported)

textrequired
string

Text content of the template. Use {{1}}, {{2}}, etc. for variables that will be replaced with actual values when sending

example
object

Example values for template variables (required if template has variables like {{1}}, {{2}})

body_textrequired
array of array of string

Example values for template variables. Provide as 2D array: [["example1", "example2"]] where each inner array represents example values for {{1}}, {{2}}, etc.

]

Response

{
"success": true,
"name": "welcome_message",
"template_id": "<WhatsApp Template ID>",
"status": "<PENDING/APPROVED/REJECTED>",
"language": "<language code (e.g., en_US)>",
"business_account": "<Business Account ID in FreJun>",
"category": "<template category (MARKETING/UTILITY/AUTHENTICATION)>",
"components": "<template components array>"
}