ChakraHQ APIs
HomeSign In
HomeSign In
  1. Pass Through APIs
  • API Keys
  • Response Format
  • Whatsapp
    • Inbound Events Webhook
    • Pass Through APIs
      • Create WhatsApp Message Template (pass-through)
        POST
      • List WhatsApp Message Templates (pass-through)
        GET
      • Update WhatsApp Message Template (pass-through)
        POST
    • Send Whatsapp Template Message For Process
      POST
    • Send Whatsapp Template Message For A Phone Number
      POST
    • Upload Public Media
      POST
    • Whatsapp Messages API (pass-through)
      POST
  • Platform
    • Process
      • Fetch Process By Id
      • List Processes
      • Create Process
      • Update Process
      • Update Process By Primary Key
      • Delete Process
      • Delete Process By Primary Key Value
      • Bulk Create Process API
      • Bulk Update Process API
    • Task
      • Create Task API
    • User
      • List Users API
      • List Users API (V2)
      • Fetch User API
      • Fetch User API (V2)
      • Update User API
    • Photo
      • Fetch Photo API
      • Upload Photo API
      • Upload Photo API With Id
    • Background Job
      • Fetch Background Job
      • Fetch Background Job Entries API
    • Fetch Config
      GET
  1. Pass Through APIs

Create WhatsApp Message Template (pass-through)

POST
https://api.chakrahq.com/v1/ext/plugin/whatsapp/api/{whatsappApiVersion}/{wabaId}/message_templates
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
language
string 
required
WhatsApp language code like en, fr, ar, es, .. full list - https://developers.facebook.com/docs/whatsapp/business-management-api/message-templates/supported-languages/
name
string 
required
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"
    }
  ]
}'

Responses

🟢200Success
application/json
Body
id
string 
required
status
string 
required
category
string 
required
Example
{
    "id": "1944343716098895",
    "status": "PENDING",
    "category": "MARKETING"
}
🟠400Invalid input
Previous
Inbound Events Webhook
Next
List WhatsApp Message Templates (pass-through)
Built with