For the complete documentation index, see llms.txt. This page is also available as Markdown.

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 in body, and send one sample value per variable in body_placeholder. Meta uses the samples during review.

  • Attach an image as file to give the template an image header.

  • Meta may change the category if it does not match the content.

post
Authorizations
api_keystringRequired

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.

Body
namestring · max: 512Required

Template name, using lowercase letters, numbers and underscores.

Example: promo_october
categorystring · enumRequiredPossible values:
languagestringRequired

Meta 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).

Example: id
bodystring · max: 1024Required

Message text. Use {{1}}, {{2}}, and so on for variables.

Example: Halo {{1}}, ada diskon {{2}}% untuk Anda bulan ini!
inbox_idstring · uuidRequired

ID of a connected WhatsApp inbox.

body_placeholderstringOptional

JSON array of sample values, one per body variable, in order. Required when body contains variables.

Example: ["Jane", "10"]
filestring · binaryOptional

Optional header image (JPEG or PNG).

Responses
201

Template created and submitted to Meta.

application/json
successbooleanOptional
status_codeintegerOptional
post/templates
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