Check or reserve service-message 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.
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.
Your unique ID for the message. The reservation is tied to it.
Billing details for the message.
A field is missing or invalid, the conversation is not on WhatsApp, or there isn't enough balance.
The API key is missing or invalid.
The conversation was not found.
Rate limit exceeded. Wait and retry.
POST /api/messages/lock-balance HTTP/1.1
Host: api.cekat.ai
api_key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 110
{
"message_id": "123e4567-e89b-12d3-a456-426614174000",
"conversation_id": "123e4567-e89b-12d3-a456-426614174000"
}{
"success": true,
"data": {
"ANY_ADDITIONAL_PROPERTY": "anything"
}
}Last updated