Create a WhatsApp message template. This is a pass through API, so the request body format and response format matches that of WhatsApp apis. Detailed documentation for this can be found here
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Path Params
whatsappApiVersion
string
required
Example:
83784929738012
wabaId
string
required
Example:
v19.0
Body Params application/json
category
string
required
Category like MARKETING, UTILITY or AUTHENTICATION
Name of the template. Can be only lower case letters, digits and underscore
components
array [object {2}]
required
The list of message template components
text
string
optional
type
string
optional
Example
{"category":"MARKETING","language":"en","name":"demo_template","components":[{"text":"Hi, We are pleased to inform that you can now create message templates thorugh ChakraHQ.","type":"BODY"}]}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl--location--request POST 'https://api.chakrahq.com/v1/ext/plugin/whatsapp/api/83784929738012/v19.0/message_templates' \
--header'Content-Type: application/json' \
--data-raw'{
"category": "MARKETING",
"language": "en",
"name": "demo_template",
"components": [
{
"text": "Hi, We are pleased to inform that you can now create message templates thorugh ChakraHQ.",
"type": "BODY"
}
]
}'