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

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.

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
message_idstring · uuidRequired

Your unique ID for the message. The reservation is tied to it.

conversation_idstring · uuidRequired
Responses
200

Billing details for the message.

application/json
successbooleanOptional
post/api/messages/lock-balance
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