1. Message
Cekat Open API
  • Chat
    • Connected Platforms
      • List inboxes
      • List inboxes (legacy) (deprecated)
    • Broadcast
      • Create a template
      • Synchronize templates
      • Delete a template
      • List templates
      • Send a template
      • List recipient lists
      • Upload a recipient list
      • List campaigns
      • Create a campaign
      • Get campaign details
      • List campaign messages (deprecated)
      • Check or reserve template-message balance
    • Conversation
      • List conversations
      • Get a conversation
      • Update a conversation
      • List agent assignments
    • Message
      • List messages
        GET
      • Get AI credit usage
        GET
      • Check or reserve service-message balance
        POST
      • List messages in a conversation
        GET
      • Get a message
        GET
      • Send a WhatsApp message
        POST
  • 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
      GET
    • List agents (v2)
      GET
  • 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. Message

Check or reserve service-message balance

POST
/api/messages/lock-balance
Returns the billing details for sending one free-form WhatsApp message in a conversation and, on prepaid credit-line inboxes, reserves the cost against message_id.
POST /messages/whatsapp already does this for you, so you only need this endpoint if you send WhatsApp messages through your own integration and bill through Cekat.

Request

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

Body Params application/json

Examples

Responses

🟠401
application/json
Bodyapplication/json

Request Request Example
Shell
JavaScript
Java
Swift
curl --location '/api/messages/lock-balance' \
--header 'api_key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
  "message_id": "00000000-0000-4000-8000-000000000000",
  "conversation_id": "00000000-0000-4000-8000-000000000000"
}'
Response Response Example
{
  "success": false,
  "message": "Missing Authorization or api_key header",
  "statusCode": 401,
  "error": {
    "message": "Missing Authorization or api_key header"
  },
  "correlationId": "9b2f6c1e-3d4a-4f7e-8a51-2c0d9e7b6a10"
}
Modified at 2026-10-13 05:32:46
Previous
Get AI credit usage
Next
List messages in a conversation
Built with