Create a template
Creates a WhatsApp message template on the inbox's WhatsApp Business Account and submits it to Meta for review. The new template usually starts with status: PENDING; check GET /api/templates to see when it becomes APPROVED.
Template names must follow Meta's rules: lowercase letters, numbers and underscores.
Use
{{1}},{{2}}, and so on for variables inbody, and send one sample value per variable inbody_placeholder. Meta uses the samples during review.Attach an image as
fileto give the template an image header.Meta may change the category if it does not match the content.
Your business's Cekat API key, from Settings → Developers & API in the Cekat dashboard (https://chat.cekat.ai/developers?section=apikeys). Available on the Business and Enterprise plans.
Template name, using lowercase letters, numbers and underscores.
promo_octoberMeta language code. Supported codes: Afrikaans (af), Albanian (sq), Arabic (ar), Azerbaijani (az), Bengali (bn), Bulgarian (bg), Catalan (ca), Chinese (CHN: zh_CN; HKG: zh_HK; TAI: zh_TW), Croatian (hr), Czech (cs), Danish (da), Dutch (nl), English (en), English (UK: en_GB; US: en_US), Estonian (et), Filipino (fil), Finnish (fi), French (fr), Georgian (ka), German (de), Greek (el), Gujarati (gu), Hausa (ha), Hebrew (he), Hindi (hi), Hungarian (hu), Indonesian (id), Irish (ga), Italian (it), Japanese (ja), Kannada (kn), Kazakh (kk), Kinyarwanda (rw_RW), Korean (ko), Kyrgyz (Kyrgyzstan: ky_KG), Lao (lo), Latvian (lv), Lithuanian (lt), Macedonian (mk), Malay (ms), Malayalam (ml), Marathi (mr), Norwegian (nb), Persian (fa), Polish (pl), Portuguese (BR: pt_BR; POR: pt_PT), Punjabi (pa), Romanian (ro), Russian (ru), Serbian (sr), Slovak (sk), Slovenian (sl), Spanish (es), Spanish (ARG: es_AR; SPA: es_ES; MEX: es_MX), Swahili (sw), Swedish (sv), Tamil (ta), Telugu (te), Thai (th), Turkish (tr), Ukrainian (uk), Urdu (ur), Uzbek (uz), Vietnamese (vi), and Zulu (zu).
idMessage text. Use {{1}}, {{2}}, and so on for variables.
Halo {{1}}, ada diskon {{2}}% untuk Anda bulan ini!ID of a connected WhatsApp inbox.
JSON array of sample values, one per body variable, in order. Required when body contains variables.
["Jane", "10"]Optional header image (JPEG or PNG).
Template created and submitted to Meta.
A field is missing or invalid, the inbox is not a WhatsApp inbox, or Meta rejected the template. error.message explains why.
The API key is missing or invalid.
The inbox was not found.
Rate limit exceeded. Wait and retry.
POST /templates HTTP/1.1
Host: api.cekat.ai
api_key: YOUR_API_KEY
Content-Type: multipart/form-data
Accept: */*
Content-Length: 235
{
"name": "promo_october",
"category": "AUTHENTICATION",
"language": "id",
"body": "Halo {{1}}, ada diskon {{2}}% untuk Anda bulan ini!",
"inbox_id": "123e4567-e89b-12d3-a456-426614174000",
"body_placeholder": "[\"Jane\", \"10\"]",
"file": "binary"
}{
"success": true,
"status_code": 201,
"data": [
{
"id": "5d0c6b1e-8f2a-4c3b-9e7d-1a2b3c4d5e6f",
"created_at": "2026-10-12T09:30:00.000000+00:00",
"wa_template_id": "1234567890123456",
"name": "promo_october",
"category": "MARKETING",
"language": "id",
"status": "PENDING",
"body": "Halo {{1}}, ada diskon {{2}}% untuk Anda bulan ini!",
"body_placeholder": [
"Jane",
"10"
],
"header_type": "IMAGE",
"header": null,
"file_url": "https://cdn.example.com/promo.png",
"inbox_id": "0f9e8d7c-6b5a-4c3d-2e1f-0a9b8c7d6e5f",
"business_id": "2f7431e4-cd89-4daf-a40d-a5d779b3dd1e",
"inbox": {
"id": "0f9e8d7c-6b5a-4c3d-2e1f-0a9b8c7d6e5f",
"name": "Toko Utama",
"type": "whatsapp",
"status": "active",
"business_id": "2f7431e4-cd89-4daf-a40d-a5d779b3dd1e"
}
}
]
}Last updated