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

Check or reserve template-message balance

POST
/api/templates/lock-balance
Returns the billing details for sending one template message to a phone number and, on prepaid credit-line inboxes, reserves the estimated cost against message_id.
POST /templates/send and campaigns already do this for you, so you only need this endpoint if you send templates through your own WhatsApp integration and bill through Cekat. Calling it with the same message_id again returns the existing reservation.

Request

Authorization
Add parameter in header
api_key
Example:
api_key: ********************
Header Params

Body Params application/json

Examples

Responses

🟢200
application/json
Bodyapplication/json

🟠400
🟠401
Request Request Example
Shell
JavaScript
Java
Swift
curl --location '/api/templates/lock-balance' \
--header 'api_key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
  "message_id": "",
  "phone_number": "6281234567890",
  "inbox_id": "00000000-0000-4000-8000-000000000000",
  "wa_template_id": "1234567890123456",
  "conversation_id": "00000000-0000-4000-8000-000000000000"
}'
Response Response Example
200 - 200 Billing details for the message.
{
  "success": true,
  "data": {
    "billing_mode": "credit_line_prepaid",
    "is_balance_locked": true,
    "estimated_price": 586.5,
    "currency_code": "IDR",
    "to_country_code": "62",
    "template_id": "1234567890123456",
    "template_category": "marketing",
    "inbox_id": "0f9e8d7c-6b5a-4c3d-2e1f-0a9b8c7d6e5f",
    "wa_business_id": "109876543210987",
    "billing_settlement_status": "pending",
    "billing_lock_reference_type": "single_send",
    "billing_lock_reference_id": "msg-20261012-0001"
  }
}
Modified at 2026-10-13 05:32:46
Previous
List campaign messages (deprecated)
Next
Conversation
Built with