1. Broadcast
Cekat Open API
  • Chat
    • Connected Platforms
      • List inboxes
      • List inboxes (legacy) (deprecated)
    • Broadcast
      • Create a template
        POST
      • Synchronize templates
        POST
      • Delete a template
        DELETE
      • List templates
        GET
      • Send a template
        POST
      • List recipient lists
        GET
      • Upload a recipient list
        POST
      • List campaigns
        GET
      • Create a campaign
        POST
      • Get campaign details
        GET
      • List campaign messages (deprecated)
        GET
      • Check or reserve template-message balance
        POST
    • Conversation
      • List conversations
      • Get a conversation
      • Update a conversation
      • List agent assignments
    • Message
      • List messages
      • Get AI credit usage
      • Check or reserve service-message balance
      • List messages in a conversation
      • Get a message
      • Send a WhatsApp message
  • CRM
    • Contact
      • List contacts
      • Create a contact
      • Search contacts
      • Get contact filter fields
      • Get the contact board
      • Create a contact property
      • Get a contact
      • Update a contact
      • Get contact properties
      • Update contact properties
    • Board
      • List CRM boards
      • Get a CRM board
      • Get a CRM column
      • Get a CRM column by name
      • List CRM board items
      • List CRM board items (page-based) (deprecated)
      • Create a CRM board item
      • Delete CRM board items
      • Search CRM board items
      • Get a CRM board item
      • Update a CRM board item
  • AI
    • List Q&A documents
      GET
    • Create Q&A documents
      POST
    • Delete Q&A documents
      DELETE
    • Generate an AI response (beta)
      POST
    • Get the OrderOnline integration
      GET
    • Delete the OrderOnline integration
      DELETE
  • Orders
    • List orders
      GET
    • Create an order
      POST
    • Get an order
      GET
    • Update an order
      PUT
  • Settings
    • List agents
    • List agents (v2)
  • Tickets
    • List ticket boards
    • List ticket templates
    • List tickets
    • Create a ticket
    • Update a ticket
    • Add a product to a ticket
    • Update a ticket product
  1. Broadcast

Create a template

POST
/templates
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.

Request

Authorization
Add parameter in header
api_key
Example:
api_key: ********************
Body Params multipart/form-data

Responses

🟢201
application/json
Bodyapplication/json

🟠400
🟠401
🟠404
Request Request Example
Shell
JavaScript
Java
Swift
curl --location '/templates' \
--header 'api_key: <api-key>' \
--form 'name="promo_october"' \
--form 'category=""' \
--form 'language="id"' \
--form 'body="Halo {{1}}, ada diskon {{2}}% untuk Anda bulan ini\!"' \
--form 'inbox_id=""' \
--form 'file=@""'
Response Response Example
201 - 201 Template created and submitted to Meta.
{
  "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"
      }
    }
  ]
}
Modified at 2026-10-13 05:32:46
Previous
Broadcast
Next
Synchronize templates
Built with