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

Send a WhatsApp message

POST
/messages/whatsapp
Sends a free-form WhatsApp message in an existing conversation. WhatsApp only delivers these within 24 hours of the contact's last message; outside that window, send a template with POST /templates/send.
The message is queued and the response returns right away with status: sent. Check delivery later with GET /messages/{message_id}.
media_typeWhat to send
textmessage
image, video, documentfile_url (the type is also detected from the file extension), with message as the caption
locationlocation with latitude and longitude, plus optional name and address
buttonmessage and action.buttons: 1 to 3 buttons, each {"type": "reply", "reply": {"id", "title"}}; titles up to 20 characters
listmessage and action with button (up to 20 characters) and sections: up to 10 sections, each with a title (up to 24 characters) and up to 10 rows of {"id", "title", "description"}
cta_urlmessage and action {"name": "cta_url", "parameters": {"display_text", "url"}}; display_text up to 20 characters
header ({"text"} or {"file_url"}) and footer (text) are optional for button, list and cta_url messages.

More request body examples#

Reply buttons
{
  "conversation_id": "3a4b5c6d-7e8f-4a0b-9c1d-2e3f4a5b6c7d",
  "media_type": "button",
  "message": "Apakah pesanan sudah diterima?",
  "action": {
    "buttons": [
      {
        "type": "reply",
        "reply": {
          "id": "received_yes",
          "title": "Sudah"
        }
      },
      {
        "type": "reply",
        "reply": {
          "id": "received_no",
          "title": "Belum"
        }
      }
    ]
  }
}
Link button
{
  "conversation_id": "3a4b5c6d-7e8f-4a0b-9c1d-2e3f4a5b6c7d",
  "media_type": "cta_url",
  "message": "Lacak pesanan Anda di sini.",
  "action": {
    "name": "cta_url",
    "parameters": {
      "display_text": "Lacak pesanan",
      "url": "https://example.com/track/12345"
    }
  }
}

Request

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

Body Params application/json

Examples

Responses

🟢201
application/json
Bodyapplication/json

🟠400
🟠401
Request Request Example
Shell
JavaScript
Java
Swift
curl --location '/messages/whatsapp' \
--header 'api_key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
  "conversation_id": "3a4b5c6d-7e8f-4a0b-9c1d-2e3f4a5b6c7d",
  "message": "Pesanan Anda sudah dikirim hari ini."
}'
Response Response Example
201 - 201 Message queued for sending.
{
  "success": true,
  "status_code": 201,
  "data": {
    "id": "2b3c4d5e-6f7a-4b8c-9d0e-1f2a3b4c5d6e",
    "message": "Pesanan Anda sudah dikirim hari ini.",
    "sent_by": "1b2c3d4e-5f6a-4b7c-8d9e-0f1a2b3c4d5e",
    "sent_by_name": "Admin Toko",
    "sent_by_type": "api",
    "conversation_id": "3a4b5c6d-7e8f-4a0b-9c1d-2e3f4a5b6c7d",
    "business_id": "2f7431e4-cd89-4daf-a40d-a5d779b3dd1e",
    "media_url": null,
    "media_type": "text",
    "status": "sent",
    "error": null,
    "is_deleted": false,
    "additional_data": {
      "billing_mode": "credit_card",
      "is_balance_locked": false
    },
    "action": null,
    "header": null,
    "footer": {
      "text": null
    },
    "location": null
  }
}
Modified at 2026-10-13 05:32:46
Previous
Get a message
Next
CRM
Built with